function composeDate() {
  month = new Array(12);
	month[1] = "January";
	month[2] = "February";
	month[3] = "March";
	month[4] = "April";
  month[5] = "May";
  month[6] = "June";
  month[7] = "July";
	month[8] = "August";
	month[9] = "September";
	month[10] = "October";
	month[11] = "November";
	month[12] = "December";
	
	day = new Array(7);
	day[1] = "Sunday";
	day[2] = "Monday";
	day[3] = "Tuesday";
	day[4] = "Wednesday";
	day[5] = "Thursday";
	day[6] = "Friday";
	day[7] = "Saturday";
	
  Today = new Date();
	ThisDate = Today.getDate();
	ThisDay = Today.getDay()+1;
	ThisMonth = Today.getMonth()+1;
	ThisYear = Today.getFullYear();
	fullDate = day[ThisDay]+", "+month[ThisMonth]+" "+ThisDate+", "+ThisYear;
	
	return fullDate;
}

function writeDate() {
  objDate = document.getElementById('dateDisplay');
	objText = document.createTextNode(composeDate());
	objDate.appendChild(objText);
}