function IFrameTransactionalLoad() { lcDiv=document.getElementById('DIVTransactional') // If we already have a child if (lcDiv.hasChildNodes()) { // For each child node for (var i=0; i<lcDiv.childNodes.length; i++) { var child=lcDiv.childNodes[i]; // If this is an element node if (child.nodeType==1) { // If this is the script node if (child.nodeName=="script") { lcDiv.removeChild(child) break } } } } }