onclick="attiva(this);"

function attiva(ck){
document.nomeForm.testo.disabled=!ck.checked;
}