function z(name){
//	top.location.href=name;
	window.open(name);
}
function hfr(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 zoeken(){
   var words;
   words = document.searchforit.query.value;
   var searchitems;
   searchitems=hfr(words);
   var index;
   index = document.searchforit.service.selectedIndex;
   var site;
   site = document.searchforit.service.options[index].value;
   site+=searchitems;
   if (notEmpty(searchitems))
   {
   z(site, ('searchengine' + index));
     }
}
function notEmpty(word){
   if (word == "" || word == null)
   {
      self.status="ENTER SEARCH searchitems";
      alert("\nType aub een zoekwoord...");
      document.searchforit.query.focus();
      return false;
   }
   else
   {
   self.status = "SEARCHING FOR:  " + word;
   return true;
   }
}