function fSetSelectedDay(myElement){if (myElement.id == "calCell") {if (!isNaN(parseInt(myElement.children["calDateText"].innerText))) {myElement.bgColor = "#c0c0c0";objPrevElement.bgColor = "";document.all.calSelectedDate.value = parseInt(myElement.children["calDateText"].innerText);objPrevElement = myElement;var url=frmCalendarSample.tbSelYear.value+"-"+frmCalendarSample.tbSelMonth.value+"-"+myElement.children["calDateText"].innerText;//alert(url);window.location="date.htm?date="+url;      }  }}
把上面函数替换就成了