rem: amParent.removeChild(amParent.childNodes[0]); 
add: amParent.removeChild(amParent.childNodes[0]); 
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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js