// -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
/* 
 * Function whatDay() returns the day of 
 * the week.  No incoming parameters are
 * needed.  The getDay() method will return
 * a value of from 0 to 6, which corresponds
 * to the Array set up in whatDay().
 */
function whatDay()
{
   daysOfWeek = new Array("Sunday",
         		  "Monday",
         		  "Tuesday",
         		  "Wednesday",
         		  "Thursday",
         		  "Friday",
         		  "Saturday");
         		  
   var now   = new Date;
   var dayNo = now.getDay();

   // Make sure that dayNo is from 0 to 6.
   // If it is not, return "day" instead of day value.
   if (( dayNo < 0 ) || ( dayNo > 6 ))
      { return "day"; }

   return daysOfWeek[dayNo];
}
// -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
