rem: var Listbox = document.getElementById("attachmentBucket"); 
add: var attachmentListbox = document.getElementById("attachmentBucket"); var SelectedItem = attachmentListbox.selectedItem; 
context: function removeSelectedAttachment(){   var Listbox = document.getElementById("attachmentBucket");   var SelectedItem = Listbox.selectedItem;   if(SelectedItem)      Listbox.removeChild(SelectedItem);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6dbfd3c82c9a9483216065b0d5dde2a1b40a4fae/eventDialog.js/clean/calendar/resources/content/eventDialog.js