function frmValidate(theForm)
{
  if (theForm.CONTACT.value == "")
  {
    alert("Please enter your name.");
    theForm.CONTACT.focus();
    return (false);
  }
  //check email entry
  var myString = theForm.cs1_contsupref.value;
  var ifind = myString.indexOf("@");
  var ifind2 = myString.lastIndexOf(".");
  //check email format
  if (ifind < 1)
  {
    alert("Please enter a valid email address (e.g. yourname@hotmail.com).");
    theForm.cs1_contsupref.focus();
    return (false);
  }
  if (ifind2 < 1 || ifind2 == theForm.cs1_contsupref.value.length - 1 )
  {
    alert("Please enter a valid email address (e.g. yourname@hotmail.com.");
    theForm.cs1_contsupref.focus();
    return (false);
  }
  if (theForm.Zip.value == "")
  {
    alert("Please enter your zipcode.");
    theForm.Zip.focus();
    return (false);
  }

  return(true);

}
