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(){$(this).autocomplete("search",$(this).val())})},select:function(n,t){return this.value=t.item.value,$(this).trigger("change"),!1}}));i=$("#tbName:visible").val();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()?(setTimeout(parent.$.colorbox.close,0),parent.location.href.indexOf("msgs.aspx")==-1&&(parent.location="msgs.aspx")):location="msgs.aspx"}function toDel(){return confirm("确定删除该消息吗？")?(__doPostBack("btnDel",""),fromDataPage("msgs.aspx")&&parentable()&&(parent.dataChanged=!0),!1):!1}function delSuccessed(){inPopup()?setTimeout(parent.$.colorbox.close,0):location="prompt.aspx?type=Success&msg="+$.url.encode(Base64("删除成功！"))}function msgRead(){try{inPopup()?parent.parent.leftFrame.lastTime="":parent.leftFrame.lastTime=""}catch(n){}}function copySendee(){var n=$("<div />");$("#sendee_allUsers > *").clone().appendTo(n).not(":last").after("、");n.attr("tocopy",n.text());toCopy(n)}$(function(){$(".ui-tabs").tabs().fadeIn(300);$(document).keydown(function(n){if(n.ctrlKey)return!0;var i=n.keyCode||n.which,t="";switch(i){case 37:case 33:t="aPrev";break;case 39:case 34:t="aNext";break;case 13:return!1}return t!=""?($f(t).click(),!1):!0});InitScroller()})