rem: var link = e.target.parentNode; 
add: var link = e.target; while(!Element.hasClassName(link,"advancedLink")) link = link.parentNode; 
context:         makeButton(e,function(e) {            var link = e.target.parentNode;            link.style.display = "none"; // hide the button            var container = link.nextSibling.firstChild; // TABLE -> TBODY            var tr = link;            while (tr.tagName != "TR")                tr = tr.parentNode;            // move the contents of the advanced portion into the main table            while (container.lastChild != null)                tr.parentNode.insertBefore(container.lastChild, tr.nextSibling);        });
meta: 3881	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3881/1a0127eb6f5cef7781d49647a5562e17d94a6875/hudson-behavior.js/buggy/war/resources/scripts/hudson-behavior.js