function makeMonthArray() {
        this.length=12;
        this[1] = "January ", this[2] = "Feb."; this[3] = "March ";
        this[4] = "April ", this[5] = "May "; this[6] = "June ";
        this[7] = "July ", this[8] = "Aug."; this[9] = "Sept.";
        this[10] = "October ", this[11] = "November "; this[12] = "December ";
        return(this);
}
function makeDayArray() {
        this.length=7;
        this[1] = "Sun.", this[2] = "Mon."; this[3] = "Tue.";
        this[4] = "Wed.", this[5] = "Thu."; this[6] = "Fri.";
        this[7] = "Saturday";
        return(this);
}
function writeDate() {
        attdate = new Date();
        monthName = new makeMonthArray();
        dayName = new makeDayArray();
        date = attdate.getDate();
        month = attdate.getMonth() + 1;
        year =  attdate.getYear();
        	sec = attdate.getSeconds()
      		if (90 <= year && year < 2000) 
			{
       			year = 2000;
      			}	
        dateStr = monthName[month];
        dateStr += "   ";
        dateStr +=  date ;
        dateStr += ", ";
        dateStr += year;
        document.write(dateStr);
}