

var host = window.location.hostname;

// Client side validation routine
var submitcount=0;

// Verify information on form before submitting //
function CheckForm()
{
  Ctrl = document.contactForm;

  if (Ctrl.lastName.value == "") {
    alert("Please enter your last name.");
    return (false);
  }

  if (Ctrl.city.value == "") {
    alert("Please enter your city name.");
    return (false);
  }

  if (Ctrl.state.value == "") {
    alert("Please enter the name of your state.");
    return (false);
  }

 
  
  if (Ctrl.country.value == "") {
    alert("Please enter the name of your country.");
    return (false);
  }
     if (Ctrl.email.value == "") {
    alert("Please enter a valid email address.");
    return (false);
  }
   if (Ctrl.company.value == "") {
    alert("Please enter the name of your company.");
    return (false);
  }
  

  //Submit the form
  if (submitcount == 0)
  {
      submitcount++;
      return (true);
  }
  else
  {
      alert("The form is still processing. Please wait...");
      return (false);
  }
}

