rem: Wicket.replaceOuterHtml = function(element, text) { 
add: Wicket.replaceOuterHtml = function(element, text) { 
context: Wicket.replaceOuterHtml = function(element, text) {    if (element.outerHTML) { // internet explorer       var parent = element.parentNode;              // find out the element's index and next element (if any). we need to access       // newly created elements to execute theirs <script elements       var i;       var next = null;       for (i = 0; i < parent.childNodes.length; ++i) {       		if (parent.childNodes[i] == element) {       			if (i != parent.childNodes.length - 1) {       				next = parent.childNodes[i+1]       			}       			break;       			       		}       }       element.outerHTML=text;              for (var j = i; j < parent.childNodes.length && parent.childNodes[j] != next; ++j) {	       Wicket.Head.addJavascripts(parent.childNodes[j]);       	   }    } else {            	// create range and fragment        var range = element.ownerDocument.createRange();        range.selectNode(element);		var fragment = range.createContextualFragment(text);				// get the elements to be added		var elements = new Array();		for (var i = 0; i < fragment.childNodes.length; ++i)			elements.push(fragment.childNodes[i]);        element.parentNode.replaceChild(fragment, element);        		if (document.all != null) {			for (var i in elements) {				Wicket.Head.addJavascripts(elements[i]);			}		}    }		}	
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1204/acd276313f886956da9c939882b43dd7f37e093f/wicket-ajax.js/clean/wicket/src/java/wicket/ajax/wicket-ajax.js