var now = new Date()
var theHour = now.getHours()
var theMin = now.getMinutes()
var theTime = "" + ((theHour > 12) ? theHour - 12 : theHour)
theTime += ((theMin < 10) ? ":0" : ":") + theMin
theTime  += (theHour >= 12) ? " pm" : " am"

document.write("You launched this page on " + DateString(new Date()) + " at " + theTime + ".")
