rem: changeProduct(); 
add: changeProduct(''); 
context: function populateTestRun(data) {  test_run=data;  document.getElementById('editform_test_run_id').value = test_run.test_run_id;  document.getElementById('test_run_id_display').innerHTML = test_run.test_run_id;  document.getElementById('name').value = test_run.name;  document.getElementById('name_text').innerHTML = test_run.name;  document.getElementById('description').value = test_run.description;  if (test_run.description != '') {      document.getElementById('desc_text').innerHTML = test_run.description;  } else {    document.getElementById('desc_text').innerHTML = '<em>No description provided.</em>';  }  document.getElementById('start_timestamp').value = test_run.start_timestamp.replace(/-| |:/g, "");  document.getElementById('start_timestamp_text').innerHTML = test_run.start_timestamp;  document.getElementById('finish_timestamp').value = test_run.finish_timestamp.replace(/-| |:/g, "");    document.getElementById('finish_timestamp_text').innerHTML = test_run.finish_timestamp;  var productBox = document.getElementById('product');  var found_product = setSelected(productBox,test_run.product_id.product_id);  if (found_product) {    for (var i=0; i<products.length; i++) {      if (test_run.product_id.product_id == products[i].product_id) {        document.getElementById('product_text').innerHTML = products[i].name;        continue;      }    }  }  changeProduct();  var branchBox = document.getElementById('branch');  populateBranches(branchBox,productBox);  var found_branch = setSelected(branchBox,test_run.branch_id.branch_id);  if (found_branch == 1) {    for (var i=0; i<branches.length; i++) {      if (test_run.branch_id.branch_id == branches[i].branch_id) {        document.getElementById('branch_text').innerHTML = branches[i].name;        continue;      }    }  } else {    document.getElementById('branch_text').innerHTML = '<em>No branch set for this Test Run.</em>';  }  populateAllTestgroups();  var selectBoxTestgroups = document.getElementById('test_run_testgroups');  selectBoxTestgroups.options.length = 0;  for (var i=0; i<test_run.testgroups.length; i++) {    var optionText = test_run.testgroups[i].name + ' (' + test_run.testgroups[i].testgroup_id + ')';    selectBoxTestgroups.options[selectBoxTestgroups.length] = new Option(optionText,                                                     test_run.testgroups[i].testgroup_id);  }  setAuthor(test_run.author_id.user_id);  var enabled_em = document.getElementById('enabled');  var enabled_display_em = document.getElementById('enabled_display');  if (test_run.enabled == 1) {    enabled_em.checked = true;    enabled_display_em.checked = true;  } else {    enabled_em.checked = false;    enabled_display_em.checked = false;  }  var recommended_em = document.getElementById('recommended')  var recommended_display_em = document.getElementById('recommended_display')  if (test_run.recommended == 1) {    recommended_em.checked = true;    recommended_display_em.checked = true;  } else {    recommended_em.checked = false;    recommended_display_em.checked = false;  }  document.getElementById('creation_date').innerHTML = test_run.creation_date;  document.getElementById('last_updated').innerHTML = test_run.last_updated;  document.getElementById('version').innerHTML = test_run.version;  resetTable('tblNewCriteria');  if (!test_run.criteria ||      test_run.criteria.length == 0) {        addRowToTable('tblNewCriteria');  } else {    for (var i=0; i<test_run.criteria.length; i++) {      addRowToTable('tblNewCriteria',                     test_run.criteria[i].build_id,                     test_run.criteria[i].platform_id,                     test_run.criteria[i].opsys_id                   );    }  }    document.getElementById('editform_div').style.display = 'none';  document.getElementById('test_run_display_div').style.display = 'block';    enableModeButtons();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/07658fa91da4748712929f7644fdb027472f39d9/ManageTestRuns.js/buggy/webtools/litmus/js/ManageTestRuns.js