function toggleField(aField, aCheckbox) { var field = document.getElementById(aField); var check = document.getElementById(aCheckbox); if (check.checked) field.setAttribute("disabled", "true"); else field.removeAttribute("disabled"); } &none.label; &numberoflines.label; &sysdefault.label; &pageup.label; &history.label; &control.label; &numberoflines.label; &sysdefault.label; &pageup.label; &history.label; &shift.label; &numberoflines.label; &sysdefault.label; &pageup.label; &history.label; &alt.label; &numberoflines.label; &sysdefault.label; &pageup.label; &history.label;