/* Today's date script
Visit java-scripts.net, http://wsabstract.com, or http://www.computerhope.com/j2.htm for this script
*/
			
function newDate(){
			
	var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
			
	var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
			
	var now = new Date
			 
	var Hours;
	var Mins;
	var Time;
	Hours = now.getHours();
	
	if (Hours >= 12) {
		Time = " P.M.";
	}
	else {
		Time = " A.M.";
	}

	if (Hours > 12) {
		Hours -= 12;
	}

	if (Hours == 0) {
		Hours = 12;
	}

	Mins = now.getMinutes();
	if (Mins < 10) {
		Mins = "0" + Mins;
	}
			
	if (navigator.appName == "Microsoft Internet Explorer") {
		//document.write(dayName[now.getDay()] + ", " + monName[now.getMonth()] + " "+now.getDate() +", " + now.geYear() + ", " + Hours + ":" + Mins + " " + Time)
		document.write(dayName[now.getDay()] + ", " + monName[now.getMonth()] + " "+now.getDate() +", " + now.getYear())
	}
	else {
		//document.write(dayName[now.getDay()] +  ", " + monName[now.getMonth()] + " "+now.getDate() +", " + (1900 + now.getYear()) +  "  " + Hours + ":" + Mins + " " + Time)
		document.write(dayName[now.getDay()] +  ", " + monName[now.getMonth()] + " "+now.getDate() +", " + (1900 + now.getYear()))
	}
}
