add:   var list = document.getElementById("regionList"); var selectedItem = list.selectedItem; if (selectedItem) { var regionName = selectedItem.getAttribute("value"); var regionStore = opener.document.getElementById("ProfileRegion"); if (regionStore) regionStore.setAttribute("data", regionName); }  
context: function onOK(){  var tree = document.getElementById("langList");  var selectedItem = tree.selectedItems.length ? tree.selectedItems[0] : null;  if (selectedItem) {    var langName = selectedItem.firstChild.firstChild.getAttribute("value");    var langStore = opener.document.getElementById("ProfileLocale");    if (langStore)      langStore.setAttribute("data", langName);  }  window.close();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/65c67d4e3ace5d8a1423e0a6ff70896949252e42/selectLang.js/clean/profile/resources/content/selectLang.js