<!-- date function -->
// Date functions
function displayToday() {
	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 d  = now.getDate();
	var day = (d < 10) ? '0' + d : d;
	var m = now.getMonth() + 1;
	var month = (m < 10) ? '0' + m : m;
	var yy = now.getYear();
	var year = (yy < 1000) ? yy + 1900 : yy;
	var Hours = now.getHours();
	var Minutes = now.getMinutes();
	var min = (Minutes < 10) ? '0' + Minutes : Minutes;
	var ampm = "am";
	if (Hours >= 12) ampm = "pm";
	if (Hours == 0) Hours = "12";
	if (Hours > 12) Hours -= 12;

	// Join it all together
	today =  days[now.getDay()] + ", " +
		month + "/" + day + "/" + year + " | " +
		Hours + ":" + min + ampm;
	return today;
}
// End date function
<!-- END date function -->
