function doClock(){
	//window.setTimeout("doClock()",1000);
	arr_mese=new Array("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre");
	arr_giorno=new Array("Domenica","Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato" );
	today=new Date();
	ore=today.getHours();
	if (ore<10){ore="0"+ore};
	min=today.getMinutes();
	if (min<10){min="0"+min};
	sec=today.getSeconds();
	if (sec<10){sec="0"+sec};
	mese=today.getMonth();
	giorno=today.getDate();
	giornos=today.getDay();
	anno = today.getYear();
	if (anno<2000){anno += 1900}
	data = arr_giorno[giornos]+" "+giorno+" "+arr_mese[mese]+" "+anno+" ";
	oraesatta=ore+":"+min;
	}

function preload()
{ 
  var args = preload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

function MM_validateForm() { //customized by N.Boccardi
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) {
	 nm=val.name;
       //my adding
	 if (test.charAt(0) == 'M'){
	   if (val.selectedIndex < 1) errors+='- la prima opzione del campo '+nm+' non è valida.\n';
	 }
       //end
	 if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) {
	    p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- il campo '+nm+' deve contenere un indirizzo e-mail valido.\n';
      } 
  else if ((test!='R') && (test!='M')){//another adding
        if (isNaN(val)) errors+='- il campo '+nm+' deve contenere un numero.\n';
        if (test.indexOf('inRange') != -1) {
		  p=test.indexOf(':');
          min=test.substring(8,p);
		  max=test.substring(p+1);
          if (val<min || max<val) errors+='- il campo '+nm+' deve contenere un numero fra '+min+' e '+max+'.\n';
        }
	  }
	 }
	 else if (test.charAt(0) == 'R') errors += '- il campo '+nm+' e\' necessario.\n';
    }

  }
   
  if (errors) alert('Si sono verificati i seguenti errori:\n'+errors);
  document.MM_returnValue = (errors == '');
  
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}