rem: var elements = list.getElementsByAttribute("value", selectedRegion); 
add: elements = list.getElementsByAttribute("value", selectedRegion); 
context: function Startup(){  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 {      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;  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/b6ef1e80d1d6e35666cba757919a642b43f324c7/selectLang.js/clean/profile/resources/content/selectLang.js