function NodeRemover(rootNode){this.removePtr=rootNode;this.delayedRemove=function(){var thisObj=this;window.setTimeout(function(){thisObj.removeChildren()},100);};this.removeChildren=function(){if(this.removePtr!=null){var root=this.removePtr;for(var i=root.childNodes.length-1;i>=0;i--){var cur=root.childNodes[i];var newRemover=new NodeRemover(cur);newRemover.delayedRemove();if(cur.nodeType==1){if(cur.tagName&&cur.tagName=='IFRAME'){cur.src="";}else root.removeChild(cur);}}}};this.removeRoot=function(){if(this.removePtr){var parent=this.removePtr.parentNode;parent.removeChild(this.removePtr);}}}