diff -ru footnotes/footnotes_wysiwyg/tinymce_plugin/editor_plugin.js footnotes-patched//footnotes_wysiwyg/tinymce_plugin/editor_plugin.js
--- footnotes/footnotes_wysiwyg/tinymce_plugin/editor_plugin.js	2011-02-25 05:36:53.000000000 +0330
+++ footnotes-patched//footnotes_wysiwyg/tinymce_plugin/editor_plugin.js	2011-07-09 14:48:16.122079430 +0430
@@ -21,9 +21,11 @@
       ed.addCommand('Footnotes', function() {
         ed.windowManager.open({
           file : url + '/footnote.htm',
-          width : 400,
-          height : 300,
+          width : 370,
+          height : 200,
           inline : 1
+        }, {
+          window: window,
         });
       });
 
diff -ru footnotes/footnotes_wysiwyg/tinymce_plugin/footnote.htm footnotes-patched//footnotes_wysiwyg/tinymce_plugin/footnote.htm
--- footnotes/footnotes_wysiwyg/tinymce_plugin/footnote.htm	2011-02-25 05:36:53.000000000 +0330
+++ footnotes-patched//footnotes_wysiwyg/tinymce_plugin/footnote.htm	2011-07-09 14:47:33.782079414 +0430
@@ -22,7 +22,7 @@
   // This uses Drupal translation strings, NOT the TinyMCE facilities
   // The Drupal object doesn't exist here, we have to fetch it from the opening browser 
   // window, which is a Drupal generated page.
-  document.write('<h3>'+window.opener.Drupal.t('Enter footnote :')+'</h3>'); 
+  document.write('<h3>'+tinyMCEPopup.getWindowArg("window").Drupal.t('Enter footnote :')+'</h3>'); 
 -->
 </script>
 		<textarea id="fntext" name="fntext" class="mceFocus" cols="15" rows="10"></textarea>
@@ -36,7 +36,7 @@
                 <div style="float: left">
 <script type="text/javascript">
 <!-- 
-  document.write('<input type="submit" id="insert" name="insert" value="'+window.opener.Drupal.t('Insert')+'" />'); 
+  document.write('<input type="submit" id="insert" name="insert" value="'+tinyMCEPopup.getWindowArg("window").Drupal.t('Insert')+'" />'); 
 -->
 </script>
                 </div>
@@ -44,7 +44,7 @@
                 <div style="float: right">
 <script type="text/javascript">
 <!-- 
-  document.write('<input type="button" id="cancel" name="cancel" value="'+window.opener.Drupal.t('Cancel')+'" onclick="tinyMCEPopup.close();" />'); 
+  document.write('<input type="button" id="cancel" name="cancel" value="'+tinyMCEPopup.getWindowArg("window").Drupal.t('Cancel')+'" onclick="tinyMCEPopup.close();" />'); 
 -->
 </script>
                 </div>
