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; } } } } 
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: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/8792be5aaa583e21669c83814028fc9b5a34e35c/abContactsPanel.js/buggy/mail/components/addrbook/content/abContactsPanel.js