function clockStart(div)
{
    x = new Date();
    x.setTime(x.getTime());
    h = x.getHours()>9?x.getHours():'0'+x.getHours();
    i = x.getMinutes()>9?x.getMinutes():'0'+x.getMinutes();
    s = x.getSeconds()>9?x.getSeconds():'0'+x.getSeconds();
    document.getElementById(div).innerHTML = h+':'+i+':'+s;
    setTimeout('clockStart("'+div+'")',0);
}