<!--*FCKeditor-Thetexteditorforinternet*Copyright(C)2003-2005FredericoCaldeiraKnabben**LicensedunderthetermsoftheGNULesserGeneralPublicLicense:*http://www.opensource.org/licenses/lgpl-license.php**Forfurtherinformationvisit:*http://www.fckeditor.net/**"SupportOpenSourcesoftware.Whataboutadonationtoday?"**FileName:fckdialog.html*Thispageisusedbyalldialogboxasthecontainer.**FileAuthors:*FredericoCaldeiraKnabben(fredck@fckeditor.net)--><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN"><html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><metaname="robots"content="noindex,nofollow"/><scripttype="text/javascript">...//OnsomeGeckobrowsers(probablyoverslowconnections)the//"dialogArguments"arenotsetsowemustgetitfromtheopenerwindow.if(!window.dialogArguments)window.dialogArguments=window.opener.FCKLastDialogInfo;//SetstheSkinCSSdocument.write('<linkhref="'+window.dialogArguments.Editor.FCKConfig.SkinPath+'fck_dialog.css"type="text/css"rel="stylesheet">');//Setsthelanguagedirection.window.document.dir=window.dialogArguments.Editor.FCKLang.Dir;varsTitle=window.dialogArguments.Title;document.write('<title>'+sTitle+'</title>');functionLoadInnerDialog()...{if(window.onresize)window.onresize();//Firstofall,translatethedialogboxcontents.window.dialogArguments.Editor.FCKLanguageManager.TranslatePage(document);window.frames["frmMain"].document.location.href=window.dialogArguments.Page;}functionInnerDialogLoaded()...{varoInnerDoc=document.getElementById('frmMain').contentWindow.document;//Setthelanguagedirection.oInnerDoc.dir=window.dialogArguments.Editor.FCKLang.Dir;//SetstheSkinCSS.oInnerDoc.write('<linkhref="'+window.dialogArguments.Editor.FCKConfig.SkinPath+'fck_dialog.css"type="text/css"rel="stylesheet">');SetOnKeyDown(oInnerDoc);DisableContextMenu(oInnerDoc);returnwindow.dialogArguments.Editor;}functionSetOkButton(showIt)...{document.getElementById('btnOk').style.visibility=(showIt?'':'hidden');}varbAutoSize=false;functionSetAutoSize(autoSize)...{bAutoSize=autoSize;RefreshSize();}functionRefreshSize()...{if(bAutoSize)...{varoInnerDoc=document.getElementById('frmMain').contentWindow.document;variFrameHeight;if(document.all)iFrameHeight=oInnerDoc.body.offsetHeight;elseiFrameHeight=document.getElementById('frmMain').contentWindow.innerHeight;variInnerHeight=oInnerDoc.body.scrollHeight;variDiff=iInnerHeight-iFrameHeight;if(iDiff>0)...{if(document.all)window.dialogHeight=(parseInt(window.dialogHeight)+iDiff)+'px';elsewindow.resizeBy(0,iDiff);}}}functionOk()...{if(window.frames["frmMain"].Ok&&window.frames["frmMain"].Ok())Cancel();}functionCancel()...{window.close();}//Objectthatholdsallavailabletabs.varoTabs=newObject();functionTabDiv_OnClick()...{SetSelectedTab(this.TabCode);}functionAddTab(tabCode,tabText,startHidden)...{if(typeof(oTabs[tabCode])!='undefined')return;vareTabsRow=document.getElementById('Tabs');varoCell=eTabsRow.insertCell(eTabsRow.cells.length-1);oCell.noWrap=true;varoDiv=document.createElement('DIV');oDiv.className='PopupTab';oDiv.innerHTML=tabText;oDiv.TabCode=tabCode;oDiv.onclick=TabDiv_OnClick;if(startHidden)oDiv.style.display='none';eTabsRow=document.getElementById('TabsRow');oCell.appendChild(oDiv);if(eTabsRow.style.display=='none')...{vareTitleArea=document.getElementById('TitleArea');eTitleArea.className='PopupTitle';oDiv.className='PopupTabSelected';eTabsRow.style.display='';if(!window.dialogArguments.Editor.FCKBrowserInfo.IsIE)window.onresize();}oTabs[tabCode]=oDiv;oTabs[tabCode].Index=oTabs.length-1;}functionSetSelectedTab(tabCode)...{for(varsCodeinoTabs)...{if(sCode==tabCode)oTabs[sCode].className='PopupTabSelected';elseoTabs[sCode].className='PopupTab';}if(typeof(window.frames["frmMain"].OnDialogTabChange)=='function')window.frames["frmMain"].OnDialogTabChange(tabCode);}functionSetTabVisibility(tabCode,isVisible)...{varoTab=oTabs[tabCode];oTab.style.display=isVisible?'':'none';if(!isVisible&&oTab.className=='PopupTabSelected')...{for(varsCodeinoTabs)...{if(oTabs[sCode].style.display!='none')...{SetSelectedTab(sCode);break;}}}}functionSetOnKeyDown(targetDocument)...{targetDocument.onkeydown=function(e)...{e=e||event||this.parentWindow.event;switch(e.keyCode)...{case13://ENTERvaroTarget=e.srcElement||e.target;if(oTarget.tagName=='TEXTAREA')return;Ok();returnfalse;case27://ESCCancel();returnfalse;break;}returntrue;}}SetOnKeyDown(document);functionDisableContextMenu(targetDocument)...{if(window.dialogArguments.Editor.FCKBrowserInfo.IsIE)return;//DisableRight-ClickvaroOnContextMenu=function(e)...{varsTagName=e.target.tagName;if(!((sTagName=="INPUT"&&e.target.type=="text")||sTagName=="TEXTAREA"))e.preventDefault();}targetDocument.addEventListener('contextmenu',oOnContextMenu,true);}DisableContextMenu(document);if(!window.dialogArguments.Editor.FCKBrowserInfo.IsIE)...{window.onresize=function()...{varoFrame=document.getElementById("frmMain");if(!oFrame)return;oFrame.height=0;varoCell=document.getElementById("FrameCell");variHeight=oCell.offsetHeight;oFrame.height=iHeight-2;}}if(window.dialogArguments.Editor.FCKBrowserInfo.IsIE)...{functionWindow_OnBeforeUnload()...{for(vartinoTabs)oTabs[t]=null;window.dialogArguments.Editor=null;}window.attachEvent("onbeforeunload",Window_OnBeforeUnload);}</script></head><bodyonload="LoadInnerDialog();"class="PopupBody"><tableheight="100%"cellspacing="0"cellpadding="0"width="100%"border="0"><tr><tdid="TitleArea"class="PopupTitlePopupTitleBorder"><scripttype="text/javascript">...document.write(sTitle);</script></td></tr><trid="TabsRow"style="DISPLAY:none"><tdclass="PopupTabArea"><tableborder="0"cellpadding="0"cellspacing="0"width="100%"><trid="Tabs"onselectstart="returnfalse;"><tdclass="PopupTabEmptyArea"> </td><tdclass="PopupTabEmptyArea"width="100%"> </td></tr></table></td></tr><tr><tdid="FrameCell"height="100%"valign="top"><iframeid="frmMain"src="fckblank.html"name="frmMain"frameborder="0"height="100%"width="100%"scrolling="auto"></iframe></td></tr><tr><tdclass="PopupButtons"><tableborder="0"cellpadding="0"cellspacing="0"><tr><tdwidth="100%"> </td><tdnowrap="nowrap"><inputid="btnOk"style="VISIBILITY:hidden;WIDTH:100px"type="button"value="Ok"class="Button"onclick="Ok();"fckLang="DlgBtnOK"/> <inputtype="button"value="Cancel"class="Button"onclick="Cancel();"fckLang="DlgBtnCancel"/></td></tr></table></td></tr></table></body></html>