
var weekdayName = new weekdayArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
              function weekdayArray(d0,d1,d2,d3,d4,d5,d6)
              {
              this[0] = d0; this[1] = d1; this[2] = d2; this[3] = d3; this[4] = d4; this[5] = d5; this[6] = d6;
              }
var monthName = new gregorianMonthArray("January","February","March","April","May","June","July","August","September","October","November","December");
              function gregorianMonthArray(m0,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10,m11)
              {
                      this[0] = m0; this[1] = m1; this[2] = m2; this[3] = m3;
                      this[4] = m4; this[5] = m5; this[6] = m6; this[7] = m7;
                      this[8] = m8; this[9] = m9; this[10] = m10; this[11] = m11;
              }

// var monthAbbr = new gregorianMonthArray("Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec.");

var today = null ; 
   function getToday()
              {
                      if(today == null)
                              today = new Date();
              } 
	function displayWeekday()
              {
                      getToday();
                      document.writeln( weekdayName[today.getDay()] );
              }
 	function displayWeekdayPlusComma()
              {
                      getToday();
                      document.writeln( weekdayName[today.getDay()] + ",");
              } 
   function displayFullDate()
				{
            getToday();
            output = monthName[today.getMonth()] +  " "  + today.getDate() +  ", "  +  today.getFullYear()  ;
            document.writeln(output)
            }
