function contact_Validator(theForm)
{

  if (theForm.name_first.value == "")
  {
    alert("Please enter your first name.");
    theForm.name_first.focus();
    return (false);
  }

  if (theForm.name_last.value == "")
  {
    alert("Please enter your last name.");
    theForm.name_last.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Please enter your email.");
    theForm.email.focus();
    return (false);
  }
  
  if ((theForm.email.value.indexOf('@',0) == -1) || (theForm.email.value.indexOf('.',0) == -1))
  {
    alert("Email address is incorrectly formatted. Please enter again.");
    theForm.email.focus();
    return (false);
  }
  
  if (theForm.subject.value == "")
  {
    alert("Please select a subject.");
    theForm.subject.focus();
    return (false);
  }

  return (true);
}

function requestaquote_step1_Validator(theForm)
{

  if (theForm.id.value == "")
  {
    alert("Please select your Automobile Make.");
    theForm.id.focus();
    return (false);
  }

  if (theForm.automobile_year.value == "")
  {
    alert("Please enter the Year of your automobile.");
    theForm.automobile_year.focus();
    return (false);
  }
  
  if (theForm.port_of_loading.value == "")
  {
    alert("Please select your Port of Loading.");
    theForm.port_of_loading.focus();
    return (false);
  }

  return (true);
}

function requestaquote_step2_Validator(theForm)
{

  if (theForm.automobile_model.value == "")
  {
    alert("Please select your Automobile Model.");
    theForm.automobile_model.focus();
    return (false);
  }

  if (theForm.port_of_discharge.value == "")
  {
    alert("Please select your Port of Discharge.");
    theForm.port_of_discharge.focus();
    return (false);
  }

  return (true);
}

function requestaquote_step3_Validator(theForm)
{

  if (theForm.name_first.value == "")
  {
    alert("Please enter your first name.");
    theForm.name_first.focus();
    return (false);
  }

  if (theForm.name_last.value == "")
  {
    alert("Please enter your last name.");
    theForm.name_last.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Please enter your email.");
    theForm.email.focus();
    return (false);
  }
  
  if ((theForm.email.value.indexOf('@',0) == -1) || (theForm.email.value.indexOf('.',0) == -1))
  {
    alert("Email address is incorrectly formatted. Please enter again.");
    theForm.email.focus();
    return (false);
  }

  return (true);
}
