<!-- Begin
var url = "";
var ngram = "";
var engines = new Array('Google','GoTo','Alta Vista','HotBot','Lycos','Excite','Webcrawler','InfoSeek','AlltheWeb','DirectHit');
var metatools = new Array('MetaCrawler','Mamma','SavySearch','MonsterCrawler','MetaSearch10','MetaFind','WebSearch');
var directories = new Array('Yahoo','LookSmart','NorthernLight','Magellan','Snap','WorldLight','Fathead','WebSearch');

function definechoices(objform, index) {
  for (var i=0; i<objform.choices.length; i++) {
    objform.choices.options[0] = null;
  }
  if (index == 0) {
    for (var i=0; i<engines.length; i++) {
       objform.choices.options[i] = new Option(engines[i]);
    }
  }
  else if (index == 1) {
    for (var i=0; i<metatools.length; i++) {
       objform.choices.options[i] = new Option(metatools[i]);
    }
  }
  else if (index == 2) {
    for (var i=0; i<directories.length; i++) {
       objform.choices.options[i] = new Option(directories[i]);
    }
  }
  objform.choices.options[0].selected = true;
}

function results() {
  ngram = escape(document.f1.queryterm.value);
  resultsWin = open("","act1");
  

  if (document.f1.searchtype.selectedIndex == 0) {
    if (document.f1.choices.selectedIndex == 0)
      url = "http://www.google.com/search?q=" + ngram;
    else if (document.f1.choices.selectedIndex == 1)
      url = "http://www.goto.com/d/search/?type=home&adultStatus=adult&Keywords=" + ngram;
    else if (document.f1.choices.selectedIndex == 2)
      url = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&q=" + ngram + "&mode=and";
    else if (document.f1.choices.selectedIndex == 3)
      url = "http://hotbot.lycos.com/?MT=" + ngram + "&SM=MC&DV=0&LG=any&DC=10&DE=2&BT=L";
    else if (document.f1.choices.selectedIndex == 4)
      url = "http://www.lycos.com/cgi-bin/pursuit?query=" + ngram + "&backlink=217&maxhits=25";
    else if (document.f1.choices.selectedIndex == 5)
      url = "http://www.excite.com/search.gw?searchType=Concept&search=" + ngram + "&category=default&mode=relevance&showqbe=1&display=html3,hb";
    else if (document.f1.choices.selectedIndex == 6)
      url = "http://www.webcrawler.com/cgi-bin/WebQuery?searchText=" + ngram + "&maxHits=25";
    else if (document.f1.choices.selectedIndex == 7)
      url = "http://guide-p.infoseek.com/Titles?qt=" + ngram + "&col=WW";
    else if (document.f1.choices.selectedIndex == 8)
      url = "http://www.alltheweb.com/cgi-bin/asearch?type=all&query=" + ngram;
    else if (document.f1.choices.selectedIndex == 9)
      url = "http://www.directhit.com/fcgi-bin/DirectHitWeb.fcg?fmt=html&qry=" + ngram + "&alias=websrch";
    else {
      document.f1.choices.options[0].selected = true;
      url = "http://www.google.com/search?q=" + ngram;
    }
  }
  else if (document.f1.searchtype.selectedIndex == 1) {
    if (document.f1.choices.selectedIndex == 0)
      url = "http://search.go2net.com/crawler?general=" + ngram + "&method=0&target=&region=0&rpp=20&timeout=5&hpe=10";
    else if (document.f1.choices.selectedIndex == 1)
      url = "http://www.mamma.com/Mamma?lang=1&timeout=4&qtype=0&query=" + ngram;
    else if (document.f1.choices.selectedIndex == 2)
      url = "http://www9.savvysearch.com/search?q=" + ngram + "&op=a";
    else if (document.f1.choices.selectedIndex == 3)
      url = "http://www.monstercrawler.com/meta-bin/do/nph-seek.cgi?where=web&how=and&qry=" + ngram;
    else if (document.f1.choices.selectedIndex == 4)
      url = "http://www.searchenginesgalore.net/cgi-local/apexec.pl?search=" + ngram + "&etype=web&web.siteoff=0&persearch=150&web.site=fast&web.site=altavista&web.site=direct&web.site=odp";
    else if (document.f1.choices.selectedIndex == 5)
      url = "http://www.metafind.com/texis/tfind#" + ngram;
    else if (document.f1.choices.selectedIndex == 6)
      url = "http://www.web-search.com/Open/anacondaodpp.cgi?search=" + ngram; 

    else {
      document.f1.choices.options[0].selected = true;
      url = "http://search.go2net.com/crawler?general=" + ngram + "&method=0&target=&region=0&rpp=20&timeout=5&hpe=10";
    }
  }
  else if (document.f1.searchtype.selectedIndex == 2) {
    if (document.f1.choices.selectedIndex == 0)
      url = "http://search.yahoo.com/bin/search?p=" + ngram;
    else if (document.f1.choices.selectedIndex == 1)
      url = "http://www.looksmart.com/r_search?look=&key=" + ngram;
    else if (document.f1.choices.selectedIndex == 2)
      url = "http://www.northernlight.com/nlquery.fcg?cb=0&qr=" + ngram + "&orl=";
    else if (document.f1.choices.selectedIndex == 3)
      url = "http://www.mckinley.com/searcher.cgi?query=" + ngram;
    else if (document.f1.choices.selectedIndex == 4)
      url = "http://www.snap.com/search/directory/results/1,61,-0,00.html?tag=st.v2.fdsb.1&keyword=" + ngram;
    else if (document.f1.choices.selectedIndex == 5)
      url = "http://www.worldlight.com/cgi-bin/search/cgsearch.cgi?query=" + ngram + "&match=all";
    else if (document.f1.choices.selectedIndex == 6)
      url = "http://www.fathead.net/cgi-bin/search.cgi?terms=" + ngram + "&type=all";
    else if (document.f1.choices.selectedIndex == 7)
      url = "http://www.web-search.com/Open/anacondaodpp.cgi?search=" + ngram; 
    else {
      document.f1.choices.options[0].selected = true;
      url = "http://search.yahoo.com/bin/search?p=" + ngram;
    }
  }

  resultsWin.location = url;

}
// End -->