/**
 * 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 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;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function


function uraZ() {
  dan = new Date();
  ure = dan.getHours();
  if (ure < 10) {ure = '0' + ure};
  min = dan.getMinutes();
  if (min < 10) {min = '0' + min};
  niz = dan.getDate() + '. ' + (dan.getMonth() + 1) + '. ' + dan.getYear() + ', ' + ure + ':' + min
  ura_zgoraj.innerHTML= niz;
  timerID = setTimeout('uraZ()', 60000);
}

function uraS() {
  dan = new Date();
  ure = dan.getHours();
  if (ure < 10) {ure = '0' + ure};
  min = dan.getMinutes();
  if (min < 10) {min = '0' + min};
  niz = dan.getDate() + '. ' + (dan.getMonth() + 1) + '. ' + dan.getYear() + ', ' + ure + ':' + min
  ura_spodaj.innerHTML= niz;
  timerID = setTimeout('uraS()', 60000);
}

function skok(kam) {
  location.href = "#" + kam
}

