/* * this script should be included directly below the search form for initializing * the date picker dhtml * */ Calendar.setup({ inputField : "StartDate", ifFormat : "%m/%d/%Y", button : "anchor_StartDate", weekNumbers : false, firstDay : 0, dateStatusFunc : dateStatusHandler, range : [2010,2011], showOthers : true, electric : false }); function dateStatusHandler(date, y, m, d) { // this can be uncommented to disable past dates, however if this // is enabled, then the default StartDate has to be set to a valid date today = new Date(); return (compareDates(today, date) < 1); // this function is in search.js }