
function getRow( element )
{
	if (element.tagName == "TR")
		return element
	else
		if (element.parentElement != null)
			return getRow( element.parentElement )
		else
			return null;
}


function getCell( element )
{
	if (element.tagName == "TD")
		return element
	else
		if (element.parentElement != null)
			return getCell( element.parentElement )
		else
			return null;
}

function onMouseOverFrame()
{
	td = getCell( event.srcElement );
	if (td != null && td.tagName == "TD" && td.hiColor)
	{
		td.style.borderColor = td.hiColor
	}
}


function onMouseOutFrame()
{
	td = getCell( event.srcElement );
	if (td != null && td.tagName == "TD" && td.normColor)
	{
		td.style.borderColor = td.normColor;
		td.style.color = td.hiColor
	}
}

function onMouseUp()
{
	td = getCell( event.srcElement );
	if (td != null && td.tagName == "TD")
	{
		td.style.color = td.hiColor
	}
}


function onMouseDown()
{
	td = getCell( event.srcElement );
	if (td != null && td.tagName == "TD")
	{
		td.style.color = td.normColor
	}
}

function onMouseOverFrame1(ev)
{
	//var ev = window.event;
	var td = getCell((ev.srcElement)?ev.srcElement : ev.target);
	if (td != null && td.tagName == "TD" && td.hiColor)
	{
		td.style.borderColor = td.hiColor
	}
}

function onMouseOutFrame1(ev)
{
	td = getCell((ev.srcElement)?ev.srcElement : ev.target);
	if (td != null && td.tagName == "TD" && td.normColor)
	{
		td.style.borderColor = td.normColor;
		td.style.color = td.hiColor
	}
}

function onMouseUp1(ev)
{
	td = getCell((ev.srcElement)?ev.srcElement : ev.target);
	if (td != null && td.tagName == "TD")
	{
		td.style.color = td.hiColor
	}
}


function onMouseDown1(ev)
{
	td = getCell((ev.srcElement)?ev.srcElement : ev.target);
	if (td != null && td.tagName == "TD")
	{
		td.style.color = td.normColor
	}
}
