I am writing user extensions to selenium. I have the document object. How can I get the window object of the window that contains my document?
PageBot.prototype.locateElementByMyLocator= function(text, inDocument) {
// I want the window here
}