function displayClock()
{
	setInterval('updateClock()', 1000 );
}

function updateClock()
{
	var arrWeekday = new Array(7);
	arrWeekday[0] = "Sunday";
	arrWeekday[1] = "Monday";
	arrWeekday[2] = "Tuesday";
	arrWeekday[3] = "Wednesday";
	arrWeekday[4] = "Thursday";
	arrWeekday[5] = "Friday";
	arrWeekday[6] = "Saturday";

	var arrMonth = new Array(12);
	arrMonth[0] = "January";
	arrMonth[1] = "February";
	arrMonth[2] = "March";
	arrMonth[3] = "April";
	arrMonth[4] = "May";
	arrMonth[5] = "June";
	arrMonth[6] = "July";
	arrMonth[7] = "August";
	arrMonth[8] = "September";
	arrMonth[9] = "October";
	arrMonth[10] = "November";
	arrMonth[11] = "December";
	
	var currentDateTime = new Date ( );

	// Format the Date Element
	var currentDay = arrWeekday[currentDateTime.getDay()];
	var currentDate = currentDateTime.getDate();
	var currentMonth = arrMonth[currentDateTime.getMonth()];
	var currentYear = currentDateTime.getFullYear();

	// Format the Time Element
	var currentHours = currentDateTime.getHours ( );
	var currentMinutes = currentDateTime.getMinutes ( );
	var currentSeconds = currentDateTime.getSeconds ( );

	currentHours = ((currentHours < 10) ? "0" : "") + currentHours;
	currentMinutes = ((currentMinutes < 10) ? "0" : "") + currentMinutes;
	currentSeconds = ((currentSeconds < 10) ? "0" : "") + currentSeconds;

	// Put it all together
	var currentDateTimeString = currentDay + " " + currentDate + " " + currentMonth + " " + currentYear + " " + currentHours + ":" + currentMinutes + ":" + currentSeconds;

	document.getElementById("clock").firstChild.nodeValue = currentDateTimeString;
}
