rem: var testWindowElement = document.getElementById(elementIdArray[i]); var zIndex = parseInt(testWindowElement.style.zIndex); if (!isNaN(zIndex) && zIndex >= raiseIndex) { if (elementIdArray[i] == elementId) { raiseIndex = zIndex; } else { 
add: if (elementIdArray[i] != elementId) { var testWindowElement = document.getElementById(elementIdArray[i]); var zIndex = parseInt(testWindowElement.style.zIndex); if (raiseIndex <= zIndex) { 
context: EchoWindowPane.ZIndexManager.raise = function(containerId, elementId) {    var windowElement = document.getElementById(elementId);    var elementIdArray = EchoWindowPane.ZIndexManager.containerIdToElementIdArrayMap.get(containerId);    if (!elementIdArray) {        throw new Error("Invalid container id.");    }    var raiseIndex = 0;        for (var i = 0; i < elementIdArray.length; ++i) {        var testWindowElement = document.getElementById(elementIdArray[i]);        var zIndex = parseInt(testWindowElement.style.zIndex);        if (!isNaN(zIndex) && zIndex >= raiseIndex) {            if (elementIdArray[i] == elementId) {                raiseIndex = zIndex;            } else {                raiseIndex = zIndex + 1;            }        }    }    windowElement.style.zIndex = raiseIndex;        return raiseIndex;};
meta: 498	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/498/fcf588a2fddd3effeebbd5496caf7d39659d82d1/WindowPane.js/clean/src/webcontainer/java/nextapp/echo2/webcontainer/resource/js/WindowPane.js