rem:  var defaultRegion; var regionList = document.getElementById("regionList"); var selectedRegion = window.arguments.length ? window.arguments[1] : null; 
context: function Startup(){  var defaultLanguage;  var languageList = document.getElementById("langList");  var selectedLanguage = window.arguments.length ? window.arguments[0] : null;    var defaultRegion;  var regionList = document.getElementById("regionList");  var selectedRegion = window.arguments.length ? window.arguments[1] : null;  //get pref defaults  try  {    const nsIPrefLocalizedString = Components.interfaces.nsIPrefLocalizedString;    var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]                               .getService(Components.interfaces.nsIPrefService)                               .getBranch("general.useragent.");    defaultLanguage = prefBranch.getComplexValue("locale", nsIPrefLocalizedString).data;    defaultRegion = prefBranch.getComplexValue("contentlocale", nsIPrefLocalizedString).data;  }  catch(e)   {}  //persist previous user selection, highlight a default otherwise  if (!SelectListItem(languageList, selectedLanguage))    if (!SelectListItem(languageList, defaultLanguage))      languageList.selectedIndex = 0;  //persist previous user selection, highlight a default otherwise  if (!SelectListItem(regionList, selectedRegion))    if (!SelectListItem(regionList, defaultRegion))      regionList.selectedIndex = 1;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/67d8888615e1218e54dde4db35c2cc71115d2112/selectLang.js/clean/profile/resources/content/selectLang.js