It works in firefox and displays 30 seconds, but when I try it in IE7, the countdown starts at 9 seconds no matter what.
<script language="JavaScript" type="text/javascript">
var x = 31
var y = 1
function startClock(){
if(x!=='Done'){
x = x-y
document.frm.clock.value = x
setTimeout("startClock()", 1000)
}
if(x==0){
x='Done'
document.frm.clock.value = x
success.location.href="success.php?ad="+document.frm.id.value+"&verify="+document.frm.verify.value
}}
</script>
</head>
<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" onLoad="startClock()">