/* ***************************************************
 *
 * Java Script - by Gianni - 2000/2012
 * 
 * funzioni particolari locali, solo per alcune pagine
 ***************************************************** */
/* *************************************************** */
<!--//
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 < 14)) { Saluto = "buon giorno ";}
 if ((Ore > 14) && (Ore < 18)) { Saluto = "buon pomeriggio ";}
 if ((Ore > 17) && (Ore < 22)) { Saluto = "buona sera ";}
 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 = Saluto + "- ore " + Ore + ":" + Minuti + ", " + nomeGiorno[Data.getDay()] + " " + Giorno + " " + mesi[Mese] + " " + Anno
 if(!document.layers){ aggsec = setTimeout("AggOra();",1000);}
 if (document.getElementById){ document.innerHTML=messaggio;}
 else if (document.all){ document.all.clock.innerHTML=messaggio;}
 else if(document.layers){ document.write(messaggio);}
}
AggOra();
function ScriviOra() { document.write(messaggio); }
//-->
/* *********************************************** */

