// these commands return the month, day, and year of the current date

function curDate () {
	today = new Date();
	var thisWkDay = today.getDay(); 
	var thisDate = today.getDate(); // no. day in the month
	var thisMonth = today.getMonth(); // the name of the month
	var thisYear = today.getFullYear(); // displays the 4 digit year
	
	var mName = new Array("January", "February", "March", "April", "May", 
       		"June", "July", "August", "September", "October","November", "December");
	
	var wdyName = new Array("Sunday", "Monday", "Tuesday", "Wednesday",
       		"Thursday", "Friday", "Saturday");
	
	return wdyName[thisWkDay] +", "+ mName[thisMonth] +" "+ thisDate +", "+ thisYear +".";
}