<!--hideandshow-->
/*
*   Purpose:    change visibility of DIVs
*
*   Usage:      hide(<DIVID>), show(<DIVID>), toggle(<DIVID>)
*
*/
function hide(id) {
	if (document.getElementById) {
		// Standards Compliant code  
		document.getElementById(id).style.visibility = "hidden";  
	} else {
		// Special cases code
		if (document.layers) { document.layers[id].visibility = "hide"; }   // ns4
		if (document.all) { document.all[id].style.visibility = "hidden"; } // ie4
	}
}

function show(id) {
	if (document.getElementById) {
		// Standards Compliant code  
		document.getElementById(id).style.visibility = "visible";   
	} else {
		// Special cases code
		if (document.layers) { document.layers[id].visibility = "show"; }   // ns4
		if (document.all) { document.all[id].style.visibility = "visible"; }// ie4
	}
}

function toggle(id) {
	if (document.getElementById) {  
		// Standards Compliant code  
		if (document.getElementById(id).style.visibility == "hidden") { show(id); } else { hide(id); } 
	} else {
		// Special cases code
		if (document.layers) { if ( document.layers[id].visibility == "hide" ) { show(id);	} else { hide(id); } }   // ns4
		if (document.all) { if ( document.all[id].style.visibility == "hidden" ) { show(id); } else { hide(id); } }  // ie4
	}
}
<!--/hideandshow-->	