
function monthArray() {
		this[0] = "Janvier";	this[1] = "Février";	this[2] = "Mars";
		this[3] = "Avril";	this[4] = "Mai";	this[5] = "Juin";
		this[6] = "Juillet";	this[7] = "Ao&ucirc;t";	this[8] = "Septembre";
		this[9] = "Octobre";	this[10] = "Novembre";	this[11] = "Decembre";
    	return (this);
}

function dayArray() {
		this[0] = "Dimanche";	this[1] = "Lundi";	this[2] = "Mardi";
		this[3] = "Mercredi";	this[4] = "Jeudi";	this[5] = "Vendredi";
		this[6] = "Samedi";
        return (this);
}

function formatYear(year) {
  		if (year > 1900) return year
  		return year+1900;
}

function writeDate() {
   		days = new dayArray();
   		months = new monthArray();
   		d = new Date();
   		day = d.getDate();
   		month = d.getMonth();
   		year = d.getYear();
   		str = days[d.getDay()] + " " + day + " " + months[month] +" "+formatYear(year);
  		document.writeln(str);
}

writeDate();

