function hideAllPopups(curEl)
{
	if (!curEl)
		curEl = document.documentElement;
	
	if (curEl)
	{
		if (curEl.id)
		{
			if (curEl.id.substr(0, 4) == "pop_")
				elHide(curEl.id);
		}
	
		// Traverse the tree
		var i = 0;
		var childEl = curEl.childNodes[i];
		while (childEl)
		{
			// Recursively traverse the tree structure of the child node
			hideAllPopups(childEl);
			i++;
			childEl = curEl.childNodes[i];
		}
	}
}
