");$("#order_status").show(); var errorstring='';if(user_name ==''){errorstring = "\nEnter your username or email id.";$('#user_nmae').focus();$('#order_status').hide();} if(errorstring != ''){ $('#acc_exists').html(errorstring);}else{$.ajax({url:'/api/password/reset/request.php?email=' + email + "&loggedin_user=" + $('#loggedin_user').val() + "&user_name=" + user_name + "&redirectURL=" + $('#redirectURL').val(),type:'POST',cache:false,beforeSend:function(){$("#order_status").html('');$("#order_status").show();},success:function(data){ var rev = data.split('~|~'); var email_1 = rev[1]; var status_re = rev[0]; $('#fetch_email').html(email_1); if(trim(status_re) == 1 || trim(status_re) == 2 && trim(status_re) != ''){parent.$.fancybox.close();$.fancybox({ fitToView: false, width: 400, height: 151, autoSize: false, closeClick: false, openEffect: 'none', closeEffect: 'none', href: '#success-popup-message', afterClose: function(){ window.location.reload(); }, helpers: { title: null }, type: 'inline' }); $('#acc_exists').html(""); }else{$('#order_status').hide();$('#acc_exists').html("Account doesn't exist.");}}});}});function trim(str){return str.replace(/^\s+|\s+$/g,'');}});