// JavaScript Document

<!-- Sets today's date as the starting date-->
function makeDate() {
   now = new Date();
   return (now.getMonth()+1) + '/' + now.getDate()+ '/' +now.getYear();
}

<!-- Sets today's date +1 month as the ending date-->
var right_now=new Date();
var month_num = (right_now.getMonth()+1);

function makeDateEND() {
if (month_num==12)
{ now = new Date();
   return 1 + '/' + now.getDate()+ '/' +(now.getYear()+1); }
else
{ now = new Date();
   return (now.getMonth()+2) + '/' + now.getDate()+ '/' +now.getYear(); }
}

<!-- When the user clicks on a specific day in the calendar at the left,-->
<!-- sets the same date in the startdate and enddate and then submits the form automatically-->
<!-- Note that after submitting the form, the fields do not retain the selected date-->
function equaldate() {
document.searcher.enddate.value = document.searcher.startdate.value;
document.searcher.submit();
}