
function getDateTime(){


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";

var dateString = '';
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var timeValue = "" + ((hours >12) ? hours -12 :hours);
if (timeValue == "0") {
   timeValue = 12;
  }
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
timeValue += (hours >= 12) ? " P.M." : " A.M.";



var time=new Date();
var lmonth=months[time.getMonth() + 1];
var gdate=time.getDate();
var year=time.getYear();
if (year < 2000){    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
}
dateString = '<font size="2" ><b>' + lmonth + ' ';
dateString += gdate + ', ' + year;
dateString += '<br>';
dateString += timeValue + '</b></font></p>';
document.write(dateString);
}
