rem: var kids = document.getElementById("treechildren"); tree.selectItem(kids); 
add: tree.selectedIndex = 0; }  var selectedRegion = window.arguments.length ? window.arguments[1] : null; var list = document.getElementById("regionList"); if (selectedRegion) { var elements = list.getElementsByAttribute("value", selectedRegion); if (elements.length) list.selectedItem = elements[0]; } else { list.selectedIndex = 1; 
context: function Startup(){  doSetOKCancel(onOK);  var selectedLanguage = window.arguments.length ? window.arguments[0] : null;  var tree = document.getElementById("langList");  if (selectedLanguage) {    var elements = tree.getElementsByAttribute("value", selectedLanguage);    if (elements.length)      tree.selectItem(elements[0].parentNode.parentNode);  }  else {    var kids = document.getElementById("treechildren");    tree.selectItem(kids);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/20e936f715175febfa62054bf0f31dbfd2058681/selectLang.js/buggy/profile/resources/content/selectLang.js