Date.prototype.defaultLang = "it";
Date.prototype.printToday = function(lang,sf){
	var week, months, month, sep, output;	
	lang = (!lang||typeof lang!="string")?this.defaultLang:lang;
	if (lang=="eng"){
		week = ["sunday","monday","tuesday'","wednesday","thursday","friday'","saturday"];
		months = ["january","february","march","april","may","june","july","august","september","october","november","december"];
	}
	if (lang=="it"){
		week = ["Domenica","Luned&igrave;","Marted&igrave;","Mercoled&igrave;","Gioved&igrave;","Venerd&igrave;","Sabato"];
		months = ["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"];
	}
	month = (!sf)? months[this.getMonth()]:(this.getMonth()+1);
	sep = (!sf)? " ":"-";
	output = week[this.getDay()] + ", " + this.getDate() + sep + month + sep + this.getFullYear();
	document.write(output);
}

var today= new Date();