<!-- START Toggle text visibility -->
function ToggleVisibleByID(s_element_id)
{
	// First, get an object reference to the element 
	var o_element = document.getElementById(s_element_id);
	// Next, setup a string var with the element's "class" attrs
	var theClassName = new String(o_element.className);
	// Is it hidden?
	if (theClassName.match("hidden"))
	{
		// Yes, so replace hidden with show and set the element's class accordingly.
		o_element.className = theClassName.replace("hidden", "show");
	}
	else if(theClassName.match("show"))
	{
		// No, so do the opposit of the above.
		o_element.className = theClassName.replace("show", "hidden");
	}
	else
	{
		// No, so do the opposit of the above.
		o_element.className = theClassName.concat("show");
	}
	
}
<!-- END Toggle text visibility -->

