function Validator(theForm)
{

  if (theForm.Name.value == "")
  {
    alert("Please enter your Name.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Company.value == "")
  {
    alert("Please enter your Company.");
    theForm.Company.focus();
    return (false);
  }

//Email 
	if (theForm.Email.value == "")
	{
		alert("Please enter your email.");
		theForm.Email.focus();
		return (false);
	}
	if ((theForm.Email.value.indexOf("@") >= 0) && (theForm.Email.value.indexOf(" ") < 0))
	{
		;
	}
	else
	{
		alert("Please enter a valid email address.");
		theForm.Email.focus();
		return (false);
	}	

//Phone
	if (theForm.Phone.value == "")
	{
		alert("Please enter your Phone Number.");
		theForm.Phone.focus();
		return (false);
	}
	var checkOK = "0123456789.-x";
	var checkStr = theForm.Phone.value;
	var allValid = true;
	var decPoints = 0;
	var allNum = "";
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		  if (ch == checkOK.charAt(j))
			break;
		if (j == checkOK.length)
		{
		  allValid = false;
		  break;
		}
		allNum += ch;
	}
	if (!allValid)
	{
		alert("Please enter only digits, dashes or an x for extension in the Phone field.");
		theForm.Phone.focus();
		return (false);
	}

return (true);
}
