<!-- hide from JS challenged browsers

// Tell if a string is mt or made of spaces.
function IsNotMT(s) {
  re=/\S/;
  return(re.test(s));
}

// Check e-mail address string 
function IsEmail(s) {
  re=/^\S+@\S+\.\S+/;
  return(re.test(s));
}

// Require the email address and password to be filled out.
function checkForm(thisform) {
  var flag=0;
  var msg="The following ERRORS have occured:\n\n";
  var processing;

  // Debounce
  if (processing==1) {
    alert('Your request is being processed.  Please wait for it to complete.');
    return(false);
  }

  processing=1;
  
  if (IsNotMT(thisform.problem.value) == false) {
    flag=1;
    msg+="Please enter your questions, comments or describe your problem(s) in the box provided.\n";
  }

  if (IsEmail(thisform.email.value) == false) {
    flag=1;
    msg+="You must enter an e-mail address.\n";
  }

  if (flag == 1)  {
    msg += "\n\nPlease correct these problems and resubmit";
    alert(msg);
    processing=0;
    return(false);
  }

  return(true);
}
-->

