function BindRequest(n){n.add_endRequest(function(){disableEles("#btnSubmit",!1)})}function setBaseString(){UpdateEditorElement();oriFormHash=getHash("#form1")}function IsDirty(){return UpdateEditorElement(),oriFormHash!=getHash("#form1")}function confirmExit(n){if(IsDirty()&&!inIframe()){var t=document.activeElement;if(t&&$(t).is("[href^='javascript:'],:submit"))return!0;n.returnValue="当前页面尚未保存！"}}function PreSubmit(){if(hasUploading())return showAndExit("文件上传中，请稍候…");UpdateEditorElement();var n="";return $("#tbTitle").val()==""&&(n="必须输入标题！"),CKEDITOR.instances.ckContent.getData()==""&&(n+=(n==""?"":"<br />")+"必须输入内容！"),n!=""?(alert(n),!1):($("#__EVENTARGUMENT").val(getUploaderValue("#uploader")),disableEles("#btnSubmit",!0),setBaseString(),!0)}function makeSummary(){var t=CKEDITOR.instances.ckContent.getData(),n=$(t).text().replace(/\s+/g," ");return n.length>200&&(n=n.substr(0,199)+"…"),$("#tbOverview").val(n),!1}LoadEditor();var oriFormHash=0;$(function(){$.browser.isMobile?MakeEditor("#ckContent","Compact",240,!1,!1):MakeEditor("#ckContent","Normal",290,!1,!1);InitUploader("#files");$("#selectTags,#tbTags,#ddlTypes[title]").poshytip();AutoComplete("#tbTags");setBaseString();$("#tbTitle").focus()})