<!--

var temporizzatore = null;
var timer = false;
var id = 0;
var myDays=["domenica","lunedi","martedi","mercoledi","giovedi","venerdi","sabato","domenica"]
var myMonth=["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]

function ferma ()
{
        if(timer)
                clearTimeout(temporizzatore);
        timer = false;
}

function vai () {
		var now = new Date();
		var giorno = now.getDay();
		var mese = now.getMonth();
		var anno = now.getYear();
		var hours = now.getHours();
		var minutes = now.getMinutes();
		//var seconds = now.getSeconds()
		var data_completa = myDays[giorno] + " " + now.getDate() +  " " + myMonth[mese] + " " + anno ;
        var timeValue = "" + hours
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        //timeValue += ((seconds < 10) ? ":0" : ":") + seconds
		  data_ora = data_completa + " ore " + timeValue	
        document.Timer.Data.value = data_ora;
        temporizzatore = setTimeout("vai()",1000);
        timer = true;
}

function avvia () 
{
        ferma();
        vai();
}
//-->