 n4 = (document.layers)? true:false
 ie = (document.all)? true:false
 n6 = (document.getElementById)? true:false
function initArray()
{this.length = initArray.arguments.length
for (var i = 0;i < this.length;i++)
this[i+1] = initArray.arguments[i]
}
var dias = new initArray("Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Disabte");
var meses = new initArray("gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre");
ultimafecha = new Date(document.lastModified);
document.write(dias[(ultimafecha.getDay()+1)],", ");
document.write(ultimafecha.getDate(), " ");

if ((meses[(ultimafecha.getMonth()+1)] == "abril")||
	(meses[(ultimafecha.getMonth()+1)] == "agost")||
	(meses[(ultimafecha.getMonth()+1)] == "octubre")){
	document.write(" d' ");
	document.write(meses[(ultimafecha.getMonth()+1)]," de ");
}
else{
	document.write(" de ");
	document.write(meses[(ultimafecha.getMonth()+1)]," de ");
}


if (ie) {
	var anyo=ultimafecha.getYear();
}
else{
	if (n4){ var anyo = ultimafecha.getYear() + 2000
	if (document.DocumentType=='div'){
	alert('pepe');
	}
}
else{
	var anyo=ultimafecha.getYear() + 1900}
}
document.write(anyo);


