rem: var tree = document.getElementById('dirTree'); if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) selectedAB = tree.selectedItems[0].getAttribute('id'); 
add: if ( dirTree && dirTree.selectedItems && (dirTree.selectedItems.length == 1) ) selectedAB = dirTree.selectedItems[0].getAttribute('id'); 
context: function AbNewCard(){	var selectedAB = 0;	var tree = document.getElementById('dirTree');	if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) )		selectedAB = tree.selectedItems[0].getAttribute('id');			goNewCardDialog(selectedAB);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8cbc05398526fdb6ab4254df8d8119d5eb7115e0/abCommon.js/buggy/mailnews/addrbook/resources/content/abCommon.js