improved it a bit:
Code:
<script>
secs = 10; // Number of secs to delay
wait = secs * 1000;
document.forms.register.Submit.disabled =true;
for(i=1;i<=(wait/1000);i++) {
window.setTimeout("doUpdate(" + i + ")", i * 1000);
}
window.setTimeout("Timer()", wait);
function doUpdate(num) {
if(num == (wait/1000)) {
document.forms.register.Submit.value = "Agree";
} else {
wut = (wait/1000)-num;
document.forms.register.Submit.value = "Agree (" + wut + ")";
}
}
function Timer() {
document.forms.register.Submit.disabled =false;
}
</script>
now it will show the user how much time is left by changing the value of the button.