
var cst=2293;var oxe="DefaultF_";var emailObj=null;$(window).load(function(){});function scw(){}
function scw(){var c="/WebServices/System/System.asmx/scw";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:c,data:"{}",dataType:'json',success:function(a){a=hmy(a);if(!ymr(a)){var b={"Smtp":a.Smtp,"Port":a.Port,"Email":a.Sysemail,"Nickname":a.Username,"Pwd":""};pet(cst,oxe,2);lwg(cst,oxe,b,null,false)}else pet(cst,oxe,1)},beforeSend:function(a){},complete:function(a,b){},error:function(a){var b=JSON2.stringify(a);if(b.length>600)b=b.substr(0,600);alert("操作失败。详情："+b)}})}
function wsu(c){var d=$(c).parent();while(ymr(d.attr("kv"))){d=d.parent()}
var e=d.attr("kv");var f={"isHidden":true,"templateId":parseInt(e,10)};var g="/WebServices/Template/Template.asmx/wsu";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:g,data:JSON2.stringify(f),dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){var b=JSON2.stringify(a);if(b.length>600)b=b.substr(0,600);alert("操作失败。详情："+b);return false},success:function(a){alert("操作成功！")}})}
function lyf(c){var d=$(c).parent();while(ymr(d.attr("kv"))){d=d.parent()}
var e=d.attr("kv");var f={"isHidden":false,"templateId":parseInt(e,10)};var g="/WebServices/Template/Template.asmx/wsu";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:g,data:JSON2.stringify(f),dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){var b=JSON2.stringify(a);if(b.length>600)b=b.substr(0,600);alert("操作失败。详情："+b);return false},success:function(a){alert("操作成功！")}})}