/**
 * Sets/unsets the pointer in browse mode
 *
 * @param   object   the table row
 * @param   object   the color to use for this row
 *
 * @return  boolean  whether pointer is set or not
 */
 
var thePointerColorSAVE;

function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

	c1 = theRow.style.backgroundColor;
	
    var rowCellsCnt  = theCells.length;

	thePointerColorSAVE = theCells[0].style.backgroundColor;
	if (thePointerColorSAVE == '')
		thePointerColorSAVE = c1;

    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function

function backPointer(theRow)
{
//	setPointer(theRow, thePointerColorSAVE);
	setPointer(theRow, '#ffffff');
}

