var version = 0;
  if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) version = 3;
  else if (navigator.userAgent.indexOf("MSIE") != -1) version = 1;
  else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) version = 2;
  else version = 0;

function makeArray(m){
 this.length = m;
 return this;
}

var n=0;
var goURL;
query = new makeArray(15);
 query[1] = "http://www.lycos.com/cgi-bin/pursuit?cat=lycos&matchmode=or&minscore=.1&maxhits=40&terse=standard&x=58&y=7&query=";
 query[2] = "http://www.northernlight.com/nlquery.fcg?si=&cb=0&cc=&us=025&qr=";
 query[3] = "http://search.yahoo.com/bin/search?d=y&g=0&s=a&w=s&n=50&p=";
 query[4] = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q=";
 query[5] = "http://www.google.com/search?q=";
 query[6] = "http://search.excite.com/search.gw?search=";
 query[7] = "http://www.hotbot.com/?SW=web&SM=MC&DC=50&DE=1&RG=NA&_v=2&MT=";
 query[8] = "http://search.about.com/scripts/query70.asp?terms=";
 query[9] = "http://element.whatuseek.com/cgi-bin/texis/texis/meta?shock=0&adspace=SearchResults&scheme=orange&arg=";
 query[10] = "http://search.dogpile.com/texis/search?q=";
 query[11] = "http://guide.infoseek.com/Titles?col=WW&sv=IS&lk=noframes&nh=50&qt=";
 query[12] = "";
 query[13] = "http://www.dictionary.com/cgi-bin/dict.pl?term=";
 query[14] = "http://www.thesaurus.com/cgi-bin/search?config=roget&words=";
 query[15] = "http://search.virgilio.it/search/cgi/search.cgi?db=v&op=and&cerca=Cerca&qs=";
 

url = new makeArray(15);
 url[1] = "http://www.lycos.com/";
 url[2] = "http://www.northernlight.com/";
 url[3] = "http://www.yahoo.com/";
 url[4] = "http://www.altavista.digital.com/";
 url[5] = "http://www.google.com/";
 url[6] = "http://www.excite.com/";
 url[7] = "http://www.hotbot.com/";
 url[8] = "http://www.about.com/";
 url[9] = "http://www.whatyouseek.com/";
 url[10] = "http://www.dogpile.com/";
 url[11] = "http://www.infoseek.com/";
 url[12] = "http://babelfish.altavista.com/";
 url[13] = "http://www.dictionary.com/";
 url[14] = "http://www.thesaurus.com/";
 url[15] = "http://www.virgilio.it/";

function search(form,n) {
  goURL = query[n];
  if ((document.sefrm.searchText.value == '') || (query[n]=='')){   goURL = url[n];
  }
  else{
   goURL += escape(document.sefrm.searchText.value);
  }
  window.open(goURL,"","toolbar=1,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1,width=400,height=300,left=50,top=50");
  n = 0;
}