sfHover = function() {
        var sfEls = document.getElementById("nav").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
                sfEls[i].onmouseover=function() {
                        this.className+=" sfhover";
                }
                sfEls[i].onmouseout=function() {
                        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
                }
        }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function loadPage(list)
{
         location.href = list.options[list.selectedIndex].value;
}

function search_inventory() {
	    var mlink;
		document.frmsearch.radio_sort[1].checked = false;
		mlink = "http://www.esbpartsource.com/index.aspx?MfrID=34893&part=" + document.frmsearch.fsearch.value;
		window.location.href = "http://www.amphenol-aerospace.com/new/distlist.asp?BU=2&part="+ document.frmsearch.fsearch.value;
		//window.open(mlink,"popup");
}

function search_products() {
	    var mlink;
		document.frmsearch.radio_sort[1].checked = false;
		mlink = "http://www.tagteam.com/TagTeam/client/gallery.asp?dbid=1304&siteid=838771&keywords=" + document.frmsearch.fsearch.value;
		window.location.href = mlink;
		//window.open(mlink,"popup");
}

function search_parts() {
	    var mlink;
		document.frmsearch.radio_sort[0].checked = false;
		mlink = "partsearch.asp?fsearch=" + document.frmsearch.fsearch.value;
		window.location.href = mlink;
		//window.open(mlink,"popup");
}


function process_search(loc) {

                      if(document.frmsearch.fsearch.value == "") {
                alert("You must enter something in the search field to continue. Try again.");
                document.frmsearch.fsearch.focus();
                document.frmsearch.radio_sort[0].checked = false;
                document.frmsearch.radio_sort[1].checked = false;
                return;
                            }

        alert(document.frmsearch.fsearch.value);
         document.frmsearch.radio_sort[0].checked = false;
         document.frmsearch.radio_sort[1].checked = false;
         document.frmsearch.fsearch.value ="";
         document.frmsearch.fsearch.focus();
         }

function goToDivision(){
				if (document.frmlocation.selectDivision.options[document.frmlocation.selectDivision.selectedIndex].value != "null") {
					location = document.frmlocation.selectDivision.options[document.frmlocation.selectDivision.selectedIndex].value
				}
			}