function Obarvi(Radek, Barva)
{
    if (Barva == '' || typeof(Radek.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = Radek.getElementsByTagName('td');
    }
    else if (typeof(Radek.cells) != 'undefined') {
        var theCells = Radek.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = Barva;
    }

    return true;
}