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);
}

function clockdayStart(div)
{
    y = new Date();
    y.setDate(y.getDate());
    d = y.getDate();
    m = y.getMonth()+1>9?y.getMonth()+1:'0'+(y.getMonth()+1);
    k = y.getFullYear();
    document.getElementById(div).innerHTML = d+'/'+m+'/'+k;
    setTimeout('clockdayStart("'+div+'")',0);
}

