
	d = new Date();
	dayText = " ";

	dayValue = d.getDay();

	if (dayValue == 0)
	    dayText += "Sunday";
	else if (dayValue == 1)
	    dayText += "Monday";
	else if (dayValue == 2)
	    dayText += "Tuesday";
	else if (dayValue == 3)
	    dayText += "Wednesday";
	else if (dayValue == 4)
	    dayText += "Thursday";
	else if (dayValue == 5)
	    dayText += "Friday";
	else if (dayValue == 6)
	    dayText += "Saturday";

	monthValue = d.getMonth();

	dateText = "";

	if (monthValue == 0)
	    dateText += "January";
	if (monthValue == 1)
	    dateText += "February";
	if (monthValue == 2)
	    dateText += "March";
	if (monthValue == 3)
	    dateText += "April";
	if (monthValue == 4)
	    dateText += "May";
	if (monthValue == 5)
	    dateText += "June";
	if (monthValue == 6)
	    dateText += "July";
	if (monthValue == 7)
	    dateText += "August";
	if (monthValue == 8)
	    dateText += "September";
	if (monthValue == 9)
	    dateText += "October";
	if (monthValue == 10)
	    dateText += "November";
	if (monthValue == 11)
	    dateText += "December";
	
	dateText += " " + d.getDate() + ", 2000";
	
        function write_day()
         {
          document.open();
          document.write(dayText);
          return true;
         }

        function write_date()
         {
          document.open();
          document.write(dateText);
          return true;
         }

