function contactusform_Validator(theForm)
{
  if (theForm.realname.value == "")
  {
    alert("Please enter your name.");
    theForm.realname.focus();
    return (false);
  }

  if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theForm.email.value)))
  {
	alert("Please enter a valid e-mail address.");
    theForm.email.focus();
	return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("Please enter your telephone number.");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.pracname.value == "")
  {
    alert("Please enter the name of your organization.");
    theForm.pracname.focus();
    return (false);
  }

  if (theForm.SelectState.selectedIndex == 0)
  {
    alert("Please select a state.");
    theForm.SelectState.focus();
    return (false);
  }

  if (theForm.providertype.value == "")
  {
    alert("Please enter a provider type.");
    theForm.providertype.focus();
    return (false);
  }

  return (true);
}
