function theclock(){
if (!document.layers&&!document.all)
return
Digital=new Date()
hours=Digital.getHours()
minutes=Digital.getMinutes()
seconds=Digital.getSeconds()
dn="AM"
if (hours>12){
dn="PM"
hours=hours-12
}
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
if (seconds<=9)
seconds="0"+seconds

goclock=""+hours+":"+minutes+":"
+seconds+" "+dn+""
if (document.layers){
document.layers.dynamicclock.document.write(goclock)
document.layers.dynamicclock.document.close()
}
else if (document.all)
dynamicclock.innerHTML=goclock
setTimeout("theclock()",1000)
}
