rem: var apChild=document.getElementById('attachmentPopup').cloneNode(true); if (!apChild) return false; apChild.removeAttribute('popupanchor'); apChild.removeAttribute('popupalign'); var amParent=document.getElementById('fileAttachmentMenu'); if (!amParent) return false; if (apChild.childNodes.length){ if ( amParent.childNodes.length ) amParent.removeChild(amParent.childNodes[0]); amParent.appendChild(apChild); amParent.removeAttribute('hidden'); } else amParent.setAttribute('hidden',true); return true; 
add: var numAttachments = GetNumberOfAttachmentsForDisplayedMessage(); var amParent=document.getElementById('fileAttachmentMenu'); if (!amParent) return false;   if (numAttachments > 0) { amParent.removeAttribute('hidden'); } else amParent.setAttribute('hidden',true); return true; 
context: function file_attachments(){    var apChild=document.getElementById('attachmentPopup').cloneNode(true);    if (!apChild)        return false;    apChild.removeAttribute('popupanchor');    apChild.removeAttribute('popupalign');    var amParent=document.getElementById('fileAttachmentMenu');    if (!amParent)        return false;    if (apChild.childNodes.length){        if ( amParent.childNodes.length )            amParent.removeChild(amParent.childNodes[0]);        amParent.appendChild(apChild);        amParent.removeAttribute('hidden');    }    else        amParent.setAttribute('hidden',true);    return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cada7ef85c5170e6a5b18503f7639df5d700b7b7/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js