var naam=navigator.appName;
var now=new Date();
var num=(now.getSeconds())%4;
function selected(nummer)
{ if (num == nummer)
   return " selected";
  else return "";
}
document.write('<form name="metasearch" onsubmit="search()" action=""><table border="0" cellpadding="0" cellspacing="0"><tr><td nowrap align="center" valign="middle">');
if (naam=="Netscape") document.write('<p><b><font color="#0000FF">Search for : </font></b></p></td><td valign="middle"><input name="query" type="text" size="15" maxlength="100">');
else document.write('<p><b><font color="#0000FF">Search for :</font></b></p><\/td><td valign="middle"><input name="query" type="text" size="24" maxlength="100">');
document.write('<\/td><td valign="middle" nowrap> <p><b><font color="#FFFFFF">a</font><font color="#0000FF">with</font><font color="#FFFFFF">a</font></b></p> </td><td valign="middle">');
document.write('<select name="engine"><option value=""><\/option>');
document.write('<option value="google">Google<\/option>');
document.write('<option value="ICHP">ICHP Seek<\/option>');
document.write('<option value="yahoo">Yahoo<\/option>');
document.write('<option value="msn">MSN Search<\/option>');
document.write('<option value="altavista">AltaVista<\/option>');
document.write('<option value="search">Search.com<\/option>');
document.write('<option value="aol">AOL Search<\/option>');
document.write('<option value="lycos">Lycos<\/option>');
document.write('<option value=""><\/option><\/select><\/td><td align="center" valign="middle">');
document.write('<\/td><td valign="middle" nowrap><p><font color="#FFFFFF">l</font></p></td><td 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 == "google") eindTerm = "http://www.google.com/search?q=" + zoekTerm;
else if(zoekMachine == "ICHP") eindTerm = "http://www.ichp.in/ichpseek.html?cx=008005301671140718729%3Aslzeez6ehrc&cof=FORID%3A9&q=" + zoekTerm + "&sa=Search";
else if(zoekMachine == "yahoo") eindTerm = "http://search.yahoo.com/bin/search?p=" + zoekTerm;
else if(zoekMachine == "msn") eindTerm = "http://search.msn.com/results.asp?q=" + zoekTerm + "&FORM=SMCRT&cfg=SMCINITIAL&v=1&un=doc";
else if(zoekMachine == "altavista") eindTerm = "http://www.altavista.com/sites/search/web?q=" + zoekTerm + "&kl=XX&pg=q";
else if(zoekMachine == "search") eindTerm = "http://www.search.com/search?q=" + zoekTerm;
else if(zoekMachine == "aol") eindTerm = "http://search.aol.com/aolcom/search?query=" + zoekTerm;
else if(zoekMachine == "lycos") eindTerm = "http://search.lycos.com/main/?query=" + zoekTerm + "&rd=y";

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();
}
}
}
