
function ToggleBlock(blockName) {
	
	if (document.getElementById) {
		
		var theBlock = document.getElementById(blockName)
		if (theBlock.style.display != "block" || theBlock.style.visibility != "visible") {
			theBlock.style.visibility = "visible"
			theBlock.style.display = "block"
		} else {
			theBlock.style.visibility = "hidden"
			theBlock.style.display = "none"
		}
	}
}

function InitializeToggle(root) {
	
	if (document.getElementById) {
		
		var i = 1
		var theBlock = document.getElementById(root + i)
		while (theBlock != null) {
			theBlock.style.visibility = "hidden"
			theBlock.style.display = "none"
			theBlock = document.getElementById(root + ++i)
		}
	}
}

function ShowAll(root) {
	
	if (document.getElementById) {
		
		var i = 1
		var theBlock = document.getElementById(root + i)
		while (theBlock != null) {
			theBlock.style.visibility = "visible"
			theBlock.style.display = "block"
			theBlock = document.getElementById(root + ++i)
		}
	}
}

