var months=new Array(13);
months[1]="Jan";
months[2]="Feb";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="Aug";
months[9]="Sep";
months[10]="Oct";
months[11]="Nov";
months[12]="Dec";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
//document.write(date+ "  ");
if(time.getHours()>12)
{
var timePart="pm";
}
else
{
timePart="am";
}


if(time.getMinutes()<10)
{
var min= "0"+ time.getMinutes();
document.write("<right>" + time.getHours() +":"+ min +" "+ timePart  + ", " + date +" "+ lmonth + "</right>");
}
else
{
document.write("<right>" + time.getHours() +":"+ time.getMinutes() +" "+ timePart  + ", " + date +" "+ lmonth + "</right>");
}