// JavaScript Written by Carlo Armonici CWP Internet Services, 1998
function makeMonthArray() {
        this.length=12;
        this[1] = "janeiro", this[2] = "fevereiro"; this[3] = "março";
        this[4] = "abril", this[5] = "maio"; this[6] = "junho";
        this[7] = "julho", this[8] = "agosto"; this[9] = "setembro";
        this[10] = "outubro", this[11] = "novembro"; this[12] = "dezembro";
        return(this);
}
function makeDayArray() {
        this.length=7;
        this[1] = "domingo, ", this[2] = "segunda-feira, "; this[3] = "terça-feira, ";
        this[4] = "quarta-feira, ", this[5] = "quinta-feira, "; this[6] = "sexta-feira, ";
        this[7] = "sábado, ";
        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.getFullYear();
		
        dateStr  = dayName[day];
        dateStr += date;
        dateStr += " de ";
        dateStr += monthName[month];
        dateStr += ", ";
        dateStr += year;		
        document.write(dateStr);
}

