function checkNewsLetter(){
	if (document.frmNewsLetter.txtNomeAgenzia.value == ""){
		alert("Il campo Nome Agenzia è obbligatorio.");
		document.frmNewsLetter.txtNomeAgenzia.focus();
		return false;
		}
		
	if (document.frmNewsLetter.txtNome.value == ""){
		alert("Il campo Nome è obbligatorio.");
		document.frmNewsLetter.txtNome.focus();
		return false;
		}	
	
	if (document.frmNewsLetter.txtCognome.value == ""){
		alert("Il campo Cognome è obbligatorio.");
		document.frmNewsLetter.txtCognome.focus();
		return false;
		}
		
	if (document.frmNewsLetter.txtCitta.value == ""){
		alert("Il campo città è obbligatorio.");
		document.frmNewsLetter.txtCitta.focus();
		return false;
		}
		
	if (document.frmNewsLetter.txtProvincia.value == ""){
		alert("Il campo provincia è obbligatorio.");
		document.frmNewsLetter.txtProvincia.focus();
		return false;
		}
				
	if (document.frmNewsLetter.txtCap.value == ""){
		alert("Il campo cap è obbligatorio.");
		document.frmNewsLetter.txtCap.focus();
		return false;
		}
		
	if (document.frmNewsLetter.txtVia.value == ""){
		alert("Il campo Indirizzo è obbligatorio.");
		document.frmNewsLetter.txtVia.focus();
		return false;
		}
		
	if (document.frmNewsLetter.txtTelefono.value == ""){
		alert("Il campo Telefono è obbligatorio.");
		document.frmNewsLetter.txtVia.focus();
		return false;
		}
		
	if (document.frmNewsLetter.txtEmail.value == ""){
		alert("Il campo email è obbligatorio.");
		document.frmNewsLetter.txtEmail.focus();
		return false;
		}
	
	  if (document.frmNewsLetter.txtEmail.value.indexOf('@') <= 0 || document.frmNewsLetter.txtEmail.value.indexOf('.') <= 0)
      {
        alert("L'email non è corretta");
        document.frmNewsLetter.txtEmail.focus(); 
        return false;
      }
	  
	  
	  if (!document.frmNewsLetter.chkAutorizzo.checked){
		 alert("Devi autorizzare il trattamento dei dati personali.");
		 return false;
		 }
	  
	return true;
	}
