document.forms[nomeForm].elements[nomeField].disabled = !check
etc

ciao