function printDate()
{
  var rightnow= new Date();
  var weekday= rightnow.getDay();
  var themonth= rightnow.getMonth();
  var thedate= rightnow.getDate();
  var theyear= rightnow.getYear();
// Set the Days of the Week
  var someday= new Array(7)
  someday[0]="Sunday";
  someday[1]="Monday";
  someday[2]="Tuesday";
  someday[3]="Wednesday";
  someday[4]="Thursday";
  someday[5]="Friday";
  someday[6]="Saturday";
//Set the Month Numbers to Be Recognizable
  themonth+=1;
//Set the Year Data for 4 Digits
if (theyear<2000)
   theyear+=1900;
document.write(someday[weekday]+ ", "+themonth+"/"+thedate+"/"+theyear);
}

