var imge1 = new Image();
var naam=navigator.appName;
document.write('<form name="metasearch" onsubmit="search()" action=""><table border="0" cellpadding="5" cellspacing="0"><tr><td nowrap align="center" valign="middle">');
if (naam=="Netscape") document.write('search for:<\/td><td valign="middle"><input name="query" type="text" size="8" maxlength="100">');
else document.write('search for:<\/td><td valign="middle"><input name="query" type="text" size="15" maxlength="100">');
document.write('<\/td><td valign="middle" nowrap>With:</td><td valign="middle">');
document.write('<select name="engine"><option value=""><\/option>');
document.write('<option value="google"selected>Google<\/option>');
document.write('<option value="yahoo">Yahoo<\/option>');
document.write('<option value="lycos">Lycos<\/option>');
document.write('<option value="metacrawler">MetaCrawler<\/option>');
document.write('<option value="overture">Overture<\/option>');
document.write('<option value="northernlight">Northern Light<\/option>');
document.write('<option value="abcsearch">Abcsearch<\/option>');
document.write('<option value="ahha">Ah-ha.com<\/option>');
document.write('<option value="alltheweb">AllTheWeb<\/option>');
document.write('<option value="altavista">AltaVista<\/option>');
document.write('<option value="aol">AOL Search<\/option>');
document.write('<option value="askjeeves">Ask Jeeves<\/option>');
document.write('<option value="britannica">Britannica.com<\/option>');
document.write('<option value="dogpile">Dogpile<\/option>');
document.write('<option value="excite">Excite<\/option>');
document.write('<option value="msn">MSN Search<\/option>');
document.write('<option value="nbci">NBCi<\/option>');
document.write('<option value="netscape">Netscape Search<\/option>');
document.write('<option value="opendirectory">Open Directory<\/option>');
document.write('<option value="thunderstone">Thunderstone<\/option>');
document.write('<option value=""><\/option><\/select><\/td><td align="center" valign="middle">');
document.write('<input type="button" value="Go!" onclick="search()">');
document.write('<\/td><\/tr><\/table><\/form>');

function search()
{
zoekTerm = document.metasearch.query.value;    
if(zoekTerm != "")
{
zoekTerm = zoekTerm.replace(/\s/ig, "+");
nummer = document.metasearch.engine.selectedIndex;
zoekMachine = document.metasearch.engine[nummer].value;

eindTerm = "";
if(zoekMachine == "abcsearch") eindTerm = "http://www.abcsearch.com/cgi-bin/search/cobrand.fcgi?affiliate=12125&Terms=" + zoekTerm;
else if(zoekMachine == "ahha") eindTerm = "http://partner.ah-ha.com/1000.asp?cid=30275&q=" + zoekTerm;
else if(zoekMachine == "alltheweb") eindTerm = "http://www.alltheweb.com/search?cat=web&advanced=1&type=all&query=" + zoekTerm + "&jsact=&lang=any&charset=iso-8859-1&wf%5Bn%5D=3&wf%5B0%5D%5Br%5D=&wf%5B0%5D%5Bq%5D=&wf%5B0%5D%5Bw%5D=&wf%5B1%5D%5Br%5D=%2B&wf%5B1%5D%5Bq%5D=&wf%5B1%5D%5Bw%5D=&wf%5B2%5D%5Br%5D=-&wf%5B2%5D%5Bq%5D=&wf%5B2%5D%5Bw%5D=&dincl=&dexcl=&hits=10&nooc=off";
else if(zoekMachine == "altavista") eindTerm = "http://www.altavista.com/sites/search/web?q=" + zoekTerm + "&kl=XX&pg=q";
else if(zoekMachine == "aol") eindTerm = "http://search.aol.com/dirsearch.adp?query=" + zoekTerm;
else if(zoekMachine == "askjeeves") eindTerm = "http://www.ask.com/main/askjeeves.asp?ask=" + zoekTerm + "&origin=0&optout=1&site_name=Jeeves&metasearch=yes&ads=";
else if(zoekMachine == "britannica") eindTerm = "http://www.britannica.com/search?query=" + zoekTerm;
else if(zoekMachine == "dogpile") eindTerm = "http://search.dogpile.com/texis/search?q=" + zoekTerm + "&geo=no&fs=web&adultsp=0";
else if(zoekMachine == "excite") eindTerm = "http://search.excite.com/search.gw?trace=a&search=" + zoekTerm;
else if(zoekMachine == "google") eindTerm = "http://www.google.com/search?q=" + zoekTerm;
else if(zoekMachine == "lycos") eindTerm = "http://search.lycos.com/main/?query=" + zoekTerm + "&rd=y";
else if(zoekMachine == "metacrawler") eindTerm = "http://search.metacrawler.com/crawler?general=" + zoekTerm + "&method=0&redirect=web&refer=mc-box&adultsp=0";
else if(zoekMachine == "msn") eindTerm = "http://search.msn.com/results.asp?q=" + zoekTerm + "&FORM=SMCRT&cfg=SMCINITIAL&v=1&un=doc";
else if(zoekMachine == "nbci") eindTerm = "http://nbci.dogpile.com/texis/search?geo=no&brand=nbci&q=" + zoekTerm;
else if(zoekMachine == "netscape") eindTerm = "http://search.netscape.com/search.psp?search=" + zoekTerm;
else if(zoekMachine == "northernlight") eindTerm = "http://www.northernlight.com/nlquery.fcg?cb=0&qr=" + zoekTerm + "&orl=All+Sources&nn=1";
else if(zoekMachine == "opendirectory") eindTerm = "http://search.dmoz.org/cgi-bin/search?search=" + zoekTerm;
else if(zoekMachine == "overture") eindTerm = "http://service.bfast.com/bfast/click?bfsiteid=38402450&bfpage=over001&bfmid=253985&Promo=befree&adultStatus=adult&Keywords=" + zoekTerm;
else if(zoekMachine == "thunderstone") eindTerm = "http://thunderstone.master.com/texis/master/search/?s=OD&q=" + zoekTerm;
else if(zoekMachine == "yahoo") eindTerm = "http://search.yahoo.com/bin/search?p=" + zoekTerm;

if(zoekMachine != ""){
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();
}
}
}
