scritta così non funziona...

Function (agree)
if(document.form1.agree.checked){
alert("cliccata")
}
End Function