
function button_over(eButton)
{
	// If we're just mousing about _within_ eButton, then bail
	if (window.event && eButton.contains(window.event.fromElement) && eButton.contains(window.event.toElement)) return false;

	// Otherwise, do the effects

	eButton.style.backgroundColor = sOverBackColor;
	eButton.style.color = sOverTextColor;
	if (eActiveButton != eButton)
	{
		eButton.style.borderColor = sOverBorderColor;
		//eButton.rows[0].cells[0].children[0].children[0].src = sImgPath + eButton.id.replace(/tbl(.*)Button/,"$1") + "_over.gif";
	}

}

function button_out(eButton)
{
	if (window.event && eButton.contains(window.event.fromElement) && eButton.contains(window.event.toElement)) return false;

	if (eActiveButton != eButton)
	{
		eButton.style.backgroundColor = sOffBackColor;
		eButton.style.borderColor = sOffBorderColor;
		eButton.style.color = sOffTextColor;
		eButton.rows[0].cells[0].style.padding = sOffPadding;
		eButton.rows[0].cells[1].style.padding = sOffPadding;
		//eButton.rows[0].cells[0].children[0].children[0].src = sImgPath + eButton.id.replace(/tbl(.*)Button/,"$1") + "_off.gif";
	}
	else
	{
		eButton.style.backgroundColor = sDownBackColor;
		eButton.style.borderColor = sDownBorderColor;
		eButton.style.color = sDownTextColor;
	}
}


function button_down(eButton)
{
	eButton.style.borderColor = sDownBorderColor;
	eButton.rows[0].cells[0].style.padding = sDownPadding;
	eButton.rows[0].cells[1].style.padding = sDownPadding;
}

function button_click(eButton)
{
	if (null != eActiveButton && eButton != eActiveButton)  // RESET OTHER ACTIVE BUTTON
	{
		eActiveButton.style.backgroundColor = sOffBackColor;
		eActiveButton.style.borderColor = sOffBorderColor;
		eActiveButton.style.color = sOffTextColor;
		//eActiveButton.rows[0].cells[0].children[0].children[0].src = sImgPath + eActiveButton.id.replace(/tbl(.*)Button/,"$1") + "_off.gif";
		eActiveButton.rows[0].cells[0].style.padding = sOffPadding;
		eActiveButton.rows[0].cells[1].style.padding = sOffPadding;
		eActiveButton = null;

	}
	if (eButton != eActiveButton)  // MAKE HOVERED BUTTON ACTIVE
	{
		eActiveButton = eButton;
		eActiveButton.style.backgroundColor = sDownBackColor;
		eActiveButton.style.borderColor = sDownBorderColor;
		eActiveButton.style.color = sDownTextColor;
		eActiveButton.rows[0].cells[0].style.padding = sDownPadding;
		eActiveButton.rows[0].cells[1].style.padding = sDownPadding;
		sPaneName = eActiveButton.id.replace(/tbl(.*)Button/,"$1");
		}
}
function HandleError()
{
	if (window.eOrigErrorHandler) window.onerror = window.eOrigErrorHandler;
	return true;
}


