var months = ["","January","February","March","April","May","June","July","August","September","October","November","December"];
var days   = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
var time = new Date();
month    = months[time.getMonth() + 1];
date     = time.getDate();
year     = time.getYear();
day      = days[time.getDay()];
hours    = time.getHours();
minutes  = time.getMinutes();
if (hours < 10) {hours = "0" + hours}
if (minutes < 10) {minutes = "0" + minutes}
if (year < 2000) year += 1900;
document.write(day + "," + date + " " + month + " " + year + " " + hours + ":" + minutes);
