rem: if(currentWindow == null) { return getContentWindow().document; } else { commandStr = "getContentWindow().window." + currentWindow + ".document"; return eval(commandStr); 
add: if(currentDocument == null) { var testWindow = getContentWindow(); if (currentWindowName != null) { commandStr = "getContentWindow().window." + currentWindowName; testWindow = eval(commandStr); } modifyWindow(testWindow); currentDocument = testWindow.document; 
context: function getDoc(){    if(currentWindow == null) {        return getContentWindow().document;    } else {        commandStr = "getContentWindow().window." + currentWindow + ".document";        return eval(commandStr);    }}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/a571d0ab29c9c650dde37a79dcc38968ddf4302c/selenium-browserbot.js/buggy/javascript/selenium-browserbot.js