$(document).ready(function(){
  var theform = document.getElementById("searchform");
  theform.search.onfocus = function(){
    if(theform.search.value == "Type Here"){
      theform.search.value = "";
    }
  }
  theform.search.onblur = function(){
    if(theform.search.value == ""){
      theform.search.value = "Type Here";
    }
  }

  function validatesearch(){
    if(theform.search.value.length == "Type Here" && theform.searchcategory.value == ""){
      alert("Insufficient data provided. Search cannot continue.");
      return false;
    }
    //if(theform.search.value == "Type Here"){
      //alert("Search field cannot be empty.");
      //return false;
    //}
    
    //if(theform.search.value.length < 3){
      //alert("Search string too short. Minimum of 3 characters.");
      //return false;
    //}
    
    return true;
  }
});