To use the disable javascript option use element.disabled=true;.
For example if there is a text box called "box" in a form called "form", simply call document.form.box.disabled=true; and the box will be disabled.