<html>
<head>
<title>Prova</title>
<script>
function problema(){
document.form.modulo.Submit.disabled=true;
}
</script>
<script language="JavaScript">
<!--
var checkobj
function accetta(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}
function disabilita(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Messaggio!")
return false
}
}
}
-->
</script>
</head>
<body>
<form name=modulo method="post" action="azione.php" onSubmit="disabilita(this); return false">
<input name=testo type="text" size="16">
<input name="chekka" type="checkbox" onClick="accetta(this)">
Accetto
<input type=submit value="Invia!" name="Submit" disabled onClick ="document.modulo.submit()">
<input type=reset value="Reset" name="reset" onClick ="javascript
:problema();">
</form>
</body>
</html>