
var months=new Array(13);

months[1]	= "January";
months[2]	= "February";
months[3]	= "March";
months[4]	= "April";
months[5]	= "May";
months[6]	= "June";
months[7]	= "July";
months[8]	= "August";
months[9]	= "September";
months[10]	= "October";
months[11]	= "November";
months[12]	= "December";

function clock()

{
if (!document.layers && !document.all) return;
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
var amOrPm = "am";
if (hours > 11) amOrPm = "pm";
if (hours > 12) hours = hours -12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;

// day=time.getDay();
day=time.getDate();
lmonth=months[time.getMonth() + 1];
var year=time.getYear();
if (year < 2000)
year = year + 1900;

dispTime = hours+":"+minutes+""+amOrPm+", "+day+" "+lmonth+" "+year+"";

if (document.layers) {
document.layers.timer.document.write(dispTime);
document.layers.timer.document.close();
}

else
if (document.all)
timer.innerHTML = dispTime;
setTimeout("clock()", 1000);
}

clock();





/*var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;

function today() { document.write(lmonth + " " + date); } */

