<!-- Begin
Google = "http://www.google.com/search?q=";
Msn = "http://search.msn.com/results.asp?co=20&RS=CHECKED&FORM=MSNH&ba=0&v=1&q=";
Yahoo = "http://search.yahoo.com/bin/search?p=";
Alta = "http://www.altavista.digital.com/cgi-bin/query?pg=q&what=web&q=";
Open = "http://search.opentext.com/omw/simplesearch?SearchFor=";
Lycos = "http://www.lycos.com/cgi-bin/pursuit?query=";
Crawler = "http://www.webcrawler.com/cgi-bin/WebQuery?searchText=";
InfoSeek = "http://guide-p.infoseek.com/Titles?qt=";
DejaNews = "http://search.dejanews.com/nph-dnquery.xp?query=";
Inktomi = "http://204.161.74.8:1234/query/?query=";
MetaCrawler = "http://search.go2net.com/crawler?general=";
SavySearch = "http://guaraldi.cs.colostate.edu:2000/search?KW=";
Excite = "http://www.excite.com/search.gw?searchType=Concept&search=";
Magellan = "http://www.mckinley.com/searcher.cgi?query=";
Point = "http://point.lycos.com/cgi-bin/pursuit?query=";
Galaxy = "http://www.einet.net/cgi-bin/wais-text-multi?keywords=";

function getresult(srchval, opt) {
	srchval = stringPlus(srchval);
	var url;
	if (opt == "Yahoo")
	  	url = Yahoo + escape(srchval);
	else if (opt == "Excite")
		url = Excite + escape(srchval) + "&category=default&mode=relevance&showqbe=1&display=html3,hb";
	else if (opt == "Alta")
		url = Alta + escape(srchval) + "&mode=and";
	else if (opt == "Msn")
		url = Msn + escape(srchval);
        else if (opt == "Google")
                url = Google + escape(srchval);
	window.open(url, "_new");
}

function stringPlus(srchval) {
	var res = "";
	for (var j=0; j < srchval.length; j++) {
		if (srchval.charAt(j) == " ")
			res += "+";
		else 
			res += window.document.seleng.text.value.charAt(j);
	}
	return res;
}

// End  -->
