/****************************************************************
**  Search Script
**  AccessNorthGa.com
**  Developed by Greg Cruce
**
*****************************************************************
**  USAGE
**  
**  Insert this code into the <HEAD> of a page to call the
**  function
**  
		<SCRIPT LANGUAGE="JavaScript" SRC="test.js"></SCRIPT>
**  
**  Here's a sample search form
**  
		<form name="frmSearch" method="PUT" onSubmit="return doSearch()">
		Search 
		<SELECT name="selEngine">
			<option value="AccessNorthGa">AccessNorthGa</option>
			<option value="AltaVista">AltaVista</option>
			<option value="Excite">Excite</option>
			<option value="GoTo">GoTo</option>
			<option value="InfoSeek">InfoSeek</option>
			<option value="LookSmart">LookSmart</option>
			<option value="Lycos">Lycos</option>
			<option value="Northernlight">Northern Light</option>
			<option value="Snap">Snap</option>
			<option value="Yahoo">Yahoo</option>
		</SELECT> for 
		<input type="TEXT" name="txtSearch">
		<input type="SUBMIT" value="Search">
		</form>
**
****************************************************************/
function doSearch() {
	var SearchText = escape(document.frmSearch.txtSearch.value)
	var list = document.frmSearch.selEngine
	var SE = list.options[list.selectedIndex].value
	var sWin
	if (SE == "") {
		alert("You didn't put anything to search for.")
		document.frmSearch.txtSearch.focus()
		return false }
	else if (SE == "AccessNorthGa")	{
		alert("We don't got no search engine, bubba!") }
	else if (SE == "Yahoo") {
		URL = "http://search.yahoo.com/bin/search?p=" + SearchText }
	else if (SE == "AltaVista") {
		URL = "http://www.altavista.com/cgi-bin/query?q=" + SearchText + "&text=yes" }
	else if (SE == "Excite") {
		URL = "http://search.excite.com/search.gw?search=" + SearchText }
	else if (SE == "GoTo") {
		URL = "http://www.goto.com/d/search/?Keywords=" + SearchText }	
	else if (SE == "Infoseek") {
		URL = "http://www.infoseek.com/Titles?qt=" + SearchText }
	else if (SE == "LookSmart") {
		URL = "http://www.looksmart.com/r_search?key=" + SearchText }
	else if (SE == "Lycos") {
		URL = "http://lycos.com/cgi-bin/pursuit?query=" + SearchText }
	else if (SE == "Northernlight") {
		URL = "http://www.northernlight.com/nlquery.fcg?qr=" + SearchText + "&si=&dx=0&us=025&cc=&sb.x=36&sb.y=13" }
	else if (SE == "Snap") {
		URL = "http://home.snap.com/search/directory/results/1,61,home-0,00.html?keyword=" + SearchText	}
	Page = "/tools/search/search.asp?URL=" + URL
	sWin = window.open(Page,"myWin","")
	return false
}


