  function check(which) {
    if (which.searchterms.value.length<1) {
      alert("Please enter a search term!");
      return false;
    }
    return true;
  }
  function isEmailAddr(email) {
    var result = false
    var theStr = new String(email)
    var index = theStr.indexOf("@");
    if (index > 0) {
      var pindex = theStr.indexOf(".",index);
      if ((pindex > index+1) && (theStr.length > pindex+1))
  	    result = true;
    }
    return result;
  }
  function checkMail(which) {
    if (which.name.value=="") {
      alert("Please enter your name!");
      which.name.focus();
      return false;
    }
    if (!(isEmailAddr(which.email.value))) {
      alert("Please enter a valid email address!");
      which.email.focus();
      return false;
    }
    return true;
  }
  function sure() {
    if(confirm('Are you Sure?')) {
      return true;
    }
    else {
      return false;
    }
  }
  function checksearch(which) {
    if (which.keywords.value.length == 0 || which.keywords.value == "Enter Wheelchair/Scooter/Battery Model") {
      alert("Please enter some keywords!");
      return false;
    }
    return true;
  }  