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(); }; function FCKeditor_OnComplete( editorInstance) { document.getElementById(\'frmModel\').innerHTML = "