/**
* 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
*/
function st_setRowColors(theRow, thePointerColor, theTextColor)
{
  var theCells;

  if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
    return false;
  }
  if (typeof(document.getElementsByTagName) != 'undefined') {
    theCells = theRow.getElementsByTagName('td');
  }
  else if (typeof(theRow.cells) != 'undefined') {
    theCells = theRow.cells;
  }
  else {
    return false;
  }

  var rowCellsCnt  = theCells.length;
  for (var c = 0; c < rowCellsCnt; c++) {
    theCells[c].style.backgroundColor = thePointerColor;
    theCells[c].style.color = theTextColor;
  }

  return true;
} // end of the 'setPointer()' function

