<!--

now = new Date();

Currentnow = now.getHours();

if (Currentnow < 4) {

document.write("Buona serata");

}else{

if (Currentnow < 13) {

document.write("Buongiorno");

}else{

if (Currentnow < 18) {

document.write("Buon pomeriggio");

}else{

document.write("Buona serata");

}}}

document.write(": oggi è ","<br>");

now = new Date()

if (now.getDay() == 5)

document.write("venerdì")

if (now.getDay() == 6)

document.write("sabato")

if (now.getDay() == 0)

document.write("domenica")

if (now.getDay() == 1)

document.write("lunedì")

if (now.getDay() == 2)

document.write("martedì")

if (now.getDay() == 3)

document.write("mercoledì")

if (now.getDay() == 4)

document.write("giovedì")

document.write(" ")

document.write(now.getDate()," ")

if (now.getMonth() == 0)

document.write("Gennaio")

if (now.getMonth() == 1)

document.write("Febbraio")

if (now.getMonth() == 2)

document.write("Marzo")

if (now.getMonth() == 3)

document.write("Aprile")

if (now.getMonth() == 4)

document.write("Maggio")

if (now.getMonth() == 5)

document.write("Giugno")

if (now.getMonth() == 6)

document.write("Luglio")

if (now.getMonth() == 7)

document.write("Agosto")

if (now.getMonth() == 8)

document.write("Settembre")

if (now.getMonth() == 9)

document.write("Ottobre")

if (now.getMonth() == 10)

document.write("Novembre")

if (now.getMonth() == 11)

document.write("Dicembre")

document.write(" ",now.getYear());

//-->
