// Validate the search page
function validate() {

   // Set up a blank warning message
   var Message = "";

   // Notify the user if no search text was entered
   if (document.getElementById("SearchString").value.replace(/^\s*|\s*$/g, "") == "") {
      Message += "\u2022 You must specify something to search for." + "\r\n";
   }

   // Notify the user if one of the sites is not checked.
   if (!document.getElementById("Site_midstate").checked && !document.getElementById("Site_internet").checked) {
      Message += "\u2022 You must specify a site to search." + "\r\n";
   }

   // If a message exists, then display it as an alert and return false
   if (Message != "") {
      alert (Message);
      return false;
   }

   return true;
}