rem: var available_charsets = document.getElementById('available_charsets'); var available_charsets_treeroot = document.getElementById('available_charsets_root'); 
add: var available_charsets = document.getElementById('available_charsets'); var available_charsets_treeroot = document.getElementById('available_charsets_root'); 
context: function LoadAvailableCharSets(){  var available_charsets = document.getElementById('available_charsets');   var available_charsets_treeroot = document.getElementById('available_charsets_root');   var atom;  var i;  var str;  var tit;  var visible;  if (availCharsetList) {    for (i = 0; i < availCharsetList.Count(); i++) {      atom = availCharsetList.GetElementAt(i);      atom = atom.QueryInterface(Components.interfaces.nsIAtom);      if (atom) {        str = atom.GetUnicode();        try {          tit = ccm.GetCharsetTitle(atom);        } catch (ex) {          //don't ignore charset detectors without a title          tit = str;        }        try {                                            visible = ccm.GetCharsetData(atom,'.notForBrowser');          visible = false;        } catch (ex) {          visible = true;        }      } //atom      if (str && tit) {        availCharsetDict[i] = new Array(2);        availCharsetDict[i][0] = tit;        availCharsetDict[i][1] = str;        availCharsetDict[i][2] = visible;      }    }  }  availCharsetDict.sort();  if (availCharsetDict) {    for (i = 0; i < availCharsetDict.length; i++) {      if (availCharsetDict[i][2]) {        AddTreeItem(document,                     available_charsets_treeroot,                     availCharsetDict[i][1],                     availCharsetDict[i][0]);      } //if visible    }  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/476f40a9ffe840661db8a7547c416a58355c9cd7/pref-charset.js/clean/suite/common/pref/pref-charset.js