var monthNames = new Array ("Jan", "Feb", "March", "April", "May", "June", "July", "Aug", "Sep", "Oct", "Nov", "Dec");
var now = new Date();
var amPm = (now.getHours() < 12) ? "am" : "pm";
var hour = (now.getHours() > 12) ? (now.getHours() - 12) : (now.getHours() == 0) ? "12" : now.getHours();
var min = (now.getMinutes() < 10) ? ("0" + now.getMinutes()) : (now.getMinutes());
document.write (monthNames[now.getMonth()] + " " + now.getDate() + ", " + hour + ":" + min + amPm);

