rem: var varname = formid.replace(/\-/g, '_'); var items = eval(varname+'items'); 
add: var items = eval(formid+'items'); 
context: function lockoptionsall(formid) {  var lock = new Object();  var varname = formid.replace(/\-/g, '_');  var items = eval(varname+'items');  var form = document.forms[formid];  for (var master in items){      var subitems=items[master].dependents;      var thislock;      if (items[master].condition=='notchecked'){          thislock=!form.elements[master].checked;      } else if (items[master].condition=='checked'){          thislock=form.elements[master].checked;      } else if  (items[master].condition=='noitemselected'){          thislock=(form.elements[master].selectedIndex==-1);      } else if  (items[master].condition=='eq'){          thislock=(form.elements[master].value==items[master].value);      } else {          thislock=(form.elements[master].value!=items[master].value);      }      for (var i=0; i<subitems.length; i++) {        if (lock[subitems[i]]!=null){          lock[subitems[i]] = thislock || lock[subitems[i]];        }else{          lock[subitems[i]] = thislock;        }      }      for (var item in lock) {          form.elements[item].disabled=lock[item];      }  }  return(true);}
meta: 2641	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2641/271ffe3f254ef814fd79a133c7fedf5fb600468e/javascript-static.js/buggy/lib/javascript-static.js