//Hide selects for ie ...

function hideselects(action) {
	if (action!='visible'){action='hidden';}
	if (navigator.appName.indexOf("MSIE")) {
	for (var S = 0; S < document.forms.length; S++){
		for (var R = 0; R < document.forms[S].length; R++) {
			if (document.forms[S].elements[R].options) {
				document.forms[S].elements[R].style.visibility = action;
				 }
			}
		}
	}
}

//nice search box text reset

function resetsearch(whichbox){
	
	if (document.getElementById(whichbox).value == ""){
		if (whichbox == "parts"){
			document.getElementById(whichbox).value = "Enter Part Number";	
		}else{
			document.getElementById(whichbox).value = "Enter Keyword";	
		}
	};
}

//nice login box text reset

function resetlogin(whichbox){
	
	if (document.getElementById(whichbox).value == ""){
		if (whichbox == "password"){
			document.getElementById(whichbox).value = "12345";	
		}else{
			document.getElementById(whichbox).value = "ID";	
		}
	};
}

//nice knowledge base box text reset

function resetkb(whichbox){
	
	if (document.getElementById(whichbox).value == ""){
		if (whichbox == "knowledgebase"){
			document.getElementById(whichbox).value = "Enter knowledgebase question";	
		}else{
			document.getElementById(whichbox).value = "Enter Part Number";	
		}
	};
}