function setBaseString(){UpdateEditorElement();oriFormHash=getHash("#form1")}function IsDirty(){return UpdateEditorElement(),oriFormHash!=getHash("#form1")}function confirmExit(){if(IsDirty()&&!inIframe()){var n=document.activeElement;if(n&&$(n).is("[href^='javascript:'],:submit"))return!0;getEvent().returnValue="当前页面尚未保存！"}}function PreSubmit(){UpdateEditorElement();var n="";return $("#tbTitle").val()==""&&(n="必须输入标题！"),CKEDITOR.instances.ckContent.getData()==""&&(n+="\n必须输入内容！"),n!=""?(alert(n),!1):!0}function makeSummary(){var t=CKEDITOR.instances.ckContent.getData(),n=$(t).text();return n.length>300&&(n=n.substr(0,299)+"…"),$("#tbOverview").val(n),!1}function setTagsLink(){$("#popTag_divTags a").click(function(){var n=$("#tbTags").val();n!=""&&n.substr(n.length-1)!=","&&(n+=",");$("#tbTags").val(n+this.innerHTML)})}LoadEditor();var oriFormHash=0;$(function(){MakeEditor("#ckContent","Normal",320,!1,!1);setBaseString()})