function getCalendarMonth()
{
   var months = new Array(13);
   months[0]  = "Jan.";
   months[1]  = "Feb.";
   months[2]  = "Mar.";
   months[3]  = "Apr.";
   months[4]  = "May ";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "Aug.";
   months[8]  = "Sept";
   months[9]  = "Oct.";
   months[10] = "Nov.";
   months[11] = "Dec.";
   
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   
   return monthname;
} // function getCalendarMonth()

function getCalendarDay()
{
   var day = new Array(8);
   day[0]  = "Sunday";
   day[1]  = "Monday";
   day[2]  = "Tuesday";
   day[3]  = "Wednesday";
   day[4]  = "Thursday";
   day[5]  = "Friday";
   day[6]  = "Saturday";
   
   var now         = new Date();
   var monthday    = now.getDay();
   var dayString   = day[monthday];
   
   return dayString;
} // function getCalendarDay()

function displayDate(strPage) {
	var currentTime = new Date();
	var day = currentTime.getDate();
	var year = currentTime.getFullYear();
	var calendarDate = getCalendarDay();
	var calendarMonth = getCalendarMonth();

	var strDate = "";
	strDate += "<span style=\"left:0px\"><h1>";
	strDate += strPage;
	strDate += "</h1></span>";
	strDate += "<div class=\"date\">";
	strDate += "<span class=\"day\">";
	strDate += day;
	strDate += "</span>";
	strDate += "<span class=\"month\">";
	strDate += calendarMonth;
	strDate += "</span>";
	strDate += "<span class=\"year\">";
	strDate += year;
	strDate += "</span>";
	strDate += "<span class=\"daydesc\">"; 
	strDate += calendarDate;
	strDate += "</span>";
	strDate += "</div>";

	document.write(strDate);
}


