var padma={ openAnnot:function() { window.open("chrome://speedtrans/content/transcribe.html"); /* window.open("chrome://speedtrans/content/transcribe.html", "annot", "chrome,centerscreen,resizable=yes,toolbar=no,menubar=no"); */ } } function getMainWindow() { return window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) .QueryInterface(Components.interfaces.nsIDocShellTreeItem) .rootTreeItem .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindow); }