function chkEnter(){var n=getEvent(),t;return n?(t=n.keyCode||n.which,t==13?(showSendee(),!1):!0):!0}function toShowSendee(){__doPostBack("btnShow","")}function showSendee(){var t=30,n=$("#sendee_allUsers > *"),i;n.length<=t?$("#sendee_findDiv").css("display","none"):($("#sendee_findDiv").css("display",""),$("#tbName").autocomplete({source:function(n,t){t($("#sendee_allUsers > *:contains('"+n.term+"'):lt(20)").map(function(){return $(this).text()}).toArray())},minLength:0,position:{at:"left bottom",my:"left top+1"},create:function(){$(this).bind("click",function(){var n=$(this).data("ui-autocomplete"),t=n&&n.menu.active;t||$(this).autocomplete("search",$(this).val())})},select:function(n,t){return this.value=t.item.value,$(this).trigger("change"),!1}}));i=$("#tbName:visible").val();IsVoid(i)||(n=n.filter(":contains('"+i+"')"));n.length>0?n.length<=t?n.clone().appendTo($("#panel").empty()).not(":last").after("、"):(n.filter(":lt("+t+")").clone().appendTo($("#panel").empty()).not(":last").after("、"),$("#panel").append(" …")):$("#panel").empty().html("<div class='center mtop_m larger gray'>无<\/div>")}function toMsgList(){inPopup()?parent.location.href.indexOf("msgs.aspx")>-1?setTimeout(parent.$.colorbox.close,0):parent.location="msgs.aspx":location="msgs.aspx"}function toDel(){return confirm("确定删除该消息吗？")?(__doPostBack("btnDel",""),popFrom("msgs.aspx")?parent.dataChanged=!0:top.needRefreshMsgs=!0,!1):!1}function msgRead(){try{inPopup()?parent.parent.leftFrame.lastTime="":parent.leftFrame.lastTime=""}catch(n){}}LoadEditor();$(function(){inPopup()&&$("html#msgDetail").addClass("inpopup");$(document).keydown(function(){var t=getEvent(),i=t.keyCode||t.which,n="";switch(i){case 37:case 33:n="aPrev";break;case 39:case 34:n="aNext";break;case 13:return!1}return n!=""?($f(n).click(),!1):!0})})