function setBox(n){var t=n.scrollHeight;t>n.offsetHeight&&(t>48?$(n).height(48).css("overflow","auto"):$(n).height(t))}function InitEditor(){MakeEditor("#ckContent","Compact",330,!1,!1);$("#addrs").val()==""?$("#addrs").focus():setTimeout(function(){CKEDITOR.instances.ckContent.focus()},300)}function sending(){return $.trim($("#addrs").val())==""?showAndExit("请输入收件人邮箱地址！"):$.trim($("#tbSubject").val())==""?showAndExit("请输入邮件主题！"):CKEDITOR.instances.ckContent.getData()==""?showAndExit("请输入邮件内容！"):($("#divMsg").html("<img src='images/loading.gif' align='absmiddle' />　正在发送，请稍候 …").removeClass("hide"),$("#btnArea,#sendBox").hide(),UpdateEditorElement("ckContent"),!0)}function updateUserList(){var n=$("#ddlUsers").val(),t;/^\d+$/.test(n)?__doPostBack("ddlUsers",""):n=="[AllUsers]"?$("#addrs").val(n):(t=$.trim($("#addrs").val()),t!=""&&t!="[AllUsers]"&&(n=t+";"+n),$("#addrs").val(n),$("#ddlUsers").val(""))}LoadEditor()