rem:  var regionList = document.getElementById("regionList"); selectedItem = regionList.selectedItem;  if (selectedItem) { var regionName = selectedItem.getAttribute("value"); var regionStore = opener.document.getElementById("profileRegion");  if (regionStore) regionStore.setAttribute("data", regionName); }  
context: function onAccept(){  //cache language on the parent window  var languageList = document.getElementById("langList");  var selectedItem = languageList.selectedItems.length ? languageList.selectedItems[0] : null;  if (selectedItem) {    var langName = selectedItem.getAttribute("value");    var langStore = opener.document.getElementById("profileLanguage");    if (langStore)      langStore.setAttribute("data", langName);  }  //cache region on the parent window  var regionList = document.getElementById("regionList");  selectedItem = regionList.selectedItem;  if (selectedItem) {    var regionName = selectedItem.getAttribute("value");    var regionStore = opener.document.getElementById("profileRegion");    if (regionStore)      regionStore.setAttribute("data", regionName);  }  return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/67d8888615e1218e54dde4db35c2cc71115d2112/selectLang.js/clean/profile/resources/content/selectLang.js