add: for (var el in tolock){ var formelement = form[el]; formelement.disabled = tolock[el]; } 
context: function lockoptionsall(formid) {    var form = document.forms[formid];    var dependons = eval(formid+'items');    for (var dependon in dependons) {        var master = form[dependon];        for (var condition in dependons[dependon]) {            for (var value in dependons[dependon][condition]) {                var lock;                switch (condition) {                  case 'notchecked':                      lock = !master.checked; break;                  case 'checked':                      lock = master.checked; break;                  case 'noitemselected':                      lock = master.selectedIndex==-1; break;                  case 'eq':                      lock = master.value==value; break;                  default:                      lock = master.value!=value; break;                }                for (var ei in dependons[dependon][condition][value]) {                    var formelement = form[dependons[dependon][condition][value][ei]];                    formelement.disabled = lock;                }            }        }    }    return true;}
meta: 2641	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2641/632b88d5a27542acc4019e9d884426dbfb4e01bb/javascript-static.js/buggy/lib/javascript-static.js