var myCustomRenderer = function(workingDate, cell) { //var calendarLinks = new Array(); //alert ('aaaaa'); Notice: Undefined index: language in /srv/webs/prazskakonzervator.cz/build/customForCalendar.php on line 10 var calendarLaguage='czech' Warning: Invalid argument supplied for foreach() in /srv/webs/prazskakonzervator.cz/build/customForCalendar.php on line 19 //calendarLinks ["10/9/2010"]='tdadasdasdaoto_je_kruty_url'; //cell.innerHTML = "X"; var sMonth = String (workingDate.getMonth()+1); sMonth = '0' + sMonth; sMonth = sMonth.substring(sMonth.length, sMonth.length-2); //alert (sMonth); var sDay = String (workingDate.getDate()); sDay = '0' + sDay; sDay = sDay.substring(sDay.length, sDay.length-2); //var sDateStr = (workingDate.getMonth()+1) + '/' + workingDate.getDate() + '/' + (workingDate.getYear()+1900); var sDateStr; /* hack kvuli jinemu chovani IE */ if (workingDate.getYear()>2000) { sDateStr = (sMonth + '/' + sDay + '/' + (workingDate.getYear())); } else { sDateStr = (sMonth + '/' + sDay + '/' + (workingDate.getYear()+1900)); } //var sDateStr = (workingDate.getMonth()+1) + '/' + workingDate.getDate(); //alert (sDateStr); //alert (calendarLinks[sDateStr]); cell.innerHTML = '' + this.buildDayLabel(workingDate) + ""; //cell.innerHTML = '' + this.buildDayLabel(workingDate) + ""; YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_SELECTED); //cell.class=this.Style.CSS_CELL_SELECTABLE; //alert (cell.className); return YAHOO.widget.Calendar.STOP_RENDER; }