// JavaScript Document

// script modulo informazioni //

// contatti inglese
function engCheckFields(theForm)
{
  if (theForm.FullName.value == "")
  {
    alert("Missing value for field \"Relocatee\'s Full Name\".");
    theForm.FullName.focus();
    return (false);
  }
  if (theForm.Passport.value == "")
  {
    alert("Missing value for field \"Passport Country & Nationality\".");
    theForm.Passport.focus();
    return (false);
  }
    if (theForm.Employer.value == "")
  {
    alert("Missing value for field \"Relocatee\'s Employer\".");
    theForm.Employer.focus();
    return (false);
  }
  if (theForm.City.value == "")
  {
    alert("Missing value for field \"Destination City in Italy\".");
    theForm.City.focus();
    return (false);
  }
  if (theForm.Email.value == "")
  {
    alert("Missing value for field \"E-Mail\".");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Email.value.length < 6)
  {
    alert("Wrong e-mail address.");
    theForm.Email.focus();
    return (false);
  }
  else if (theForm.Email.value.indexOf("@")==-1)
  {
    alert("Wrong e-mail address.");
    theForm.Email.focus();
    return (false);
  }
  else if (theForm.Email.value.indexOf(".")==-1)
  {
    alert("Wrong e-mail address.");
    theForm.Email.focus();
    return (false);
  }
  if (theForm.Privacy.checked == false)
  {
    alert("Before proceeding, please accept the agreement conditions.");
    theForm.Privacy.focus();
    return (false);
  }
  
  return (true);
}