if (document.all||document.getElementById)
document.write('<span id="clock" style="font:bold 16px Arial;"></span><br>')

function Clock()
{
  now=new Date();
  secs=now.getSeconds();
  sec=-1.57+Math.PI*secs/30;
  mins=now.getMinutes();
  min=-1.57+Math.PI*mins/30;
  hr=now.getHours();
  hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360;
  if (hr < 0) hr+=24;
  if (hr > 23) hr-=24;

  hr2 = hr;
  if (hr2<10) hr2="0"+hr2

  var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs);

  if (document.all)
  clock.innerHTML=finaltime
  else if (document.getElementById)
  document.getElementById("clock").innerHTML=finaltime
  else if (document.layers)
  {
    document.clockns.document.clockns2.document.write(finaltime)
    document.clockns.document.clockns2.document.close()
  }

  setTimeout('Clock()',1000);
}

window.onload=Clock

