function InnerDialogLoaded() { /* var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates); return B.ClickFrame(); */ var isIE = (navigator.appVersion.indexOf(\'MSIE\') != -1) ? true : false ; var EditorFrame = null ; if ( !isIE ) { EditorFrame = window.frames[0] ; } else { // For this dynamic page window.frames[0] enumerates frames in a different order in IE. // We need a sure method to locate the frame that contains the online editor. for ( var i = 0, n = window.frames.length ; i < n ; i++ ) { if ( window.frames[i].location.toString().indexOf(\'InstanceName=content\') != -1 ) { EditorFrame = window.frames[i] ; } } } if ( !EditorFrame ) { return null ; } var B = new EditorFrame.FCKToolbarButton(\'Templates\', EditorFrame.FCKLang.Templates); return B.ClickFrame(); }; var temp=false; var temp2=false; var use_document_title='.api_get_setting('use_document_title').'; var load_default_template = '. ((isset($_POST['submit']) || empty($_SERVER['QUERY_STRING'])) ? 'false' : 'true' ) .'; function launch_templates() { //document.getElementById(\'frmModel\').style.display="block"; //document.getElementById(\'content___Frame\').width=\'70%\'; //window.frames[0].FCKToolbarItems.GetItem("Template").Click; } function FCKeditor_OnComplete( editorInstance ) { editorInstance.Events.AttachEvent( \'OnSelectionChange\', check_for_title ) ; document.getElementById(\'frmModel\').innerHTML = "