
$(window).load(function(){$("a.f_hot_op_bt").unbind("click").bind("click",function(){ewt()})});function ewt(){var c=2275;var d="DefaultF_";if(mxx(c,d)!=1){art.VLdialog.alert("密码已修改。",function(){},4,"提示");return null}
var e=yci(c,d);var f=null;var g=col(c,d);f=g.$form;if(f==null){art.VLdialog.alert("获取表单的HTML对象失败。请确认代码正确。",function(){},4,"提示");return null}
var h=sme(f,false,c,d,true,c,e,true);if(ymr(h)||h==false){return null}
if(h==null)return;var i=tzm("vstr");if(ymr(i)){art.VLdialog.alert("未指定邮件的验证参数，提交失败。",function(){},8,"提示");return}
var j={"NewPassword":h.newPwd,"ValidatePassord":h.newPwd2,"code":$.trim(i),"vefCode":""};var k=$("#d2275_VerImg");j.vefCode=k.val();var l=$("div[vldto='d2275_VerImg']");if(ymr(j.vefCode)){l.show();var m=xfx(k.get(0),"Left")+k.width()+120;var n=xfx(k.get(0),"Top");l.css({"left":m+"px","top":n+"px"});k.addClass("form-txt-err");l.unbind("click").bind("click",function(){$(this).hide()}).html("<div class='form-vld-err'><span class='action_po'><span class='action_po_top'>不能为空</span><span class='action_po_bot'></span></span></div>");return}
k.unbind("click").bind("click",function(){$("div[vldto='d2275_VerImg']").hide();$("#d2275_VerImg").removeClass("form-txt-err")});var o=$("#btn_updateUserMsg");o.removeClass("f_hot_op_bt1").addClass("f_btn_unable").find("span").html("正在保存...");var p="/WebServices/System/User.asmx/FindPwd_UpdatePassword";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:p,data:JSON2.stringify(j),dataType:'json',beforeSend:function(a){},complete:function(a,b){o.addClass("f_hot_op_bt1").removeClass("f_btn_unable").find("span").html("修改密码")},error:function(a){var b=JSON2.stringify(a);if(b.length>600)b=b.substr(0,600);alert("修改密码失败。详情："+b);return false},success:function(a){a=hmy(a);if(a.IsOK){art.VLdialog.Succeed("修改成功！",function(){},2,"提示");setTimeout(function(){window.top.location.href="/login.html"},1000);return false}else{art.VLdialog.alert("修改失败。原因："+a.ErrorMsg,function(){},8,"提示")}}});return}