Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js =================================================================== diff -u -r6905 -r6906 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 6905) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 6906) @@ -1178,10 +1178,18 @@ { var $main_window = window; - while ($main_window.opener) { - // cycle through popups to get main window - $main_window = $main_window.opener; + // 1. cycle through popups to get main window + try { + // will be error, when other site is opened in parent window + while ($main_window.opener) { + $main_window = $main_window.opener; + } } + catch (err) { + // catch Access/Permission Denied error +// alert('getFrame.Error: [' + err.description + ']'); + return window; + } var $frameset = $main_window.parent.frames; for ($i = 0; $i < $frameset.length; $i++) {