/*
  This program will display the current day of the week along with 
  the month, day, and year. 
     EX)  Sunday, December 11, 2003
*/

//Day of the week
d = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", 
              "Friday", "Saturday"); 
//Month of the year		  
m = new Array("January", "February", "March", "April", "May", "June", 
              "July", "August", "September", "October", "November",
			  "December"); 

today = new Date(); 
day = today.getDate(); 

//If you want the day to have an ending such as: 1st, 2nd, 3rd, or 4th 
//end = "th"; 
//if (day==1 || day==21 || day==31) end="st"; 
//if (day==2 || day==22) end="nd"; 
//if (day==3 || day==23) end="rd"; 
//day+=end; 

//Display on screen
//document.write(d[today.getDay()]+", "+m[today.getMonth()]+" "); 
document.write(m[today.getMonth()]+" "); 
document.write(day+", " + today.getFullYear()); 