/*
Author: Ke Li
Date Created: 3/9/10

*/



// function for displaying date, in format of date of the week, month, date, and year   
   function date()
	   {
	   var today = new Date();
	   var todaysDate = "Today is " + today.toLocaleDateString() + ".<br />";
	   return todaysDate;
	   }

// fill date function, will display the current date in the text box
function fillDate()
   {
      var monthNames= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
         "Aug", "Sep", "Oct", "Nov", "Dec"]
      var theDate =""
 
      var today = new Date();
 
      //get the month and covert to a string name
      var month = today.getMonth()
      var monthName = monthNames[month];
      theDate = theDate + monthName + " "
 
      //get the day
      var day = today.getDate()
      theDate = theDate + day + ", "
 
      //get the year
      var year = today.getFullYear()
      theDate = theDate + year
 
      //put it in the text box
      document.getElementById("myForm").date.value = theDate
 
   }

