//Get today's current date.
var now = new Date();

//Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

//Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

//Calculate the number of the current day in the week.
//var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

//Get four digit year.
function fourdigits(num)
	{
		return (num < 1000) ? num + 1900 : num;
	}

//Put it together.
today = days[now.getDay()] + ", " + "&nbsp;" + months[now.getMonth()] + " " + now.getDate() + ", " + (fourdigits(now.getYear()));

//Display the date.
document.write(today);