add:  return currentDocument; 
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