function preSubmit(){if(UpdateEditorElement(),$("#mutiUser").length>0){if($("#rbAssigned").prop("checked")&&$("#cbUser,#cbRole,#cbUnit,#cbRel").filter(":checked").length==0)return showAndExit("请指定接收人！")}else if($.trim($("#tbUser").val())=="")return showAndExit("请指定接收人！");return $.trim($("#tbSubject").val())==""?showAndExit("请输入主题！"):CKEDITOR.instances.ckContent.getData()==""?showAndExit("请输入内容！"):(popFrom("msgs.aspx")&&(parent.dataChanged=!0),!0)}function showAll(){$("#divRole,#related,#exclude").removeClass("hide");$("#showMore").hide()}function sent(){hideLoading();$("#resultArea").show();$("#mainArea").hide()}function toContinue(){$("#resultArea").hide();$("#mainArea").show()}LoadEditor();$(function(){var t=$("#tbUser").length>0?308:228,n;MakeEditor("#ckContent","Compact",t,!1,!1);$("#tbUsers,#tbRoles,#tbUnits,#tbNoUsers").focus(function(){$(this).prevAll(":checkbox:first").prop("checked",!0)});$("#related :checkbox,#ddlLevels").not("#cbRel").change(function(){$("#cbRel").prop("checked",!0);!$(this).is("#cbLevel")&&$(this).isIn("#spanLevels")&&$("#cbLevel").prop("checked",!0)});n=Sys.WebForms.PageRequestManager.getInstance();n.add_initializeRequest(showLoading);n.add_endRequest(hideLoading);$(window).load(function(){setTimeout(function(){AutoComplete($(":text[acfid],textarea[acfid]"))},50)})})