/*
	Returns true if the given control is visible to the end user.
*/
function LumisIsControlVisible(controlElement)
{
	var curElement = controlElement;
	
	while(curElement != null && curElement.tagName.toUpperCase() != "BODY")
	{
		if(curElement.style.display == "none" && !(curElement.tagName.toUpperCase() == "INPUT" && curElement.type.toUpperCase() == "HIDDEN"))
		{
			return false;
		}
			
		curElement = curElement.parentNode;
	}
	
	return true;
}
	
