<!-- *** Dan's Script for the Enquiries Form - Copyright February 2004 *** //-->
    function emailOk(userEntry) 
    {
      var passwordOk = 0;
	  var specialOk = 0;
	  var numericOk = 0;
      var entry = userEntry;

      specialExists = new Array("@");
      numericExists = new Array(".");

      for (var i=0; i<entry.length; i++) 
      {
        for (var a=0; a<specialExists.length; a++) 
        {
          if (entry.charAt(i) == specialExists[a])
          {
             specialOk = 1;
          }
          if (entry.charAt(i) == numericExists[a])
          {
             numericOk = 1;
          }
        }
      }
      if ((specialOk == 1) && (numericOk == 1))
	  { 
	    passwordOk = 1; 
	  }
	  else
	  { 
	    passwordOk = 0;
	  }
      return passwordOk;
    }


function Login_Form_Validator(theForm)
{
  if ((theForm.username.value == "")&&(theForm.password.value == ""))
  {
    alert("You must enter your \"Username\" and \"Password\" to access the Members only area.");
    theForm.username.focus();
    return (false);
  }
  else
  {
	  if (theForm.username.value == "")
	  {
		alert("Please enter your \"Username\"");
		theForm.username.focus();
		return (false);
	  }
	
	  if (theForm.password.value == "")
	  {
		alert("Please enter your \"Password\"");
		theForm.password.focus();
		return (false);
	  }
  }
  return (true);
}

