rem: var active_charsets_treeroot = document.getElementById('active_charsets_root'); 
context: function Save(){  // Iterate through the 'active charsets  tree to collect the charsets  // that the user has chosen.  var active_charsets = document.getElementById('active_charsets');  var active_charsets_treeroot = document.getElementById('active_charsets_root');  var row          = null;  var cell         = null;  var charsetid    = "";  var num_charsets = 0;  var pref_string_content = '';  for (var item = active_charsets_treeroot.firstChild; item != null; item = item.nextSibling) {    row  =  item.firstChild;    cell =  row.firstChild;    charsetid = cell.getAttribute('id');    if (charsetid.length > 1) {      num_charsets++;      //separate >1 charsets by commas      if (num_charsets > 1)        pref_string_content = pref_string_content + ", " + charsetid;      else        pref_string_content = charsetid;    }  }  try  {    if (prefInt) {      prefInt.SetCharPref(pref_string_title, pref_string_content);      window.close();    }  }  catch(ex) {    confirm('exception' + ex);  }  return true;} //Save
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1e2d5d9ba4147d5ea3cc58789a6ba7f2426d0695/pref-charset.js/clean/suite/common/pref/pref-charset.js