function checkNewsLetter(){
	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.txtVia.value == ""){
		alert("Il campo via è obbligatorio.");
		document.frmNewsLetter.txtVia.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.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;
	}
