function setBackground(Row, Color)
{
    if (Color == '' || typeof(Row.style) == 'undefined') 
    {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') 
    {
        var Cells = Row.getElementsByTagName('td');
    }
    else 
    {
      if (typeof(Row.cells) != 'undefined') 
      {
          var Cells = Row.cells;
      }
      else 
      {
          return false;
      }
    }
    var rowCellsCount  = Cells.length;
    for (var i = 0; i < rowCellsCount; i++) 
    {
       Cells[i].style.backgroundColor = Color;
    }
    return true;
} //fim da funcao setBackground

