<html>
<head>
<title>Java Script Time</title>
<script language="JavaScript">
<!--
var tick;
function stop() {
clearTimeout(tick);
}
function usnotime() {
var ut=new Date();
var d,mo,y;
var h,m,s;
var ms;
var q="AM";
var date;
var time;
y=ut.getYear();
mo=ut.getMonth();
d=ut.getDate();
h=ut.getHours();
m=ut.getMinutes();
s=ut.getSeconds();
ms=ut.getTime();
mo++;
if(mo<=9) mo=" "+mo;
if(d<=9) d="0"+d;
if(y< 80) y+=2000;
if(y<=99) y+=1900;
date=" "+mo+"/"+d+"/"+y+" ";
if(h>=12) q="PM";
if(h>=13) h-=12;
if(s<=9) s="0"+s;
if(m<=9) m="0"+m;
if(h<=9) h=" "+h;
time=" "+h+":"+m+":"+s+" "+q+" ";
ms=ms+" ";
document.rclock.rdate.value=date;
document.rclock.rtime.value=time;
// document.rclock.rmill.value=ms;
tick=setTimeout("usnotime()",1000);
}
//-->
</script>
</head>
<BODY onload="usnotime()" onunload="stop()">
<form name="rclock">
<input type="text" name="rdate" value=" " size="14">
<input type="text" name="rtime" value=" " size="14">
<!-- br -->
<!-- input type="text" name="rmill" value=" " size="14") Milliseconds since 1/01/1970 -->
</form>
</body>
</html>