rem: var branchBox = document.getElementById('editform_branches'); 
add: var branchBox = document.getElementById('editform_branch'); 
context: function populateBranches(productBox) {  var branchBox = document.getElementById('editform_branches');   branchBox.options.length = 0;    var productId = productBox.options[productBox.selectedIndex].value;  var product = getProductById(productId);  if (!product) {    // no product set    var option = new Option('-No product selected-','');    branchBox.add(option, null);    return;  }  var option = new Option('-Branch-','');  branchBox.add(option, null);  var branches = product['branches'];  for (var i=0; i<branches.length; i++) {    var option = new Option(branches[i].name,branches[i].id);    option.selected = false;    if (testgroup.product_id && productId == testgroup.product_id.product_id) {      for (var j=0; j<testgroup.branches.length; j++) {        if (option.value == testgroup.branches[j].branch_id) {          option.selected = true;        }      }    }    branchBox.add(option, null);  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/a0b5af87db22d92aa3a269050a03ff2e29943809/ManageTestgroups.js/buggy/webtools/litmus/js/ManageTestgroups.js