// JavaScript Document

function toggleLayer(whichLayer, disp)
{
//alert ("in toggle layer");
var sh_prop = "block";
var hide_prop = "none";
var bname = navigator.appName;

if (bname.search(/microsoft/i) == 0) {
		sh_prop = "block";
}
else {
		sh_prop = "table-row";
}

if (disp == "show") {
	st = sh_prop;
}
else {
	st = hide_prop;
}
//alert(st);
if (document.getElementById)
{
	// this is the way the standards work
	var style2 = document.getElementById(whichLayer).style;
	//style2.display = style2.display? "":"block";
	style2.display = st;
}
else if (document.all)
{
	// this is the way old msie versions work
	var style2 = document.all[whichLayer].style;
	//style2.display = style2.display? "":"block";
	style2.display = st;
}
else if (document.layers)
{
	// this is the way nn4 works	
	var style2 = document.layers[whichLayer].style;
	//style2.display = style2.display? "":"block";
	style2.display = st;
}
} //end function


