
var cst2=2291;var cst=2291;var oxe="DefaultF_";var EmailMsg={};$(window).load(function(){$("#btn_updateUserMsg").unbind("click").bind("click",function(){pjx()});var a=$("#divSendEmail");var b=$("#divResender");var c=b.find(".f_hot_op_bt");c.unbind("click").bind("click",function(){})});function pjx(){var g=yci(cst,oxe);var h=null;var i=col(cst,oxe);h=i.$form;if(h==null){art.VLdialog.alert("获取表单的HTML对象失败。请确认代码正确。",function(){},4,"提示");return}
var j=sme(h,false,cst,oxe,true,cst,g,true);if(ymr(j)||j==false){art.VLdialog.alert("获取表单数据失败。请确认输入是否正确。",function(){},4,"提示");return}
var k={"email":j.Email,"verCode":""};var l=$("#d2291_VerImg");k.verCode=l.val();var m=$("div[vldto='d2291_VerImg']");if(ymr(k.verCode)){m.show();var n=xfx(l.get(0),"Left")+l.width()+120;var o=xfx(l.get(0),"Top");m.css({"left":n+"px","top":o+"px"});l.addClass("form-txt-err");m.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}
l.unbind("click").bind("click",function(){$("div[vldto='d2291_VerImg']").hide();$("#d2291_VerImg").removeClass("form-txt-err")});EmailMsg=k;var p=$("#btn_updateUserMsg");p.removeClass("f_hot_op_bt1").addClass("f_btn_unable").find("span").html("正在发送...");var q="/WebServices/System/User.asmx/FindPwd_AddCode";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:q,data:JSON2.stringify(k),dataType:'json',beforeSend:function(a){},complete:function(a,b){p.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){var b=$("#divSendEmail");b.hide();var c=$("#divResender");c.show();var d=EmailMsg.email;var e=d.split("@");$("#aGoMail").attr("href","https://mail."+e[1]+"/");var f=c.find(".f_hot_op_bt");f.unbind("click").bind("click",function(){b.show();c.hide();$("#d2291_VerImg").val("");$("div[vldto='d2291_VerImg']").hide();$("#d2291_VerImg").removeClass("form-txt-err");GetVerifyImg($("img[verifyimg]").get(0))})}else art.VLdialog.alert("发送失败。原因："+a.ErrorMsg,function(){},8,"提示")}})}