<!--
      function StripAll(StripAllBlanks)
       {
       return StripAllBlanks.replace(/\s+/g,"");
       }
      
			function checkForm()
				{
					var TRUE = new Boolean("True")
					var FALSE = new Boolean("False")
					var RICEVEREselezionato=true;
			   	var strValidChars = "0123456789.-";
					var strChar;
			   	var blnResult = true;
						
					blnError = FALSE
					strError = "ATTENZIONE! I seguenti campi sono obbligatori: \n\n"
					if (StripAll(document.TheForm.azienda.value)  == "" )
						{
							blnError = TRUE
							strError = strError + " - Azienda \n"
						};
					if (StripAll(document.TheForm.indirizzo.value)  == "" )
						{
							blnError = TRUE
							strError = strError + " - Indirizzo \n"
						};
					if (StripAll(document.TheForm.CAP.value)  == "" )
						{
							blnError = TRUE
							strError = strError + " - CAP \n"
						};
					if (StripAll(document.TheForm.CITTA.value)  == "" )
						{
							blnError = TRUE
							strError = strError + " - Cittą \n"
						};
					if (StripAll(document.TheForm.PROV.value)  == "")
						{
							blnError = TRUE
							strError = strError + " - Prov. \n"
						};
					if (StripAll(document.TheForm.TEL.value)  == "")
						{
							blnError = TRUE
							strError = strError + " - Tel. \n"
						};
					if (StripAll(document.TheForm.FAX.value)  == "")
						{
							blnError = TRUE
							strError = strError + " - Fax \n"
						}; 
					if (StripAll(document.TheForm.email.value)  == "")
						{
							blnError = TRUE
							strError = strError + " - Email \n"
						};
					if (StripAll(document.TheForm.PERSRIF.value)  == "")
						{
							blnError = TRUE
							strError = strError + " - Persona di riferimento \n"
						};
					for ( i = 0 ; i < 3  ; i++ )
          {
           (document.TheForm.RICEVERE[i].checked == 1)?RICEVEREselezionato=false:null
          };
					if (RICEVEREselezionato) 
            { 
            blnError=true; 
            strError = strError + " - Selezionare almeno un tipo di contatto \n" ; 
            } 
						
					
					if (blnError == TRUE)
						{
							strError = strError + "\n Compilare i campi e quindi riprovare."
							alert(strError)				
						}
					else
						{
							document.TheForm.submit()
						};				
					}	

		-->     
   


