Index: /FCKeditor/trunk/editor/_source/classes/fckpanel.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckpanel.js	(revision 62)
+++ /FCKeditor/trunk/editor/_source/classes/fckpanel.js	(revision 63)
@@ -236,5 +236,5 @@
 FCKPanel.prototype.CreateChildPanel = function()
 {
-	var oWindow = this._Popup ? FCKTools.GetParentWindow( this.Document ) : this._Window ;
+	var oWindow = this._Popup ? FCKTools.GetDocumentWindow( this.Document ) : this._Window ;
 
 	var oChildPanel = new FCKPanel( oWindow, true ) ;
Index: /FCKeditor/trunk/editor/_source/internals/fcktools.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fcktools.js	(revision 62)
+++ /FCKeditor/trunk/editor/_source/internals/fcktools.js	(revision 63)
@@ -66,9 +66,4 @@
 	for ( var i = 0 ; i < targetWindow.frames.length ; i++ )
 		FCKTools.FixDocumentParentWindow( targetWindow.frames[i] ) ;
-}
-
-FCKTools.GetParentWindow = function( document )
-{
-	return document.contentWindow || document.parentWindow ;
 }
 
