rem: var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval; 
add:   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 fullURL = base_ref + "TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval; 
context:         window.showModalDialog = function(url, args, features) {            var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval;            browserBot.modalDialogTest = null;            var returnValue = oldShowModalDialog(fullURL, args, features);            //window.open(fullURL);            //alert(returnValue);            return returnValue;        };
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/5154a03212c702af5ce91bddf4cd77f43559ece2/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js