rem: var productBox = document.getElementById('product'); var branchBox = document.getElementById('editform_branches'); 
add: var productBox = document.getElementById('editform_product'); var branchBox = document.getElementById('editform_branch'); 
context: function populateAllSubgroups() {  toggleMessage('loading','Narrowing Subgroup List...');  try {    var productBox = document.getElementById('product');    var branchBox = document.getElementById('editform_branches');    var selectBoxAll = document.getElementById('editform_subgroups_for_product');    selectBoxAll.options.length = 0;     for (var i in subgroups) {      if (subgroups[i].product_id != productBox.options[productBox.selectedIndex].value) {        continue;      }            if (branchBox.selectedIndex >= 0) {        var found_branch = 0;        for (var j=0; j<branchBox.options.length; j++) {          if (branchBox.options[j].value == '' ||              branchBox.options[j].selected == false) {            continue;          }          if (subgroups[i].branch_id == branchBox.options[j].value) {            found_branch = 1;          }         }        if (branchBox.options[branchBox.selectedIndex].value != '' &&            found_branch == 0) {          continue;        }      }            var optionText = subgroups[i].name + ' (' + subgroups[i].subgroup_id + ')';       selectBoxAll.options[selectBoxAll.length] = new Option(optionText,                                                             subgroups[i].subgroup_id);    }    if (selectBoxAll.options.length == 0) {      selectBoxAll.options[selectBoxAll.length] = new Option('-No Subgroups for this Product/Branch-','');    }  } catch (e) {    // And do what exactly?  }  toggleMessage('none');}  
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a0b5af87db22d92aa3a269050a03ff2e29943809/ManageTestgroups.js/clean/webtools/litmus/js/ManageTestgroups.js