  function Clock() {
     var orologio = new Date();
     var HH = orologio.getHours();
     var MM = orologio.getMinutes();
     var SS = orologio.getSeconds();
     parseInt(MM) < 10 ? MM = "0" + MM : null;
     parseInt(SS) < 10 ? SS = "0" + SS : null;
     document.formOrologio.textOrologio.value = HH + ":" + MM + ":" + SS;
     window.setTimeout("Clock()", 1000);
  }

function Data() {
	
	var Giorni=new Array(7); 
	Giorni[0]='Domenica';
	Giorni[1]='Lunedì';
	Giorni[2]='Martedì';
	Giorni[3]='Mercoledì';
	Giorni[4]='Giovedì';
	Giorni[5]='Venerdì';
	Giorni[6]='Sabato';

	var mesi=new Array(12); 
	mesi[0]='Gennaio';
	mesi[1]='Febbraio';
	mesi[2]='Marzo';
	mesi[3]='Aprile';
	mesi[4]='Maggio';
	mesi[5]='Giugno';
	mesi[6]='Luglio';
	mesi[7]='Agosto';
	mesi[8]='Settembre';
	mesi[9]='Ottobre';
	mesi[10]='Novembre';
	mesi[11]='Dicembre';

	

     var datacorrente = new Date();
	 var oggi=datacorrente.getDay(); //getDay restituisce un intero
	 var oggi=Giorni[oggi]; 	 
	 var GG = datacorrente.getDate();
     var MM = datacorrente.getMonth();
	 MM=mesi[MM]; 	 
	 var AA = datacorrente.getYear();
     parseInt(GG) < 10 ? MM = "0" + GG : null;
     parseInt(MM) < 10 ? MM = "0" + MM : null;

     document.frmdata.textdata.value = oggi +" " + GG + " " + MM + " " + AA;
     //window.setTimeout("Clock()", 1000);
  }

