<SCRIPT LANGUAGE="javascript">

function RunningTime() {

var RightNow = new Date()

var ampm = RightNow.getHours()
if (ampm >= 12)
{nampm = "PM"}
else
{nampm = "AM"}

var hr = RightNow.getHours()
if(hr > 12)
{nhr = hr -12}
else
{nhr = hr}


if (hr == 0)
{nhr = "12"}
else
{nhr = nhr}

var min = RightNow.getMinutes()
if (min < 10)
{nmin = "0" +min}
else
{nmin = min}

var sec = RightNow.getSeconds() +1

if (sec < 10)
{nsec = "0" +sec}
else
{nsec = sec}

if (nsec >= 60)
{nnsec = "00"}
else
{nnsec = nsec}

var printIt = "Time: " +nhr+ ":" +nmin+ ":" +nnsec+ ":" +nampm

document.clock.clockface.value = printIt

var KeepItGoing=setTimeout("RunningTime()","1000")
}

</SCRIPT>


<FORM NAME="clock">
<INPUT TYPE="text" name="clockface">
<INPUT TYPE="button" VALUE="Get the Time" onClick="RunningTime()">
</FORM>