function runClock() {
    today = new Date();
    hours = today.getHours();
    minutes = today.getMinutes();
    seconds = today.getSeconds();
    TimeValue = hours;
    TimeValue += ((minutes < 10) ? ":0" : ":") + minutes;
    TimeValue += ((seconds < 10) ? ":0" : ":") + seconds;
    document.all.hodiny.innerText = TimeValue;
    window.setTimeout("runClock()",1000);
}