﻿function fnRowMouseOverOut(e)
{
	var objEvent = null;
	var objElement = null;

	if (!e)
	{
		objEvent = window.event;
		objElement = window.event.srcElement;
	}
	else
	{
		objEvent = e;
		objElement = e.target;

	}

	if (objEvent.type == "mouseover")
	{
		fnChangeRowColor(objElement, "#EAEAEA");
	}
	if (objEvent.type == "mouseout")
	{
		fnChangeRowColor(objElement, "");
	}
}
function fnChangeRowColor(obj, strColor)
{

	while ((obj != null) && (obj.tagName != "TR"))
	{
		obj = obj.parentNode;
	}

	if ((obj != null) && (obj.onclick != undefined))
	{
		if ((obj.parentNode == null) || (obj.parentNode.tagName != "THEAD"))
		{
			obj.style.backgroundColor = strColor;
			obj.style.cursor = "pointer";
		}
	}
}

