rem:  var prefInterface;  
context: function Startup(){  var prefInterface;    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  {    prefInterface =    Components.classes["@mozilla.org/preferences;1"].                       getService(Components.interfaces.nsIPref);    defaultLanguage =  prefInterface.                       getLocalizedUnicharPref("general.useragent.locale");    defaultRegion =   prefInterface.                       getLocalizedUnicharPref("general.useragent.contentlocale");  }  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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0f0b15a12e4f17f2a77c97de8665fb0e9a391e19/selectLang.js/clean/profile/resources/content/selectLang.js