<!--

// Hides the element specified.
function hide(id) {
	var element = document.getElementById(id);
	if (element == null) {
		alert("hide(id): Cannot find element ('" + id + "')");
		return;
	}

	element.style.display = "none";
}

// Shows the element specified.
function show(id) {
	var element = document.getElementById(id);
	if (element == null) {
		alert("show(id): Cannot find element ('" + id + "')");
		return;
	}

	element.style.display = "block";
}

// Checks if the element specified is visible.
function isVisible(id) {
	var element = document.getElementById(id);
	if (element == null) {
		alert("isVisible(id): Cannot find element ('" + id + "')");
		return;
	}

	return (element.style.display == "block");
}

// Hides the elements specified.
function hideAll(ids) {
	var i;
	for (i in ids) {
		var element = document.getElementById(ids[i]);
		if (element == null) {
			alert("hideAll(ids): Cannot find element ('" + ids[i] + "')");
			return;
		}
	
		element.style.display = "none";
	}
}

// Shows the elements specified.
function showAll(ids) {
	var i;
	for (i in ids) {
		var element = document.getElementById(ids[i]);
		if (element == null) {
			alert("showAll(ids): Cannot find element ('" + ids[i] + "')");
			return;
		}
	
		element.style.display = "block";
	}
}

//-->

