var modules = getNeededElementsFromList(container.childNodes, "moduleContainer"); 
var modules = getNeededElementsFromList(container.childNodes, 'moduleContainer'); 
function addSelectedModuleCallback(component, id) {	closeLoadingMessage();	if (component == null) {		reloadPageAfterAddingModule();		return;	}	var container = document.getElementById(id);	if (container == null) {		reloadPageAfterAddingModule();		return;	}	var children = component.childNodes;	if (children == null) {		reloadPageAfterAddingModule();		return;	}	if (children.length == 0) {		reloadPageAfterAddingModule();		return;	}	// Making copy	var allNodes = getTransformedDocumentToDom(component);		// Finding place where to put new module	var elementToInsertBefore = null;	var modules = getNeededElementsFromList(container.childNodes, "moduleContainer");	if (modules == null) {		reloadPageAfterAddingModule();		return;	}	if (modules.length == 0) {		elementToInsertBefore = container.firstChild;	}	else {		var lastModule = modules[modules.length - 1];		var elementAfterLastModule = lastModule.nextSibling;	// The proper place - after the last module container		if (elementAfterLastModule == null) {			elementToInsertBefore = container.lastChild;		}		else {			elementToInsertBefore = elementAfterLastModule;		}	}		// Inserting nodes	var activeNode = null;	var realNode = null;	for (var i = 0; i < allNodes.length; i++) {		activeNode = allNodes[allNodes.length - (i + 1)];		realNode = createRealNode(activeNode);		container.insertBefore(realNode, elementToInsertBefore);		elementToInsertBefore = realNode;	}		registerBuilderActions();	// Need to re-register actions		MOOdalBox.close();}
7496	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7496/d7b2447bf60e05f03ce8b187398a6f1178328344/BuilderHelper.js/clean/resources/javascript/BuilderHelper.js