
function doSwitch(a_myElem)
{
	if (! a_myElem)
		return;

	var l_rows = a_myElem.parentNode;
	var l_col;

	while (l_rows != null)
	{
		if (l_rows.nodeName.toLowerCase() == "tr")
		{
			l_col = l_rows.firstChild;
			while (l_col != null)
			{
				if (l_col.nodeName.toLowerCase() == "td")
				{
					if (l_col.getAttribute("name").toLowerCase() == "blockswitchable")
					{
						if (l_col.style.display.toLowerCase() == "none")
						{
							try
							{
								l_col.style.display = "table-cell";
							}
							catch (e)
							{
								l_col.style.display = "block";
							}
						}
						else
						{
							l_col.style.display = "none";
						}
					}
				}

				l_col = l_col.nextSibling;
			}		
		}

		l_rows = l_rows.nextSibling;
	}
}

function mouseHover(a_myElem)
{
	if (! a_myElem)
		return;

	a_myElem.style.cursor = "pointer";
	a_myElem.style.textDecoration = "underline";
}

function mouseLeave(a_myElem)
{
	if (! a_myElem)
		return;

	a_myElem.style.cursor = "auto";
	a_myElem.style.textDecoration = "none";
}

