add: document.addEventListener("keypress", awDocumentKeyPress, true);  
context: function OnLoadNewMailList(){  //XXX: gAddressBookBundle is set in 2 places because of different callers  gAddressBookBundle = document.getElementById("bundle_addressBook");  var selectedAB = null;  if (window.arguments && window.arguments[0])  {    var abURI = window.arguments[0].selectedAB;    if (abURI) {      var directory = GetDirectoryFromURI(abURI);      if (directory.isMailList) {        var parentURI = GetParentDirectoryFromMailingListURI(abURI);        if (parentURI) {          selectedAB = parentURI;        }  }      else if (!(directory.operations & directory.opWrite)) {        selectedAB = kPersonalAddressbookURI;              }            else {        selectedAB = abURI;      }    }  }    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;        }      }    }  }  AppendNewRowAndSetFocus();  awFitDummyRows(1);  // focus on first name  var listName = document.getElementById('ListName');  if ( listName )    listName.focus();  moveToAlertPosition();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c95c2ea31df315dded83c9753eadfc13cd771f51/abMailListDialog.js/clean/mailnews/addrbook/resources/content/abMailListDialog.js