function Valid(thisForm)
{

  if (thisForm.company.value == "")
  {
    alert("Please enter a value for the \"Business Name\" field.");
    thisForm.company.focus();
    return (false);
  }

  if (thisForm.name.value == "")
  {
    alert("Please enter a value for the \"Your Name\" field.");
    thisForm.name.focus();
    return (false);
  }

  if (thisForm.title.value == "")
  {
    alert("Please enter a value for the \"Title\" field.");
    thisForm.title.focus();
    return (false);
  }

  if (thisForm.phonew.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    thisForm.phonew.focus();
    return (false);
  }

  var checkNUM = "0123456789()-x+. ";
  var checkStr = thisForm.phonew.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkNUM.length;  j++)
    {
      if (ch == checkNUM.charAt(j))
        break;
    }
    if (j == checkNUM.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only valid characters in the \"Phone\" field. Example: (800)555-1212 X44");
    thisForm.phonew.focus();
    return (false);
  } 


  return (true);  
}


function Validate(thisForm)
{

  if (thisForm.company.value == "")
  {
    alert("Please enter a value for the \"Business Name\" field.");
    thisForm.company.focus();
    return (false);
  }

  if (thisForm.name.value == "")
  {
    alert("Please enter a value for the \"Your Name\" field.");
    thisForm.name.focus();
    return (false);
  }

  if (thisForm.title.value == "")
  {
    alert("Please enter a value for the \"Title\" field.");
    thisForm.title.focus();
    return (false);
  }

  if (thisForm.phonew.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    thisForm.phonew.focus();
    return (false);
  }

  var checkNUM = "0123456789()-x+. ";
  var checkStr = thisForm.phonew.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkNUM.length;  j++)
    {
      if (ch == checkNUM.charAt(j))
        break;
    }
    if (j == checkNUM.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only valid characters in the \"Phone\" field. Example: (800)555-1212 X44");
    thisForm.phonew.focus();
    return (false);
  } 

  if (thisForm.email.value == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    thisForm.email.focus();
    return (false);
  }

  if (thisForm.address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    thisForm.address.focus();
    return (false);
  }

  if (thisForm.city.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    thisForm.city.focus();
    return (false);
  }

  if (thisForm.state.value == "")
  {
    alert("Please enter a value for the \"State\" field.");
    thisForm.state.focus();
    return (false);
  }

  if (thisForm.zip.value == "")
  {
    alert("Please enter a value for the \"ZIP Code\" field.");
    thisForm.zip.focus();
    return (false);
  }

  if (thisForm.years.value == "")
  {
    alert("How long have you been in business?");
    thisForm.years.focus();
    return (false);
  }

  if (thisForm.carriers.value == "")
  {
    alert("Who is your current Carrier?");
    thisForm.carriers.focus();
    return (false);
  }



  return (true);  
}


