function getDate() {
 
// Set an array for the days of the week
// We add a comma and a space to each for presentation
// get.day will return 0 through 6 as valid values 
word_day = new Array(
" Sunday, ",
" Monday, ",
" Tuesday, ",
" Wednesday, ",
" Thursday, ",
" Friday, ",
" Saturday, ")

// Set an array for the Months of the year
// We add a space after the month for presentation
// get.month will return 0 through 11 as valid values 
word_month = new Array(
" January ",
" February ",
" March ",
" April ",
" May ",
" June ",
" July ",
" August ",
" September ", 
" October ",
" November ",
" December ")

// Set right_now to the current date() value
right_now = new Date();

// Write the day of the week
document.write(word_day[right_now.getDay()]);
// Write the Month of the year
document.write(word_month[right_now.getMonth()]);

//Write the date of the month
document.write(right_now.getDate() + ", ");

// Write out the Year
var right_year=right_now.getYear();
if (right_year < 2000) 
right_year = right_year + 1900; 
document.write( right_year );

return;

}
