// JavaScript Document
// Funzione chiamata dal FORM per la validazione dei campi ...
function Form_Validator(theForm) {
	
	// verifico se è stato compilato il campo COGNOME_NOME
  	if (theForm.COGNOME_NOME.value == ""){
		alert ("Inserire il Nome ed il Cognome");	
		theForm.COGNOME_NOME.focus();
		return (false);
	}
	
	// verifico se è stato compilato il campo TELEFONO
  	if (theForm.TELEFONO.value == ""){
		alert ("Inserire il telefono");	
		theForm.TELEFONO.focus();
	return (false);
	}

	// Verifico se é stata accettata la responsabilità per i dati ITALIA
	if (theForm.PRIVACY_ITALIA[0].checked==false){
		alert ("Occorre accettare il trattamento dei dati personali");
		theForm.PRIVACY_ITALIA[0].focus();
		return (false);
	}

	// verifico se è stato compilato il campo EMAIL
  	if (theForm.code.value == ""){
		alert ("Inserire il codice di verifica");
		theForm.code.focus();
		return (false);
	}
	
}
