	function poclock() {
		if (!document.layers && !document.all)
		return;
		var day="";
		var month="";
		var myweekday="";
		var year="";
	arday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ")
	ardate = new Array("0th","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st");
		var tt = new Date();
		myday = tt.getDay();
		mymonth = tt.getMonth();
		myweekday= tt.getDate();
		myyear= tt.getYear();
		year = myyear;

		var hours = tt.getHours();
		var minutes = tt.getMinutes();
		var seconds = tt.getSeconds();
		var dn = "AM";
		if (hours >= 12) { dn = "PM"; hours = hours - 12; }
		if (hours == 0) { hours = 12; }
		if (minutes <= 9) { minutes = "0" + minutes; }
		if (seconds <= 9) { seconds = "0" + seconds; }
		movingtime = "It's: "  
		+" " +hours + ":" + minutes + ":" + seconds + " " + dn 
		+" "+ arday[myday]+", " 
		+ armonth[mymonth] +" "+ ardate[myweekday] + ", " + year;
		if (document.layers) {
			document.layers.clock.document.write(movingtime);
			document.layers.clock.document.close(); }
		else if (document.all) { clock.innerHTML = movingtime; }
		setTimeout("poclock()", 1000)
	}
	window.onload = poclock;

