// JavaScript Document
function n(naam, statnaam){
        top.location.href=naam;
}
function addplus(items){
   var plussed = "";
   for (var t = 1 ; t <= items.length ; t++) 
      {
      if (items.substring(t-1,t) == " ") 
         {  plussed+="+";  }
      else 
         {
             if (items.substring(t-1,t) == "+") 
             {  plussed+="%2B";  }
         else 
                 { plussed+=items.substring(t-1,t); }
                  }
      }
   return plussed;
}
function doSearch(){
   var words;
   words = document.searchforit.query.value;
   var searchitems;
   searchitems=addplus(words);
   var index;
   index = document.searchforit.service.selectedIndex;
   var site;
   site = document.searchforit.service.options[index].value;
   site+=searchitems;
   if (notEmpty(searchitems))   
   {
   n(site, ('searchengine' + index + '.htm'));
     }
}
function notEmpty(word){
   if (word == "" || word == null) 
   {
      alert("\nU moet natuurlijk wel een zoekwoord opgeven,\n\nvoordat u op 'Zoek' kunt klikken..."); 
      document.searchforit.query.focus();  
      return false;
   }
   else 
   {
   return true;
   }
}
