function InitByType(){var t=$("#app_ddlType").val(),n=t=="Work";$("#trAgentid").toggleClass("hide",!n);$("#trAccount").toggleClass("hide",n);$("#tdAppid").text(n?"CorpID：\t":"AppID：");$("#tdSecret").text(n?"Secret：\t":"AppSecret：")}function editApp(n){return __doPostBack("btnOpera","edit_"+n),!1}function delApp(n){return confirm("确定删除该应用吗？")&&__doPostBack("btnOpera","delete_"+n),!1}function setDefault(n){__doPostBack("btnOpera","default_"+n)}function SelectedDir(n){__doPostBack("aDir",n)}function addReplies(n){$("#ar_popup:visible").length||(window.addReplyMode=n,$("#ar_popup .head .title").text("添加关键词回复|"+(n=="Strict"?"全匹配":"半匹配")),$("#ar_tbKey,#ar_tbReply").val(""),ShowPop("ar_popup"))}function saveReply(){return __doPostBack("ar$btnOK","save|"+window.addReplyMode),!1}function editReply(n){var t=$(n).closest("tr"),i=t.attr("key"),r=t.attr("mode");__doPostBack("ar$btnOK","edit"+r+"|"+i)}function delReply(n){if(confirm("确定删除该项吗？")){var t=$(n).closest("tr"),i=t.attr("key"),r=t.attr("mode");__doPostBack("ar$btnOK","del"+r+"|"+i)}}$(function(){$("#tabs").tabs().fadeIn(300);$("#rpls").tabs().fadeIn(300)})