// Y2K READY-USE GetFullYear
// DAY Names Javascript is funny Starts the numbering with Zero this array translates to 0...6 to the days of the week
// REMEMBER Arrays have to be written all on ONE(1) line to work

var stampdays = new Array( "Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); 

// Month Names - Guess what this array does. 0..11 to the system clock month

var stampmonths = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");

// GRABS the Date info from your System clock when your Browser reads  enters the page.
var thedate = new Date(); 

var Hours;
var Mins;
var Time;
Hours = thedate.getHours();
if (Hours >= 12) {
Time = " PM";
}
else {
Time = " AM";
}
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = thedate.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}	


//Gets the Translated Arrays written to the webpage for viewing. Remember you can use this for other things, too
document.write(stampdays[ thedate.getDay()] + ", " + stampmonths[ thedate.getMonth()] + " " + thedate.getDate() + ", " +   thedate.getFullYear()); 
document.write('<br>'+ Hours + ":" + Mins + Time);

