rem: { var menupopup = document.getElementById('abPopup-menupopup');  if ( selectedAB && menupopup && menupopup.childNodes ) { for ( var index = menupopup.childNodes.length - 1; index >= 0; index-- ) { if ( menupopup.childNodes[index].getAttribute('value') == selectedAB ) { abPopup.label = menupopup.childNodes[index].getAttribute('label'); abPopup.value = menupopup.childNodes[index].getAttribute('value'); break; } } } } 
add: abPopup.value = selectedAB; 
context: function SelectDirectory(aURI) {  var selectedAB = aURI;  if (!selectedAB)    selectedAB = kPersonalAddressbookURI;  // set popup with address book names  var abPopup = document.getElementById('abPopup');  if ( abPopup )  {    var menupopup = document.getElementById('abPopup-menupopup');    if ( selectedAB && menupopup && menupopup.childNodes )    {      for ( var index = menupopup.childNodes.length - 1; index >= 0; index-- )      {        if ( menupopup.childNodes[index].getAttribute('value') == selectedAB )        {          abPopup.label = menupopup.childNodes[index].getAttribute('label');          abPopup.value = menupopup.childNodes[index].getAttribute('value');          break;        }      }    }  }  setSearchScope(GetScopeForDirectoryURI(selectedAB));}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/8792be5aaa583e21669c83814028fc9b5a34e35c/ABSearchDialog.js/buggy/mailnews/base/search/resources/content/ABSearchDialog.js