Calling a DIV tag with Javascript....

Would anyone know how to write a function Javascript the calls a div 
tag that shows and hides a layer? I'm doing some research to find out 
how to write the code. Any suggestions? Thanks

<SCRIPT language="JavaScript1.2">

	function ChangeLayer(show, hide_a, hide_b, hide_c)
	{
		var showDiv = document.div_ + show
		var hideDiv_a = document.div_ + hide_a
		var hideDiv_b = document.div_ + hide_b
		var hideDiv_c = document.div_ + hide_c

		document.div_1.style.visibility = "hidden";
		//hideDiv_a.style.visibility="hidden"
		//hideDiv_b.style.visibility="hidden"
		//hideDiv_c.style.visibility="hidden"
		//showDiv.style.visibility="visible"
	}
function showPopUp()
{
	if (document.all) {
		document.myPopup.style.visibility = "visible";
	}
	else if (document.layers) {
		document.ids.myPopup.visibility = "visible";
	}
}

function hidePopUp() {
	if (document.all) {
		document.myPopup.style.visibility = "hidden";
	}
	else if (document.layers) {
		document.ids.myPopup.visibility = "hidden";
	}
}


</SCRIPT>

Received on Friday, 3 March 2000 16:44:42 UTC