//<!--
function ShowClock(ampm,bSec,nDelay)
{
    if( ampm != null )
        _ampm = ampm;
    else
        _ampm = 0;

    if (!document.layers&&!document.all&&!document.getElementById)
        return
    var Digital=new Date()
    var day = Digital.getDate();
    var month = Digital.getMonth()+1;
    var year = Digital.getYear();
    if( year < 1900 )
        year += 1900;

    var hours=Digital.getHours()
    var minutes=Digital.getMinutes()
    var seconds=Digital.getSeconds()
    var dn="";

    if( _ampm )
    {
        dn="a";

        if (hours>12)
        {
            dn="p"
            hours=hours-12
        }
        if (hours==0)
            hours=12
    }

    if (minutes<=9)
        minutes="0"+minutes
    if (seconds<=9)
        seconds="0"+seconds
    //myclock = Digital.toLocaleString();
    myclock = year+"-"+month+"-"+day+" "+hours+":"+minutes;
    if( bSec )
        myclock = myclock + ":"+seconds;

    if (document.getElementById)
        document.getElementById("liveclock").innerHTML=myclock
    else if (document.layers)
    {
        document.layers.liveclock.document.write(myclock)
        document.layers.liveclock.document.close()
    }
    else if (document.all)
        liveclock.innerHTML=myclock

    if( liveclock.style.visibility != "visible" )
        liveclock.style.visibility = "visible";

    setTimeout("ShowClock("+_ampm+","+bSec+","+nDelay+")",nDelay*1000)
}
//-->
