<input type="checkbox" onclick = "document.forms['nombreFormulario']['nombreCaja'].disabled = !this.checked" />