/* * this script should be included directly below the search form for initializing * the date picker dhtml * */ Calendar.setup( { inputField : "StartDate", // ID of the input field ifFormat : "%m/%d/%Y", // the date format button : "anchor_StartDate", // ID of the button weekNumbers : false, firstDay : 0, dateStatusFunc : dateStatusHandler, range : [2008,2009], 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 // return false; }