function JoinReferral_Validator(theForm)
{

  if (trim(theForm.Business.value) == "")
  {
    alert("Please enter a value for the \"Business\" field.");
    theForm.Business.focus();
    return false;
  }

  if (trim(theForm.Contact_FirstName.value) == "")
  {
    alert("Please enter a value for the \"Contact_FirstName\" field.");
    theForm.Contact_FirstName.focus();
    return false;
  }

  if (trim(theForm.Contact_LastName.value) == "")
  {
    alert("Please enter a value for the \"Contact_LastName\" field.");
    theForm.Contact_LastName.focus();
    return false;
  }

  if (trim(theForm.Contact_Title.value) == "")
  {
    alert("Please enter a value for the \"Contact_Title\" field.");
    theForm.Contact_Title.focus();
    return false;
  }

  if (trim(theForm.Description.value) == "")
  {
    alert("Please enter a value for the \"Description\" field.");
    theForm.Description.focus();
    return false;
  }

  if (trim(theForm.StreetAddress.value) == "")
  {
    alert("Please enter a value for the \"StreetAddress\" field.");
    theForm.StreetAddress.focus();
    return false;
  }

  if (trim(theForm.City.value) == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return false;
  }

  if (trim(theForm.State.value) == "")
  {
    alert("Please enter a value for the \"State\" field.");
    theForm.State.focus();
    return false;
  }

  if (trim(theForm.ZipCode.value) == "")
  {
    alert("Please enter a value for the \"ZipCode\" field.");
    theForm.ZipCode.focus();
    return false;
  }



  if (trim(theForm.WorkPhone.value) == "")
  {
    alert("Please enter a value for the \"WorkPhone\" field.");
    theForm.WorkPhone.focus();
    return false;
  }



  if (trim(theForm.Email.value) == "")
  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return false;
  }
  if(!isEmail(theForm.Email.value)){     
     theForm.Email.focus();
     return false;
  }
   if (theForm.VerificationCode.value == "")
  {
    alert("Please enter your \"Verification Code\".");
	theForm.VerificationCode.value = '';
	theForm.VerificationCode.focus();
	return (false);
  }

  theForm.fAction.value = "sendreferralmail";
  return true;
}