function Validator(theForm)
{
	if (theForm.nome.value == "") {
		alert("Nome richiesto/Name required");
		theForm.nome.focus();
		return false;
  }
  
	if (theForm.cognome.value == "") {
		alert("Cognome richiesto/Surname required");
		theForm.cognome.focus();
		return false;
  }
  
	if (theForm.azienda.value == "") {
		alert("Azienda richiesta/Company required");
		theForm.azienda.focus();
		return false;
  }
  
	if (theForm.citta.value == "") {
		alert("Città richiesta/City required");
		theForm.citta.focus();
		return false;
  }
  
	if (theForm.mail.value == "") {
		alert("E-mail richiesta/E-mail required");
		theForm.mail.focus();
		return false;
  }  
  if (theForm.mail.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) {
		alert("E-mail non valida/Invalid e-mail");
		theForm.mail.focus();
		return false;
  }

  if (theForm.privacy.checked == false) {
		alert("Privacy richiesta/Privacy required");
		theForm.privacy.focus();
		return false;
  }


  return true;
}

function ValidatorCV(theForm)
{
	
	x = document.getElementById("cv_name");
  if (x.value == "") {
		alert("Nome richiesto/Name required");
		x.focus();
		return false;
  }

	x = document.getElementById("cv_surname");
  if (x.value == "") {
		alert("Cognome richiesto/Surname required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_date_birth");
  if (x.value == "") {
		alert("Data nascita richiesta/Date of birth required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_place_birth");
  if (x.value == "") {
		alert("Luogo nascita richiesto/Place of birth required");
		x.focus();
		return false;
  }
 
	x = document.getElementById("cv_status");
  if (x.value == "") {
		alert("Stato civile richiesto/Marital status required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_address");
  if (x.value == "") {
		alert("Indirizzo richiesta/Address required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_city");
  if (x.value == "") {
		alert("Città richiesta/City required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_cap");
  if (x.value == "") {
		alert("CAP richiesto/Postcode required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_nation");
  if (x.value == "") {
		alert("Nazione richiesta/Country required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_mobile");
  if (x.value == "") {
		alert("Cellulare richiesto/Mobile required");
		x.focus();
		return false;
  }
  
	x = document.getElementById("cv_email");
  if (x.value == "") {
		alert("E-mail richiesta/E-mail required");
		x.focus();
		return false;
  }  
  if (x.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) {
		alert("E-mail non valida/Invalid e-mail");
		x.focus();
		return false;
  }
	
	x = document.getElementById("cv_privacy");
  if (x.checked == false) {
		alert("Privacy richiesta/Privacy required");
		return false;
  }



  return true;
}

