function FrontPage_Form1_Validator(theForm)
{
  if (theForm.z.value == "" || ! IsNumeric(theForm.z.value))
  {
    alert("Please enter a valid zip code.");
    theForm.z.focus();
    return (false);
  }
  
  if (theForm.destination.value.toLowerCase().indexOf('selectmyoption') == -1) return true;
  //Skip following validate if not buy page
  if ((theForm.rdo_newcustomer[0].checked == false) && (theForm.rdo_newcustomer[1].checked == false))
  {
    alert("Please enter a value for the \"Are you an existing Insight customer?\" question.");
    return (false);
  }

  if (theForm.rdo_newcustomer[1].checked == true)
  {
    if (theForm.ExistProduct[0].checked == false 
        && theForm.ExistProduct[1].checked == false
        && theForm.ExistProduct[2].checked == false) {
			alert("Please Select the product(s) currently have with Insight.");
			return (false);
	}
  }

  return true;
}

function IsNumeric(sText)

{
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;

 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
   }



