nsresult GetDOMWindow( nsIXULWindow* inWindow, nsCOMPtr< nsIDOMWindowInternal>& outDOMWindow)
GetDOMWindow( nsIXULWindow* inWindow, nsCOMPtr< nsIDOMWindowInternal>& outDOMWindow)
nsresult GetDOMWindow( nsIXULWindow* inWindow, nsCOMPtr< nsIDOMWindowInternal>& outDOMWindow){	nsCOMPtr<nsIDocShell> docShell;	inWindow->GetDocShell(getter_AddRefs(docShell));   outDOMWindow = do_GetInterface(docShell);   return outDOMWindow ? NS_OK : NS_ERROR_FAILURE;}