



function displayTab(id) {
	var doc = document.getElementsByTagName('div');
	var divName
	for (var i = 0; i < doc.length; i++){
		
		divName = doc[i].id
		
		if (divName.indexOf("tabBody") != -1) {
			//alert("divName.charAt(8):" + divName.charAt(7))
			if (divName.charAt(7) == id) {
				//doc[i].style.border = "1px solid black";
				doc[i].style.display = "block";
			}
			else {
				doc[i].style.display = "none";
			}
		}
	}
	
	var tab = document.getElementsByTagName("li");
	//alert("tab.length: " + tab.length);
	var tabName
	for (var i = 0; i < tab.length; i++){
		//if (tabName != "undefined") {
		tabName = tab[i].id
		//alert("tabName: " + tabName)
		if (tabName) {
		//alert("tabName.charAt(3): " + tabName.charAt(3))
			if (tabName.charAt(3) == id) {
				//doc[i].style.border = "1px solid black";
				//tab[i].style.padding-bottom = "5px";
			//	alert("match?")
				tab[i].className = "current"
			}
			else {
				//tab[i].style.color = "blue";
				//alert("no match?")
				tab[i].className = "not_current"
			}
		}
		//}
	}
}



function makeInvisible(whichLayer) {

	if (document.getElementById)	{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
	}

	else if (document.all)	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
	}
	
	else if (document.layers)	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
	}

style2.display = "none";
}

function makeVisible(whichLayer) {
	
	if (document.getElementById)	{
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
	}

	else if (document.all)	{
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
	}
	
	else if (document.layers)	{
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
	}
	
	
	if (style2.display=="block") {
	style2.display = "none";
	}
	else{
	style2.display = "block";
	}
}
