<!--
	//CHANGE SUB-NAV ON ROLLOVER
	function ChangeDiv2() {	
    	document.getElementById("title1").style.color = "#999";
    	document.getElementById("title2").style.color = "#333";
    	document.getElementById("title3").style.color = "#333";
    	document.getElementById("title4").style.color = "#333";
    	
    	document.getElementById("title1").style.backgroundPosition = "0 -35px";
    	document.getElementById("title2").style.backgroundPosition = "0 0";
    	document.getElementById("title3").style.backgroundPosition = "0 0";
    	document.getElementById("title4").style.backgroundPosition = "0 0";
    	
    	document.getElementById("search1").style.backgroundPosition = "0 -101px";
    	document.getElementById("search2").style.backgroundPosition = "0 0";
    	document.getElementById("search3a").style.backgroundPosition = "0 0";
    	document.getElementById("search4").style.backgroundPosition = "0 0";
    	
    	/* document.getElementById("search2").style.borderColor = "#999";
    	document.getElementById("search3").style.borderColor = "#999";
    	document.getElementById("search4").style.borderColor = "#999"; */
    	
    	document.getElementById("ctl00_cphMain_txtPartnumber").style.borderColor = "#CCC";
    	document.getElementById("fields2").style.borderColor = "#999";
    	document.getElementById("fields3").style.borderColor = "#999";
    	document.getElementById("fields4").style.borderColor = "#999";
    	document.getElementById("fields5").style.borderColor = "#999";
    	
    	/* document.getElementById("fields6").style.filter = "alpha(opacity = 100)";
    	document.getElementById("fields7").style.filter = "alpha(opacity = 100)";
    	document.getElementById("fields8").style.filter = "alpha(opacity = 100)"; */

    	document.getElementById("fields2").style.color = "#333";
    	document.getElementById("fields3").style.color = "#333";
    	document.getElementById("fields4").style.color = "#333";
    	document.getElementById("fields5").style.color = "#333";

    	document.getElementById("text1").style.color = "#999";
    	document.getElementById("text2").style.color = "#333";
    	document.getElementById("text3").style.color = "#333";
    	document.getElementById("text4").style.color = "#333";
    	
    	/* document.getElementById("text1").style.backgroundPosition = "0 0";
    	document.getElementById("text2").style.backgroundPosition = "0 0";
    	document.getElementById("text3").style.backgroundPosition = "0 0"; */
}
//-->
<!--
	//CHANGE IMAGE ON MOUSEOVER
	function ChangeImage(Image, Pos) {
    	var imageVal;
    	var xVal = "-" + Pos + "px bottom";
    		
    	if (Image == 1) {
    		imageVal = "url(images/bg_home_detail.jpg)"
    	}
    	if (Image == 2) {
    		imageVal = "url(images/bg_sub_detail.jpg)"
    	}
    	if (Image == 3) {
    		imageVal = "url(images/bg_sub_detail_2.jpg)"
    	}
    	
    	document.getElementById("navpic1").style.backgroundImage = imageVal;
    		
    	if (Pos == 0) {
    		xVal = "0 bottom"
    	}
    	document.getElementById("navpic1").style.backgroundPosition = xVal;		
}
//-->
<!--
	//LOGIN - VALIDATE LOGIN FORM FIELDS
	function ValEmail() {
	var email = document.Form2.Email.value;
	var emailchar = document.Form2.Email.value.indexOf("@");
	var rulesval = document.Form2.RulesVal.value;
	if ((email == "") || (emailchar == -1)) 
	{
	alert ("Please provide a valid email address.");
	document.Form2.Email.focus();
	return (false);
	}
	if (rulesval == 0)
	{
	alert ("You must read the Official Rules to proceed.");
	document.Form2.Rules.focus();
	return (false);
	}
	return (true);
}
//-->
<!--
	//LOGIN - VALIDATE LOGIN FORM FIELDS
	function ValLogIn() {
	var username = document.Form3.UserName.value;
	var password = document.Form3.Password.value;
	if (username == "") 
	{
	alert ("Please enter a value for the \"User ID\" field.");
	document.Form3.UserName.focus();
	return (false);
	}
	if (password == "")
	{
	alert("Please enter a value for the \"Password\" field.");
	document.Form3.Password.focus();
	return (false);
	}
	return (true);
}
//-->
<!--
	//LOGIN - HANDLE CHECK BOX VALUE VALIDATION
	function RemPass() {
	var remember = document.Form3.Remember.value;
	var checkval = document.Form3.CheckVal.value;
	if ((remember == 1) && (checkval == 0))
		{
		document.Form3.CheckVal.value = 1;
		}
	else
		{
		document.Form3.CheckVal.value = 0;
	}
}
//-->
<!--
	//LOGIN - HANDLE CHECK BOX VALUE VALIDATION 2
	function OKRules() {
	var rules = document.Form2.Rules.value;
	var rulesval = document.Form2.RulesVal.value;
	if ((rules == 1) && (rulesval == 0))
		{
		document.Form2.RulesVal.value = 1;
		}
	else
		{
		document.Form2.RulesVal.value = 0;
	}
}
//-->
<!--
	//OPEN POP-UP
	function PopWin(NewLocation, HVal, WVal) {
	window.open(NewLocation, "NewWindow", "left=50,top=50,width=" + HVal 
	+ ",height=" + WVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//GO TO NEW LOCATION IN PARENT WINDOW
	function GoTo(NewLocation) {
	self.opener.location = NewLocation;
	parent.close();	
	}
//-->
<!--
	//RFQ
	function ClickRFQ(partnumber, family) {
	window.location = 'QuoteCart.aspx?otyp=RFQ&pn=' + partnumber + '&family=' + family;
	//parent.close();	
	}
//-->
<!--
	//RFQ
	function ClickORD(partnumber, family) {
	//alert("Online ordering coming soon.");
	window.location = 'buyCart.aspx?otyp=ORD&pn=' + partnumber + '&family=' + family;
	//parent.close();	
	}
//-->