
function isparts(){

var selIndex = document.contactform.ftype.selectedIndex;
comboValue = document.contactform.ftype.options[selIndex].value;
l=document.getElementById("partstext");
if (comboValue=="Parts Enquiry") { 
l.style.visibility="visible";
l.style.display="block";
//l.style.top=-100;
//l.style.height="0px";
} else {
l.style.visibility="hidden";
l.style.display="none";
//l.style.top=-100;
//l.style.height="0px";

}

}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = "";
}

function printit(){  
		if (window.print) {
		    window.print() ;  
		} else {
		    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
		}
		}

function partorder(pitem) {
	for (var x =1; x<=20; x++) {
		if (pitem.value < x) {  document.getElementById('ptb'+x).style.display="none";
		 } else { 
								document.getElementById('ptb'+x).style.display="block";
		}
	
	}

}

function nin(tabname)
{
	document.getElementById(tabname).style.color = "#cccccc";
	document.getElementById(tabname).style.cursor = "hand";
}

function nout(tabname)
{
	document.getElementById(tabname).style.color = "#FFFFFF";
	document.getElementById(tabname).style.cursor = "default";
}

function nout2(tabname)
{
	document.getElementById(tabname).style.color = "#FFFFFF";
	document.getElementById(tabname).style.background = "#6d98ac";
	document.getElementById(tabname).style.cursor = "default";
}

function min(tabname, tabname2)
{
	document.getElementById(tabname).style.backgroundColor = "#990000";
	document.getElementById(tabname).style.color = "#FFFFFF";
	document.getElementById(tabname).style.cursor = "hand";
	document.getElementById(tabname2).style.visibility = "visible";
}

function mout(tabname, tabname2)
{
	document.getElementById(tabname).style.color = "#FFFFFF";
	document.getElementById(tabname).style.backgroundColor = "#6d98ac";
	document.getElementById(tabname).style.cursor = "default";
	document.getElementById(tabname2).style.visibility = "hidden";
}

function gin(tabname)
{
	document.getElementById(tabname).style.backgroundColor = "#6d98ac";
	document.getElementById(tabname).style.color = "#990000";
	document.getElementById(tabname).style.cursor = "hand";
}

function gout(tabname)
{
	document.getElementById(tabname).style.color = "#FFFFFF";
	document.getElementById(tabname).style.backgroundColor = "#990000";
	document.getElementById(tabname).style.cursor = "default";
}

function pin(tabname)
{
	document.getElementById(tabname).style.border = "1px solid #000000";
	document.getElementById(tabname).style.color = "#000000";
	document.getElementById(tabname).style.cursor = "hand";
}

function pout(tabname)
{
	document.getElementById(tabname).style.color = "#6d98ac";
	document.getElementById(tabname).style.border = "1px solid #6d98ac";
	document.getElementById(tabname).style.cursor = "default";
}
function navin(tabname)
{
	document.getElementById(tabname).style.color = "#AE2A45";
	document.getElementById(tabname).style.cursor = "hand";
}

function navout(tabname)
{
	document.getElementById(tabname).style.color = "#000000";
	document.getElementById(tabname).style.cursor = "default";
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function sshow(obj,obj2){
	if (document.getElementById(obj).style.visibility=="hidden")
		{ 		
				document.getElementById(obj).style.visibility = "visible";
				document.getElementById(obj).style.display = "inline";
		 } else { document.getElementById(obj).style.visibility = "hidden"; 
				document.getElementById(obj).style.display = "none";
			}

	document.getElementById(obj2).style.backgroundColor = "#990000";
	document.getElementById(obj2).style.color = "#FFFFFF";
	document.getElementById(obj2).style.cursor = "default";


}
