<!--	
	function fuoco(){
			document.fiscale.cognome.focus();
	}
	function fuoco1(){
			var comune = document.fiscale.citta.value;
			var lunghe = comune.length
			if (document.fiscale.citta.value != "vuoto"){
			   document.fiscale.provincia.value = comune.substring(lunghe-2,lunghe);
			}
			document.fiscale.cognome.focus();
	}
	function resetta(){
			document.fiscale.reset();
			document.fiscale.nome.value="";
			document.fiscale.cognome.focus();
	}
	
	function controlla(){			
  			 if ((document.fiscale.cognome.value=="") || (document.fiscale.cognome.value == "undefined")){
			  	  alert("Il campo Cognome è obbligatorio");
				  document.fiscale.cognome.focus();
				  return false;
			 }
  			 else if ((document.fiscale.name.value=="") || (document.fiscale.name.value=="undefined")){
			  	  alert("Il campo Nome è obbligatorio");
				  document.fiscale.name.focus();
				  return false;
			 }
			 else if (document.fiscale.data.value.substring(2,3) != "/" ||
			      document.fiscale.data.value.substring(5,6) != "/" ||
				  isNaN(document.fiscale.data.value.substring(0,2)) ||
				  isNaN(document.fiscale.data.value.substring(3,5)) ||
				  isNaN(document.fiscale.data.value.substring(6,10)))
		     {
			  	  alert("Inserire data di nascita in formato gg/mm/aaaa");
				  document.fiscale.data.value = "";
				  document.fiscale.data.focus();
				  return false;
		     }
             else if ((document.fiscale.data.value.substring(0,2) > 31) || (document.fiscale.data.value.substring(0,2) < 1))
             {
   			  	  alert("Impossibile inserire un valore superiore a 31 per i giorni");
				  document.fiscale.data.select();
				  return false;
		     }
			 else if ((document.fiscale.data.value.substring(3,5) > 12) || (document.fiscale.data.value.substring(3,5) < 1))
			 {
   			  	  alert("Impossibile inserire un valore superiore a 12 per i mesi");
				  document.fiscale.data.select();
				  return false;
			 }
			 else if (document.fiscale.data.value.substring(6,10) < 1900)
			 {
			      alert("Impossibile inserire un valore inferiore a 1900 per l'anno");
				  document.fiscale.data.select();
				  return false;
			 }
			 else if (document.fiscale.citta.value=="vuoto")
			 {
			      alert("Seleziona un comune di nascita");
				  document.fiscale.citta.focus();
				  return false;
			 }
			 else{
                  document.fiscale.submit(); 
			 }
	 }
	 
-->