browserBot.modalDialogTest = null; 
    windowToModify.showModalDialog = function(url, args, features) {        // Get relative directory to where TestRunner.html lives        // A risky assumption is that the user's TestRunner is named TestRunner.html        var doc_location = document.location.toString();        var end_of_base_ref = doc_location.indexOf('TestRunner.html');        var base_ref = doc_location.substring(0, end_of_base_ref);        var runInterval = '';                // Only set run interval if options is defined        if (typeof(window.runOptions) != undefined) {            runInterval = "&runInterval=" + runOptions.runInterval;        }                // Needs to be changed        var modalDialogTest = null;                    var testRunnerURL = "TestRunner.html?auto=true&singletest="             + escape(modalDialogTest)             + "&autoURL="             + escape(url)             + runInterval;        var fullURL = base_ref + testRunnerURL;        // If using proxy injection mode        if (this.proxyInjectionMode) {            var sessionId = runOptions.getSessionId();            if (sessionId == undefined) {                sessionId = injectedSessionId;            }            if (sessionId != undefined) {                LOG.debug("Invoking showModalDialog and injecting URL " + fullURL);            }            fullURL = url;        }        var returnValue = oldShowModalDialog(fullURL, args, features);        return returnValue;    };
4983	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4983/e7aea539d9a1b8ac44181461e39fbec2aac74881/selenium-browserbot.js/buggy/src/main/resources/core/scripts/selenium-browserbot.js