function toggleInfo(whichLayer) {
	if (whichLayer == "Credit Card") {
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById('creditcardinfo').style;
			style2.display = "block";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all['creditcardinfo'].style;
			style2.display = "block";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers['creditcardinfo'].style;
			style2.display = "block";
		}
		
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById('net30info').style;
			style2.display = "";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all['net30info'].style;
			style2.display = "";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers['net30info'].style;
			style2.display = "";
		}
		
	} else if (whichLayer == "Net30") {
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById('net30info').style;
			style2.display = "block";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all['net30info'].style;
			style2.display = "block";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers['net30info'].style;
			style2.display = "block";
		}
		
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById('creditcardinfo').style;
			style2.display = "";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all['creditcardinfo'].style;
			style2.display = "";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers['creditcardinfo'].style;
			style2.display = "";
		}
		
	} else if (whichLayer == "C.O.D.") {
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById('net30info').style;
			style2.display = "";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all['net30info'].style;
			style2.display = "";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers['net30info'].style;
			style2.display = "";
		}
		
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById('creditcardinfo').style;
			style2.display = "";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all['creditcardinfo'].style;
			style2.display = "";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers['creditcardinfo'].style;
			style2.display = "";
		}
	}
}



function toggleState(whichLayer) {
	if (document.dealerapp.state.options[document.dealerapp.state.selectedIndex].value == "CA") {
		if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById(whichLayer).style;
			style2.display = "table-row";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all[whichLayer].style;
			style2.display = "table-row";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers[whichLayer].style;
			style2.display = "table-row";
		}
	} else {
			if (document.getElementById) {
			// this is the way the standards work
			var style2 = document.getElementById(whichLayer).style;
			style2.display = "";
		} else if (document.all) {
			// this is the way old msie versions work
			var style2 = document.all[whichLayer].style;
			style2.display = "";
		} else if (document.layers) {
			// this is the way nn4 works
			var style2 = document.layers[whichLayer].style;
			style2.display = "";
		}
	}
}