﻿function ChineseCalendar()
{
    //try{
    var week =new Array('星期日','星期一','星期二','星期三','星期四','星期五','星期六','星期日');
    var now = new Date();
    var nl = new Lunar(now);
    	
    $("solarDate").innerHTML = now.getYear() + "年" + (now.getMonth() + 1) + "月" ;
    $("solarDay").innerHTML = now.getDate();
    $("lunarDay").innerHTML = week[now.getDay()] ;		

	    var ss = "农历：" + nl.cYear + nl.animal +"年" 
		    + nl.monthStr + "月" 
		    + nl.dayStr+ nl.term;
    		
	    document.getElementById("lunarToday").innerHTML = "<a>" + ss + "</a>";
    //}catch(e){alert(e.Message)}
}