function browser(){
if( navigator.appName != "Microsoft Internet Explorer") window.open("error.htm","_top");
}

function sf(){
   document.netseeker.query.focus();
}

var remote = null;

function openwin(page,name,wid,hgt) {
    var winl = (screen.width - wid) / 2;
    var wint = (screen.height - hgt) / 2;
    window.open(page,name,'width=' + wid + ',height=' + hgt + ',resizable=0,scrollbars=0,top=' + wint + ',left=' + winl + ',toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0');
}


var ie=(document.all)?1:0;

function LightOn(what){
   if (ie) what.style.backgroundColor = '#eeeeee';
   else return;
}

function LightOut(what){
   if (ie) what.style.backgroundColor = '#cccccc';
   else return;
}

function closeframe() {
window.open(window.parent.viewer.location.href,'_parent');
}

function fullScreen() {
window.open('fullscreen.htm','netseeker','fullscreen=yes, scrollbars=auto');
}

function changeSheets(whichSheet){
  if(document.styleSheets){
    var c = document.styleSheets.length;
    for(var i=0;i<c;i++){
      if(i!=whichSheet){
        document.styleSheets[i].disabled=true;
      }else{
        document.styleSheets[i].disabled=false;
      }
    }
  }
}

function search(){
   seekTerm = document.netseeker.query.value;
   seekType = document.netseeker.viewtype.value;
   eindTerm = "";
   if(seekTerm != ""){
      seekTerm = seekTerm.replace(/\s/ig, "+");
      seekMachine = document.netseeker.engine.value;
      
      //Web Search Engine
      if(seekMachine == "altavista")eindTerm = "http://www.altavista.com/sites/search/web?q=" + seekTerm + "&kl=XX&pg=q";
      else if(seekMachine == "catcha")eindTerm = "http://search.catcha.com.my/cgi-bin/l/search.cgi?wh=Malaysia&query=" + seekTerm;
      else if(seekMachine == "excite")eindTerm = "http://srch.excite.com/d/search/p/excite/;$sessionid$CMECA5QABXPLQCQCBETAPUQ?c=web&qcat=web&s=" + seekTerm;
      else if(seekMachine == "google")eindTerm = "http://www.google.com/search?hl=en&q=" + seekTerm;
      else if(seekMachine == "hotbot")eindTerm = "http://hotbot.lycos.com/?query=" + seekTerm;
      else if(seekMachine == "looksmart")eindTerm = "http://www.looksmart.com/r_search?look=&pin=020322x61f2416e48fd30bf521&key=" + seekTerm;
      else if(seekMachine == "lycos")eindTerm = "http://search.lycos.com/main/default.asp?lpv=1&loc=searchhp&query=" + seekTerm;
      else if(seekMachine == "msn")eindTerm = "http://search.msn.com/results.asp?RS=CHECKED&FORM=MSNH&v=1&q=" + seekTerm;
      else if(seekMachine == "netscape")eindTerm = "http://search.netscape.com/search.psp?search=" + seekTerm;
      else if(seekMachine == "yahoo")eindTerm = "http://google.yahoo.com/bin/query?p=" + seekTerm + "&hc=0&hs=0";
      else if(seekMachine == "opendir")eindTerm = "http://search.dmoz.org/cgi-bin/search?search=" + seekTerm;
      else if(seekMachine == "inktomi")eindTerm = "http://sitesearch.inktomi.com/query.html?qt=" + seekTerm;
      else if(seekMachine == "iwon")eindTerm = "http://search.iwon.com/commerce/multisearch.jsp?searchfor=" + seekTerm + "&symbol_search_select=short&alias=%2Falias%2Fsearch&type=on";
      else if(seekMachine == "dirhit")eindTerm = "http://www.directhit.com/search.asp?qry=" + seekTerm + "&alias=websrch";
      else if(seekMachine == "askj")eindTerm = "http://www.askjeeves.com/main/askjeeves.asp?ask=" + seekTerm + "&o=0";
      else if(seekMachine == "aol")eindTerm = "http://search.aol.com/dirsearch.adp?start=&from=topsearchbox.%2Findex.adp&query=" + seekTerm;
      else if(seekMachine == "atw")eindTerm = "http://www.alltheweb.com/search?cat=web&cs=utf-8&l=any&q=" + seekTerm;
      else if(seekMachine == "northern")eindTerm = "http://www.northernlight.com/nlquery.fcg?qr=" + seekTerm;
      else if(seekMachine == "cari")eindTerm = "http://search3.cari.com.my/newlinks/searchlink.php?Word=" + seekTerm + "&orand=and";
      
      //Softwares
      else if(seekMachine == "cnet")eindTerm = "http://download.cnet.com/downloads/1,10150,0-10000-103-0-1-7,00.html?tag=srch&qt=" + seekTerm + "&cn=&ca=10000";
      else if(seekMachine == "zdnet")eindTerm = "http://zdnet.search.com/search?channel=56&cat=279tag=st.zd.sr.srch.zdnet&q=" + seekTerm;
      else if(seekMachine == "tucows")eindTerm = "http://www.tucows.com/search?search=" + seekTerm + "&key=all&do=search&browser=I&platform_id=5,6,7,8,9,11,12,13,14,26,27,28,29,30,31,1565,1584,1569,1570,1571,1645,89,120,121,122,129,130,131,137,1364,1647,1665,1685,1686,1687,1688,1705,1706,1725,1726,1727,1728,1729,1730,1745,1746,1747,1748,1749,1100%,1765&language_id=1&type=exactany&site_detail_id=653";
      else if(seekMachine == "jumbo")eindTerm = "http://search.internet.com/query?IC_Summary=1&IC_StartNumber=0&IC_BatchSize=10&IC_RelevanceThreshold=50&IC_QueryDatabase=www.jumbo.com&IC_QueryText=" + seekTerm;
      else if(seekMachine == "applelink")eindTerm = "http://search.applelinks.com/action.lasso?keywords=" + seekTerm + "&-database=applelinks_links&-layout=all&-timeout=120&-response=/links/home.lasso&-noResults=/links/error.lasso&-operator=contains&-maxRecords=20&-logicalop=or&-search=value";
      
      //Reference
      else if(seekMachine == "infoplease")eindTerm = "http://www.infoplease.com/search.php3?query=" + seekTerm + "&in=all";
      else if(seekMachine == "britannica")eindTerm = "http://www.britannica.com/search?query=" + seekTerm + "&ct=&fuzzy=N";
      else if(seekMachine == "MWdict")eindTerm = "http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=" + seekTerm;
      else if(seekMachine == "MWthes")eindTerm = "http://www.m-w.com/cgi-bin/thesaurus?book=Thesaurus&va=" + seekTerm;
      else if(seekMachine == "allexp")eindTerm = "http://www.allexperts.com/searchcat.asp?searchcriteria=" + seekTerm;
      else if(seekMachine == "keen")eindTerm = "http://www.keen.com/search/default.asp?searchtype=all&search=" + seekTerm;
      else if(seekMachine == "experts")eindTerm = "http://www.experts-exchange.com/jsp/qSearch.jsp?keyWord=" + seekTerm + "&ta=-1&begin=1&end=25&sort=1";
      
      //Translation (Arcnet)
      else if(seekMachine == "arcEM")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=EM&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcEC")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=EC&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcEJ")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=EJ&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcME")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=ME&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcMC")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=MC&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcMJ")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=MJ&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcJE")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=JE&word=" + seekTerm + "&submit=Translate";
      else if(seekMachine == "arcJM")eindTerm = "http://sangenjaya.arc.net.my/cgi-bin/diclookup_dispatch.cgi?pair=JM&word=" + seekTerm + "&submit=Translate";
      
      //MP3/Media
      else if(seekMachine == "altavista_au")eindTerm = "http://www.altavista.com/sites/search/mm_audioresults?pg=q&q=" + seekTerm+ "&stype=saudio&audset=2";
      else if(seekMachine == "altavista_vi")eindTerm = "http://www.altavista.com/sites/search/mm_videoresults?pg=q&q=" + seekTerm + "&stype=svideo&vidset=2";
      else if(seekMachine == "mp3box")eindTerm = "http://mp3.box.sk/mp3ftp.php3?srch=" + seekTerm;
      else if(seekMachine == "2look4")eindTerm = "http://en.sonico.com/buscar_ftp/decision.cgi?buscar=1&query=" + seekTerm;
      else if(seekMachine == "lycos_mus")eindTerm = "http://music.lycos.com/default.asp?QT=S&QW=" + seekTerm;
      else if(seekMachine == "cnet_mus")eindTerm = "http://music.search.com/search?cat=74&channel=30&q=" + seekTerm + "&tag=st.mu.1565654.srch.sr&search=Search";
      else if(seekMachine == "mp3")eindTerm = "http://search.mp3.com/bin/search/?query=" + seekTerm;
      else if(seekMachine == "audiog")eindTerm = "http://www.audiogalaxy.com/list/searches.php?SID=a1d00f39b9a48bea69d13035cd76a1ed&searchType=0&searchStr=" + seekTerm;
      else if(seekMachine == "oth")eindTerm = "http://oth.net/s/s?q=" + seekTerm + "&cl=1";
      else if(seekMachine == "audfind")eindTerm = "http://www.audiofind.com/search?q=" + seekTerm;
      else if(seekMachine == "leech")eindTerm = "http://mp3search.astraweb.com/cgi-bin/search.cgi?word=" + seekTerm;
      else if(seekMachine == "audphil")eindTerm = "http://www.audiophilez.com/search.php?q=" + seekTerm + "&s=on";
      else if(seekMachine == "fast_aud")eindTerm = "http://multimedia.alltheweb.com/cgi-bin/search?exec=search&cat=cat_all&query=" + seekTerm;
      else if(seekMachine == "midi")eindTerm = "http://www.musicrobot.com/cgi-bin/search.pl?terms=" + seekTerm + "&class=name&mode=diffnames";
      else if(seekMachine == "lycos_mm")eindTerm = "http://multimedia.lycos.com/default.asp?component=&query=" + seekTerm;
      
      //Cracks
      else if(seekMachine == "crackz_ws")eindTerm = "http://www.crackz.ws/search.php?str=" + seekTerm;
      else if(seekMachine == "cracks_am")eindTerm = "http://www.cracks.am/s.x?Type=All&KW=" + seekTerm;
      
      //Images
      else if(seekMachine == "google_im")eindTerm = "http://images.google.com/images?q=" + seekTerm + "&hl=en";
      else if(seekMachine == "excite_im")eindTerm = "http://dpxml.infospace.com/info.xcite/dog/imageresults.htm?c=web&qcat=images&qkw=" + seekTerm + "&fs=images";
      else if(seekMachine == "altavista_im")eindTerm = "http://www.altavista.com/sites/search/mm_imageresults?q=" + seekTerm+ "&pg=q&stype=simage&imgset=2";
      else if(seekMachine == "fast_im")eindTerm = "http://multimedia.alltheweb.com/cgi-bin/advsearch?exec=search&cat=cat_image&query=" + seekTerm;
      else if(seekMachine == "lycos_im")eindTerm = "http://multimedia.lycos.com/default.asp?component=MorePictures&query=" + seekTerm;
      else if(seekMachine == "ditto")eindTerm = "http://www.ditto.com/search_results.asp?ss=" + seekTerm + "&viewstyle=compact";
      
      //Scripts
      else if(seekMachine == "scriptsearch")eindTerm = "http://www.scriptsearch.com/cgi-bin/search.cgi?searchfrom=left&q=" + seekTerm;
      else if(seekMachine == "cgidir")eindTerm = "http://cgidir.com/search.cgi?query=" + seekTerm;
      else if(seekMachine == "aspin")eindTerm = "http://www.aspin.com/func/search?tree=aspin&qry=" + seekTerm;
      else if(seekMachine == "DD")eindTerm = "http://search.freefind.com/find.html?id=6299074&pageid=r&mode=ALL&n=0&query=" + seekTerm;
      else if(seekMachine == "jscript")eindTerm = "http://search.internet.com/www.javascriptsource.com?IC_Summary=1&IC_StartNumber=0&IC_BatchSize=10&IC_RelevanceThreshold=50&IC_QueryDatabase=javascript.internet.com&IC_QueryText=" + seekTerm;
      else if(seekMachine == "jskit")eindTerm = "http://sitelevel.whatuseek.com/query.go?crid=0c521e0c5dfcffa3&query=" + seekTerm + "&slice_title=&page=&domain=&exclude=&autocustomize=";
      else if(seekMachine == "a1js")eindTerm = "http://www.a1javascripts.com/search/search.cgi?Range=Any&Format=Standard&Terms=" + seekTerm;
      else if(seekMachine == "jspin")eindTerm = "http://www.jspin.com/func/search?tree=jspin&qry=" + seekTerm + "&cat=";
      
      //News
      else if(seekMachine == "altavista_news")eindTerm = "http://news.altavista.com/search?q=" + seekTerm + "&nc=0";
      else if(seekMachine == "atw_news")eindTerm = "http://www.alltheweb.com/search?cat=news&cs=utf-8&l=any&q=" + seekTerm;
      else if(seekMachine == "yahoo_news")eindTerm = "http://search.news.yahoo.com/search/news?p=" + seekTerm + "&c=";
      else if(seekMachine == "daypop")eindTerm = "http://www.daypop.com/search?q=" + seekTerm + "&t=a";
      else if(seekMachine == "moreover")eindTerm = "http://www.moreover.com/cgi-local/page?o=portal&h=Search+results+for...+" + seekTerm + "&allwords=1&query=" + seekTerm;
      else if(seekMachine == "rocketnews")eindTerm = "http://www.rocketnews.com/register-bin/agnitio_search.cgi?search_string=" + seekTerm + "&age=5";
      else if(seekMachine == "northern")eindTerm = "http://www.northernlight.com/nlquery.fcg?dx=1006&cb=0&qr=" + seekTerm + "&dr=14&rv=2";
      else if(seekMachine == "google_news")eindTerm = "http://news.google.com/news?hl=en&q=" + seekTerm;
      
      //Newsgroup
      else if(seekMachine == "google_ng")eindTerm = "http://search.internet.com/query?IC_Summary=1&IC_StartNumber=0&IC_BatchSize=10&IC_RelevanceThreshold=50&IC_QueryDatabase=www.jumbo.com&IC_QueryText=" + seekTerm;
      else if(seekMachine == "forum1")eindTerm = "http://search.applelinks.com/action.lasso?keywords=" + seekTerm + "&-database=applelinks_links&-layout=all&-timeout=120&-response=/links/home.lasso&-noResults=/links/error.lasso&-operator=contains&-maxRecords=20&-logicalop=or&-search=value";
      
      //Miscellaneous
      else if(seekMachine == "surf7")eindTerm = "http://www.surf7.net/cgi-bin/search/search.pl?Terms=" + seekTerm;
      else if(seekMachine == "cdomain")eindTerm = "http://www.smallbizsearchengine.com/cgi-bin/webutils/whois/whois.cgi?query=" + seekTerm;
      else if(seekMachine == "lycos_lyr")eindTerm = "http://music.lycos.com/lyrics/results.asp?QT=L&QW=" + seekTerm + "&x=10&y=7";
      else if(seekMachine == "bomis")eindTerm = "http://www.bomis.com/searchring.fcgi?request=" + seekTerm + "&db=bomis";
      else if(seekMachine == "webring")eindTerm = "http://s2.webring.com/cgi-bin/hubsearch?search&query=" + seekTerm + "&Method=phrase&Method=and&RingDesc=on&Keywords=on";
   }
   if(seekType == "normal"){
      trgt="viewer";
      if(document.netseeker.new_win.checked){trgt="_blank";}
   }
   else{trgt="_blank";}
   window.open(eindTerm, trgt);
}



function govisit(){

      seekMachine = document.netseeker.engine.value;
      seekType = document.netseeker.viewtype.value;

      if(seekMachine == "")homepg = "";

      //Web Search Engine
      else if(seekMachine == "altavista")homepg = "http://www.altavista.com/";
      else if(seekMachine == "catcha")homepg = "http://www.catcha.com.my/";
      else if(seekMachine == "excite")homepg = "http://www.excite.com/";
      else if(seekMachine == "google")homepg = "http://www.google.com/";
      else if(seekMachine == "hotbot")homepg = "http://www.hotbot.com/";
      else if(seekMachine == "looksmart")homepg = "http://www.looksmart.com/";
      else if(seekMachine == "lycos")homepg = "http://www.lycos.com/";
      else if(seekMachine == "msn")homepg = "http://www.msn.com/";
      else if(seekMachine == "netscape")homepg = "http://www.netscape.com/";
      else if(seekMachine == "yahoo")homepg = "http://www.yahoo.com/";
      else if(seekMachine == "opendir")homepg = "http://dmoz.org";
      else if(seekMachine == "inktomi")homepg = "http://www.inktomi.com/";
      else if(seekMachine == "iwon")homepg = "http://home.iwon.com/index_gen.html";
      else if(seekMachine == "dirhit")homepg = "http://www.directhit.com/";
      else if(seekMachine == "askj")homepg = "http://www.askjeeves.com/";
      else if(seekMachine == "aol")homepg = "http://search.aol.com/";
      else if(seekMachine == "atw")homepg = "http://www.alltheweb.com/";
      else if(seekMachine == "northern")homepg = "http://www.northernlight.com/";
      else if(seekMachine == "cari")homepg = "http://www.cari.com.my/";
      
      //Softwares
      else if(seekMachine == "cnet")homepg = "http://www.download.com/";
      else if(seekMachine == "zdnet")homepg = "http://www.zdnet.com/";
      else if(seekMachine == "tucows")homepg = "http://www.tucows.com/";
      else if(seekMachine == "jumbo")homepg = "http://www.jumbo.com/";
      else if(seekMachine == "applelink")homepg = "http://search.applelinks.com/";
      
      //Reference
      else if(seekMachine == "infoplease")homepg = "http://www.infoplease.com/";
      else if(seekMachine == "britannica")homepg = "http://www.britannica.com/";
      else if(seekMachine == "MWdict")homepg = "http://www.m-w.com/";
      else if(seekMachine == "MWthes")homepg = "http://www.m-w.com/";
      else if(seekMachine == "allexp")homepg = "http://www.allexperts.com/";
      else if(seekMachine == "keen")homepg = "http://www.keen.com/";
      else if(seekMachine == "experts")homepg = "http://www.experts-exchange.com/";
      
      //Translation (Arcnet)
      else if(seekMachine == "arcEM")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcEC")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcEJ")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcME")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcMC")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcMJ")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcJE")homepg = "http://sangenjaya.arc.net.my/";
      else if(seekMachine == "arcJM")homepg = "http://sangenjaya.arc.net.my/";
      
      //MP3/Media
      else if(seekMachine == "altavista_au")homepg = "http://www.altavista.com/";
      else if(seekMachine == "altavista_vi")homepg = "http://www.altavista.com/";
      else if(seekMachine == "mp3box")homepg = "http://mp3.box.sk/";
      else if(seekMachine == "2look4")homepg = "http://en.sonico.com/";
      else if(seekMachine == "lycos_mus")homepg = "http://music.lycos.com/downloads/";
      else if(seekMachine == "cnet_mus")homepg = "http://music.cnet.com/";
      else if(seekMachine == "mp3")homepg = "http://www.mp3.com";
      else if(seekMachine == "audiog")homepg = "http://www.audiogalaxy.com/";
      else if(seekMachine == "oth")homepg = "http://oth.net/";
      else if(seekMachine == "audfind")homepg = "http://www.audiofind.com/";
      else if(seekMachine == "leech")homepg = "http://www.medialeech.com/";
      else if(seekMachine == "audphil")homepg = "http://www.audiophilez.com/";
      else if(seekMachine == "fast_aud")homepg = "http://multimedia.alltheweb.com/";
      else if(seekMachine == "midi")homepg = "http://www.musicrobot.com/";
      else if(seekMachine == "lycos_mm")homepg = "http://multimedia.lycos.com/";
      
      //Cracks
      else if(seekMachine == "crackz_ws")homepg = "http://www.crackz.ws/";
      else if(seekMachine == "cracks_am")homepg = "http://www.cracks.am/";
      
      //Images
      else if(seekMachine == "google_im")homepg = "http://images.google.com/";
      else if(seekMachine == "excite_im")homepg = "http://www.excite.com/";
      else if(seekMachine == "altavista_im")homepg = "http://www.altavista.com/";
      else if(seekMachine == "fast_im")homepg = "http://multimedia.alltheweb.com/";
      else if(seekMachine == "lycos_im")homepg = "http://multimedia.lycos.com/";
      else if(seekMachine == "ditto")homepg = "http://www.ditto.com/";
      
      //Scripts
      else if(seekMachine == "scriptsearch")homepg = "http://www.scriptsearch.com/";
      else if(seekMachine == "cgidir")homepg = "http://cgidir.com/";
      else if(seekMachine == "aspin")homepg = "http://www.aspin.com/";
      else if(seekMachine == "DD")homepg = "http://www.dynamicdrive.com/";
      else if(seekMachine == "jscript")homepg = "http://javascript.internet.com";
      else if(seekMachine == "jskit")homepg = "http://www.wsabstract.com/";
      else if(seekMachine == "a1js")homepg = "http://www.a1javascripts.com/";
      else if(seekMachine == "jspin")homepg = "http://www.jspin.com/";

      //News
      else if(seekMachine == "altavista_news")homepg = "http://news.altavista.com/";
      else if(seekMachine == "atw_news")homepg = "http://www.alltheweb.com/";
      else if(seekMachine == "yahoo_news")homepg = "http://news.yahoo.com/";
      else if(seekMachine == "daypop")homepg = "http://www.daypop.com/";
      else if(seekMachine == "moreover")homepg = "http://w.moreover.com/";
      else if(seekMachine == "rocketnews")homepg = "http://www.rocketnews.com/";
      else if(seekMachine == "northern")homepg = "http://www.northernlight.com/news.html";
      else if(seekMachine == "google_news")homepg = "http://news.google.com/";
      
      //Newsgroup
      else if(seekMachine == "google_ng")homepg = "http://groups.google.com/";
      else if(seekMachine == "forum1")homepg = "http://www.forumone.com/";
      
      //Miscellaneous
      else if(seekMachine == "surf7")homepg = "http://www.surf7.net";
      else if(seekMachine == "cdomain")homepg = "http://www.searchcaddy.com/";
      else if(seekMachine == "lycos_lyr")homepg = "http://music.lycos.com/lyrics/";
      else if(seekMachine == "bomis")homepg = "http://www.bomis.com";
      else if(seekMachine == "webring")homepg = "http://www.webring.org/";
      
      if(seekType == "normal"){
      trgt="viewer";
      if(document.netseeker.new_win.checked){trgt="_blank";}
      }
      else{trgt="_blank";}
      window.open(homepg, trgt);
}
