YAHOO.util.Event.addListener(window,"load",function(){YAHOO.namespace("example.calendar");sReturn="";iFirstKey=0;sDate="";for(property in aSelectedDate){if(iFirstKey==0){sDate=aSelectedDate[property];sProperty=property}iFirstKey++}var b=sProperty.substr(0,4);var c=sProperty.substr(5,2);iKey=0;for(sKey in sDate){if(iKey==0){var a=aSelectedDate[sProperty][sKey];aMaxDate=new Array(b,c,a)}iKey++}YAHOO.example.calendar.cal1=new YAHOO.widget.Calendar("cal1","calendar-content",{mindate:STARTDATE,maxdate:new Date(aMaxDate)});aMonth=new Array();aMonth.LONG=new Array();aMonth.SHORT=new Array();for(i=1;i<=12;i++){aMonth.LONG.push(oGB.GG("long-"+i,"date_month"));aMonth.SHORT.push(oGB.GG("short-"+i,"date_month"))}YAHOO.example.calendar.cal1.cfg.setProperty("MONTHS_SHORT",aMonth.SHORT);YAHOO.example.calendar.cal1.cfg.setProperty("MONTHS_LONG",aMonth.LONG);aDay=new Array();aDay.LONG=new Array();aDay.SHORT=new Array();aDay.LONG.push(oGB.GG("long-6","date_day"));aDay.SHORT.push(oGB.GG("short-6","date_day"));for(i=0;i<=5;i++){aDay.LONG.push(oGB.GG("long-"+i,"date_day"));aDay.SHORT.push(oGB.GG("short-"+i,"date_day"))}YAHOO.example.calendar.cal1.cfg.setProperty("START_WEEKDAY",1);YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_SHORT",aDay.SHORT);YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_LONG",aDay.LONG);YAHOO.example.calendar.cal1.addRenderer(GenerateSelectedString(),YAHOO.example.calendar.cal1.renderCellStyleHighlight1);YAHOO.example.calendar.cal1.selectEvent.subscribe(ChooseDate,YAHOO.example.calendar.cal1,true);YAHOO.example.calendar.cal1.render()});var GenerateSelectedString=function(){var c="";for(sDate in aSelectedDate){var b=sDate.substr(0,4);var d=sDate.substr(5,2);for(sKey in aSelectedDate[sDate]){var a=aSelectedDate[sDate][sKey];c+=d+"/"+a+"/"+b+","}}return c.substr(0,c.length-1)};var ChooseDate=function(a,c,b){aDate=new Date(this._toDate(c[0][0]));sDate=aDate.getFullYear()+"-"+(aDate.getMonth()+1<10?"0":"")+Number(aDate.getMonth()+1);if(typeof(aSelectedDate[sDate])!="undefined"){for(i in aSelectedDate[sDate]){if(aDate.getDate()==aSelectedDate[sDate][i]){window.location.href="/"+sLang+"/date/"+sDate+"-"+(aDate.getDate()<10?"0":"")+aDate.getDate()+".html"}}}};function trim(a){return a.replace(/^\s+/g,"").replace(/\s+$/g,"")}function CheckUserForm(){if(typeof(document.forms.loginf)!="undefined"){oForm=document.forms.loginf;if(trim(oForm.login.value)==""){alert(sErrorText.no_login);oForm.login.focus();return false}if(trim(oForm.password.value)==""){alert(sErrorText.no_password);oForm.password.focus();return false}return true}}var ShowComment=function(){oForm=GI("formaddcomment");oForm.style.display=oForm.style.display=="block"?"none":"block"};