<!--
var longmonth = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var shortmonth = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Augt", "Sep", "Oct", "Nov", "Dec");
function DateAdd(startDate, numDays, numMonths, numYears)
{
   var returnDate = new Date(startDate.getTime());
   var yearsToAdd = numYears;

   var month = returnDate.getMonth()+ numMonths;
   if (month > 11)
   {
      yearsToAdd = Math.floor((month+1)/12);
      month -= 12*yearsToAdd;
      yearsToAdd += numYears;
   }
   returnDate.setMonth(month);
   returnDate.setFullYear(returnDate.getFullYear()   + yearsToAdd);
   returnDate.setTime(returnDate.getTime()+60000*60*24*numDays);
   return returnDate;

}

// bit that sorts out the date
function Date_Display()
{
   document.write('<select name="day" id="day" size="1">') ;
   thedate = new Date();
   dday=thedate.getDate();
   var selected;
   var mymonth ;
   for(i=1;i<32;i++)
   {
      if(dday == i)
      {
         selected = "selected";
      }
      else
      {
          selected = "";
      }
      if(i<10)
      {
          leadzero = "0";
      }
      else
      {
          leadzero = "";
      }
      document.write('<option '+selected+' value="'+leadzero+i+'">'+leadzero+i+'</option>')
   }
   document.write('</select>&nbsp;<select name="my" id="my" size="1">') ;
   themonth = thedate.getMonth();
   theyear = thedate.getFullYear();
   newdate = new Date(theyear, themonth, 1);

   for(i=0; i < 13; i++)
   {
      thedate = DateAdd(newdate,0,i,0);
      themonth = thedate.getMonth();
      mymonth=themonth+1 ;
      theyear = thedate.getFullYear();
      theyear = theyear.toString();
      document.write('<option value="'+shortmonth[themonth]+' '+theyear+'">'+longmonth[themonth]+' '+theyear+'</option>');
   }
   document.write('</select>') ;

}

// -->