function checkCampi(form) {
  if (Trim(form.txtCognome.value)=="") {
    alert("Cognome: campo obbligatorio.");
    form.txtCognome.focus();  
    return false;
  } 
  
  if (Trim(form.txtNome.value)=="") {
    alert("Nome: campo obbligatorio.");
    form.txtNome.focus();  
    return false;
  } 
  
  if (Trim(form.txtIndirizzoEmail.value)=="") {
    alert("Indirizzo email: campo obbligatorio.");
    form.txtIndirizzoEmail.focus();  
    return false;
  } 
  
  if (emailCheck(form.txtIndirizzoEmail)==false) {
	return false;
  }
  
  if (Trim(form.txtTestoEmail.value)=="") {
    alert("Testo email: campo obbligatorio.");
    form.txtTestoEmail.focus();  
    return false;
  } 
  
  if (Trim(form.txtOggettoEmail.value)=="") {
    alert("Oggetto email: campo obbligatorio.");
    form.txtOggettoEmail.focus();  
    return false;
  } 
  
  if (Trim(form.j_captcha_response.value)=="") {
	alert("Security check: campo obbligatorio.");
	form.j_captcha_response.focus();    
	return false;
  } 
  
  if (confirm("Sicuro di voler procedere ?")) {
	return true;
  } 
  else {
	return false;
  }
	
  return true;
}
