var now = new Date();
var timestr = now.toLocaleString();

document.write(" "+timestr);
