function makeMonthArray() {
        this.length=12;
        this[1] = "01.", this[2] = "02."; this[3] = "03.";
        this[4] = "04.", this[5] = "05."; this[6] = "06.";
        this[7] = "07.", this[8] = "08."; this[9] = "09.";
        this[10] = "10.", this[11] = "11."; this[12] = "12.";
        return(this);
}
function makeDayArray() {
        this.length=7;
        this[1] = "sund@y", this[2] = "mond@y"; this[3] = "tuesd@y";
        this[4] = "wednesd@y", this[5] = "thursd@y"; this[6] = "frid@y";
        this[7] = "s@turd@y";
        return(this);
}
function writeDate() {
        attdate = new Date();
        monthName = new makeMonthArray();
        dayName = new makeDayArray();    
        day = attdate.getDay() + 1;
        date = attdate.getDate();
        month = attdate.getMonth() + 1;
        year = attdate.getYear();
        sec = attdate.getSeconds()

        if (year >= 100 && year <= 1999) 
		  {year = year+1900}
		else 
			{year =  year}
		
        dateStr  = dayName[day];
        dateStr += ", ";
        dateStr += date;
        dateStr += ".";
        dateStr += monthName[month];
        dateStr += year;
        dateStr += ".";
        document.write(dateStr);
}