function runClock() {
	theTime = window.setTimeout("runClock()", 1000);
	d = new Date();
	hr = d.getHours();
	min = d.getMinutes();
	sec = d.getSeconds();
	
	if(min <= 9) {
		min="0"+min
	}
	
	if(sec <= 9) {
		sec="0"+sec
	}
	document.form.clock.value=""+hr+":"+min+":"+sec+"";
}
runClock();