rem: } 
add: } 
context: function AddAvailableLanguage(){  var Languagename = new String();	var Languageid = new String();  //selected languages  for (var nodeIndex=0; nodeIndex < available_languages.selectedItems.length; nodeIndex++) {      var selItem =  available_languages.selectedItems[nodeIndex];    var selRow  =  selItem.firstChild;    var selCell =  selRow.firstChild;	  Languagename		= selCell.getAttribute('value');	  Languageid	    = selCell.getAttribute('id');        if (!LangAlreadyActive(Languageid)) {      AddTreeItem(window.opener.document, active_languages_treeroot, Languageid, Languagename);	  }//if  } //loop selected languages  //user-defined languages  var otherField = document.getElementById( "languages.other" );    if (otherField.value) {    /* reject bogus lang strings, INCLUDING those with HTTP "q"       values kludged on the end of them    */    if (!IsRFC1766LangTag(otherField.value)) {      window.alert(prefLangBundle.GetStringFromName("illegalOtherLanguage"));      return false;    }	      Languageid	    = otherField.value;    Languageid      = Languageid.toLowerCase();	  Languagename		= GetLanguageTitle(Languageid);    if (!Languagename)       Languagename = '[' + Languageid + ']';      if (!LangAlreadyActive(Languageid)) {      AddTreeItem(window.opener.document, active_languages_treeroot, Languageid, Languagename);	  }//if  }  available_languages.clearItemSelection();  return true;} //AddAvailableLanguage
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/pref-languages.js/buggy/xpfe/components/prefwindow/resources/content/pref-languages.js