rem: for (var item = active_charsets_treeroot.firstChild; item != null; item = item.nextSibling) {  var row  =  item.firstChild; var cell =  row.firstChild; var active_charsetid = cell.getAttribute('id');  if (active_charsetid == charsetid) { 
add: for (var item = active_charsets.firstChild; item != null; item = item.nextSibling) { if (charsetid == item.id) { 
context: function AddAvailableCharset(){  var active_charsets = document.getElementById('active_charsets');  var active_charsets_treeroot = document.getElementById('active_charsets_root');  var available_charsets = document.getElementById('available_charsets');  for (var nodeIndex=0; nodeIndex < available_charsets.selectedItems.length;  nodeIndex++)  {    var selItem =  available_charsets.selectedItems[nodeIndex];    var selRow  =  selItem.firstChild;    var selCell =  selRow.firstChild;    var charsetname  = selCell.getAttribute('label');    var charsetid = selCell.getAttribute('id');    var already_active = false;    for (var item = active_charsets_treeroot.firstChild; item != null; item = item.nextSibling) {      var row  =  item.firstChild;      var cell =  row.firstChild;      var active_charsetid = cell.getAttribute('id');      if (active_charsetid == charsetid)      {        already_active = true;        break;      }//if    }//for    if (already_active == false) {      AddTreeItem(document, active_charsets_treeroot, charsetid, charsetname);    }//if  }//for  available_charsets.clearSelection();  enable_save();} //AddAvailableCharset
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