var imge1 = new Image();
var naam=navigator.appName;
document.write('<form name="metanlsearch" onsubmit="nlsearch()" action=""><table border="0" cellpadding="5" cellspacing="0"><tr><td nowrap align="center">');
if (naam=="Netscape") document.write('Zoek:</td><td><input name="nlquery" type="text" size="8" maxlength="100">');
else document.write('Zoek:</td><td><input name="nlquery" type="text" size="15" maxlength="100">');
document.write('</td></tr><tr><td nowrap>Met:</td><td>');
document.write('<select name="nlengine"><option value=""></option>');
document.write('<option value="altavista">Altavista NL</option>');
document.write('<option value="google" selected>Google NL</option>');
document.write('<option value="hotbot">Hotbot NL</option>');
document.write('<option value="ilse">Ilse</option>');
document.write('<option value="ixquick">Ixquick NL</option>');
document.write('<option value="lycos">Lycos NL</option>');
document.write('<option value="msn">MSN Search NL</option>');
document.write('<option value="scoot">Scoot Vindservice</option>');
document.write('<option value="search">Search.nl</option>');
document.write('<option value="startpagina">Startpagina</option>');
document.write('<option value="track">Track.nl</option>');
document.write('<option value="vinden">Vinden.nl</option>');
document.write('<option value="vindex">Vindex</option>');
document.write('<option value="zoek">Zoek.nl</option>');
document.write('<option value="Nos">Teletekst (pagina)</option>');
document.write('<option value="meta">Metacrawler</option>');
document.write('<option value=""></option></select></td><td align="center">');
document.write('<input type="button" value="Vind!&nbsp;" onclick="nlsearch()"></td></tr></table></form>');

function nlsearch()
{
 zoekTerm = document.metanlsearch.nlquery.value;    
 if(zoekTerm != "")
 {
  zoekTerm = zoekTerm.replace(/\s/ig, "+");
  
  zoekMachine = document.metanlsearch.nlengine.selectedIndex;
  eindTerm = "";

  if(zoekMachine == "1") eindTerm = "http://search.nl.altavista.com/cgi-bin/query?aveenc=1&pg=q&sc=on&q=" + zoekTerm + "&kl=XX&what=nl";
  else if(zoekMachine == "2") eindTerm = "http://www.google.com/search?q=" + zoekTerm + "&hl=nl&lr=lang_nl";
  else if(zoekMachine == "3") eindTerm = "http://search.hotbot.nl/cgi-bin/pursuit?query=" + zoekTerm + "&cat=hb_loc&enc=utf-8&SITE=nl&command=";
  else if(zoekMachine == "4") eindTerm = "http://www.ilse.nl/searchresults.dbl?oldquery=&LANGUAGE=NL&profile=st&family=no&search_for=" + zoekTerm;
  else if(zoekMachine == "5") eindTerm = "http://surfboard.ixquick.com/do/metasearch.pl?language=nederlands&cat=web&rl=SURFBOARD&dyn=1&query=" + zoekTerm + "&charity=wnf";
  else if(zoekMachine == "6") eindTerm = "http://www.lycos.nl/cgi-bin/pursuit?matchmode=and&mtemp=main&etemp=error&query=" + zoekTerm + "&cat=benelux";
  else if(zoekMachine == "7") eindTerm = "http://search.msn.nl/results.asp?q=" + zoekTerm + "&FORM=SMCRT&cfg=SMCINITIAL&v=1&un=doc";
  else if(zoekMachine == "8") eindTerm = "http://www.scoot.nl/start.asp?ce=" + zoekTerm;
  else if(zoekMachine == "9") eindTerm = "http://www.search.nl/cgi-bin/searchbody?q=" + zoekTerm;
  else if(zoekMachine == "10") eindTerm = "http://www.vindex.nl/startpagina/vindex.cgi?max=50&in=" + zoekTerm;
  else if(zoekMachine == "11") eindTerm = "http://zoeken.track.nl/Raven?sm=1&st=1&pl=10&rr=0&qr=" + zoekTerm;
  else if(zoekMachine == "12") eindTerm = "http://zoek.vinden.nl/?query=" + zoekTerm + "&where=nl";
  else if(zoekMachine == "13") eindTerm = "http://www.vindex.nl/doorzocht/nederland?in=" + zoekTerm + "&resume=on&ord1=on&window=on&fuzzy=on";
  else if(zoekMachine == "14") eindTerm = "http://www.zoek.nl/result/?www=www&query=" + zoekTerm;
  else if(zoekMachine == "15") eindTerm = "http://teletekst.nos.nl/gif/" + zoekTerm + "-01.html";
  else if(zoekMachine == "16") eindTerm = "http://www.metacrawler.com/info.metac/search/web/" + zoekTerm + "";
  if(zoekMachine != "0" && zoekMachine != "17")
  {
    zoekraam=window.open(eindTerm,"zoekresultaat","width=screen.availWidth,height=screen.availHeight,scrollbars,toolbar,menubar=1,location=1,resizable=1,status=1,directories=0,top=0,left=0");
    zoekraam.focus();
  }
 }
}

