function calend_initialize(){var a=new Calendar("idCalendar",{Calendarurl:calendarurl,Flags:days.split(","),Mindate:mindate,Maxdate:maxdate,Year:starty,Month:startm,SelectDay:nowdate.setDate(startd),onSelectDay:function(b){b.className="onSelect"},onToday:function(b){b.className="onToday"},onFinish:function(){Getdom("idCalendarYear").innerHTML=this.Year;setselected(Getdom("cal_SY"),this.Year);setselected(Getdom("cal_SM"),this.Month);var b="";switch(this.Month){case 1:b="一月";break;case 2:b="二月";break;case 3:b="三月";break;case 4:b="四月";break;case 5:b="五月";break;case 6:b="六月";break;case 7:b="七月";break;case 8:b="八月";break;case 9:b="九月";break;case 10:b="十月";break;case 11:b="十一月";break;case 12:b="十二月";break;default:break}Getdom("idCalendarMonth").innerHTML=b}});$("#showdate").calen(a);$("#calclose").bind("click",function(){$("#calendarqi").css("display","none")})}function setselected(a,c){for(var b=0;b<a.options.length;b++){if(a.options[b].value==c){a.options[b].selected=true;break}}}function startyear(b,a){document.write('<select class="jumpmenu"  id="cal_SY" name="SY">');for(i=b.getFullYear();i<(a.getFullYear()+1);i++){document.write('<option value="'+i+'">'+i+"</option>")}document.write("</select>")}function startmonth(){document.write('<select class="jumpmenu"  id="cal_SM" name="SM">');for(i=1;i<13;i++){document.write('<option value="'+i+'">'+lefttwo(i)+"</option>")}document.write("</select>")}function lefttwo(b){var a=b;if(a!=null&&a!=" "){a="00"+a;a=a.substring(a.length-2,a.length);if(a=="0"){a==""}}return a};