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