Hi, there is an error in this program. i can't get it right.
CODE
<html>
<head>
<script LANGUAGE="JAVASCRIPT">
<!--Hide from old browser
function curTime(){
var now= new Date()
var day = now.getDay()
var date = now.getDate()
var year = now.getFullYear()
var month = now.getMonth()
var hours = now.getHours()
var minutes = now.getMinutes()
var seconds = now.getSeconds()
var days = new Array()
days[0] = "Sunday"; days[1] = "Monday"; days[2] = "Tuesday"; days[3] = "Wednesday"; days[4] = "Thursday";
days[5] = "Friday"; days[6] = "Saturday"
display = days[day] + " "+ month + "/" + date + "/"
+ year +" "+ hours + ":" + minutes + ":" + seconds
<document.days[0].readout.value = display;><!--This line is causing an error-->
}
var tick = setInterval("curTime()", 1000)
//-->
</script>
<title>Time</title>
</head>
<body>
<form.action="">
<p><input type="text" size="30" name="readout" /></p>
</form>
</body>
</html>