function setBox(n){var t=n.scrollHeight;t>n.offsetHeight&&(t>48?$(n).height(48).css("overflow-y","auto"):$(n).height(t),$(n).addClass("overflowed"),tryFitParent())}function InitEditor(){$.browser.isMobile?MakeEditor("#ckContent","Min",253,!1,!1):MakeEditor("#ckContent","Compact",330,!1,!1);$("#addrs").val()==""?$("#addrs").focus():setTimeout(function(){var n=CKEDITOR.instances.ckContent;n&&n.focus()},300)}function autoSubject(){var n=$("#tbSubject"),t=n.attr("auto");t&&n.val(t)}function sending(){return $.trim($("#addrs").val())==""?showAndExit("请输入收件人邮箱地址！"):$.trim($("#tbSubject").val())==""?showAndExit("请输入邮件主题！"):CKEDITOR.instances.ckContent.getData()==""?showAndExit("请输入邮件内容！"):($("#divMsg").attr("class","mtop_x center").html('<div class="loading"><div class="loadbar"><div><\/div><div><\/div><div><\/div><div><\/div><div><\/div><\/div><\/div>'),$("#btnArea,#sendBox").hide(),UpdateEditorElement("ckContent"),!0)}function updateUserList(){var n=$("#ddlUsers").val(),t;/^\d+$/.test(n)?__doPostBack("ddlUsers",""):(n!="[AllUsers]"&&(t=$.trim($("#addrs").val()),t!=""&&t!="[AllUsers]"&&(n=t+";"+n)),$("#addrs").val(n),$("#ddlUsers").val(""),setBox($f("addrs")))}$(function(){$("#addrs,#tbSubject").poshytip()})