rem: if ( abPopup ) { var menupopup = document.getElementById('addressbookList-menupopup'); var selectedAB = abPopup.getAttribute("selectedAB"); if (!selectedAB) selectedAB = kPersonalAddressbookURI;  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: var value = abPopup.value || kPersonalAddressbookURI; abPopup.selectedItem = null; abPopup.value = value; 
context: function LoadPreviouslySelectedAB(){  var abPopup = document.getElementById('addressbookList');  if ( abPopup )  {    var menupopup = document.getElementById('addressbookList-menupopup');    var selectedAB = abPopup.getAttribute("selectedAB");    if (!selectedAB)       selectedAB = kPersonalAddressbookURI;          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;        }      }    }  }  ChangeDirectoryByURI(abPopup.selectedItem.id);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d6d70f32347e9737b7d081bc0ee2abb71641101c/addressbook-panel.js/clean/mailnews/addrbook/resources/content/addressbook-panel.js