<!--
function AggOra() {

var mesi = new Array("gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre");
var nomeGiorno = new Array('domenica','lunedi','martedi','mercoledi','giovedi','venerdi','sabato');

Data = new Date()
Giorno = Data.getDate()
Mese = Data.getMonth()
Anno = Data.getFullYear() 
Ore = Data.getHours()
Minuti = Data.getMinutes()
Secondi = Data.getSeconds()

if ((Ore > 6) && (Ore < 13)) Saluto = ""

if ((Ore > 12) && (Ore < 18)) Saluto = ""

if ((Ore > 17) && (Ore < 22)) Saluto = ""

if (Ore > 21) Saluto = "Buona notte"

if (Ore < 7) Saluto = "Buona notte"

if (Minuti < 10) Minuti = "0" + Minuti

if (Secondi < 10) Secondi = "0" + Secondi

messaggio = "Oggi è " + nomeGiorno[Data.getDay()] + " " + Giorno + " " + mesi[Mese] + " " + Anno + ", e sono le ore " + Ore + ":" + Minuti + "." + Secondi

if(!document.layers){
  aggsec = setTimeout("AggOra();",1000);}

if (document.getElementById){
    document.getElementById('clockora').innerHTML=messaggio;}

else if (document.all){ 
    document.all.clockora.innerHTML=messaggio;}

else if(document.layers){
    document.write(messaggio);}
}
AggOra();
//-->
