"You've been inactive for a while. For your security, we will automatically log you off in approximately one minute unless you click Stay Online to continue. Or you can click Log Off Now if you are done"

'); }else{ $(".ship_dest .ship_dest_popup").stop(true, true).slideUp("fast"); $(".ship_dest").attr('alt',''); $(".ship_dest").removeClass('active'); } } }); $('.close').click(function(){ $(".ship_dest .ship_dest_popup").stop(true, true).slideUp("fast"); $(".ship_dest").attr('alt',''); $(".ship_dest").removeClass('active'); }); }); $(".hover_ship").hover( function() { var pageURL = window.location.href; if(pageURL.search('/cart') =validateEmail.length) { document.getElementById('checkEmailValidOrNot').style.display='block'; $("#checkEmailValidOrNot").text("Please enter valid e-mail address."); return false ; } if(vpassword == "" ) { document.getElementById('checkPasswordValidOrNot').style.display='block'; $('#checkPasswordValidOrNot').text("Please enter valid password."); return false; } var vURL= "/headerlogin"; /* alert(vURL); */ $.ajax({ type: 'post', url: vURL, data: $("#loginForm").serialize(), success: function(data){ if(data=="Success") { /* alert("in success condition of login"); alert(data); */ if(window.location.href.indexOf("/login") > 0) { window.location.href = "/"; } else if(window.location.href.indexOf("/cartstep2") >0 || window.location.href.indexOf("/checkout") > 0 ) { window.location.href = "/cart"; } else { window.location.href= window.location.href ; } } /*AMC-1067 */ else if (data=="inactiveUser") { document.getElementById('checkPasswordValidOrNot').style.display='block'; $("#checkPasswordValidOrNot").text("Your User id is currently not active. Please contact your sales rep to reactivate your User ID. "); } /*AMC-1065 */ else if (data=="changepassword") { document.getElementById('checkPasswordValidOrNot').style.display='block'; $("#checkPasswordValidOrNot").text("Your password has been expired. please reset the password"); } else { if(data=="maxpasswordCount") { $(".forgot_Popup").show(); $(".forgot_Popup_bg").show(); } document.getElementById('checkPasswordValidOrNot').style.display='block'; $("#checkPasswordValidOrNot").text("The username/password combination entered was not found. Please try again."); } }, error: function(jqXHR, exception) { // alert(jqXHR.status); } }); } $(document).ready(function(){ $(".top_account").hover( function() { $(this).find('.top_account_link').slideDown(400); }, function() { $(this).find('.top_account_link').stop(true, true).slideUp("fast"); }); }); function forgotPassword(){ document.getElementById('errorMsg').style.display='none'; document.getElementById('checkEmailPasswordIsWrong').style.display='none'; var emailId=document.getElementById("email").value; var validateEmail = document.forms["forgotPasswordForm"]["email"].value; var atpos = validateEmail.indexOf("@"); var dotpos = validateEmail.lastIndexOf("."); if (atpos=validateEmail.length) { document.getElementById('checkEmailPasswordIsWrong').style.display='block'; $("#checkEmailPasswordIsWrong").text("Please enter valid e-mail address."); return false ; } var vURL= "/headerlogin/request?email="+emailId; /* alert(vURL); */ $.ajax({ type: 'post', url: vURL, data: $("#loginForm").serialize(), success: function(data){ /* alert("in condition"); */ /* alert(data); */ if (data=="Success"){ document.getElementById('checkEmailPasswordIsWrong').style.display='block'; jQuery("#EmailSendToCustomerId").text("Please check your email for a link to reset your password."); document.getElementById('forgotPasswordForm').style.display='none'; document.getElementById('enterEmailId').style.display='none'; document.getElementById('resendEmail').style.display='block'; } /*AMC-1067 */ else if (data=="inactiveUser") { document.getElementById('checkEmailPasswordIsWrong').style.display='block'; document.getElementById('errorMsg').style.display='block'; jQuery("#errorMsg").text("Your User id is currently not active. Please contact your sales rep to reactivate your User ID. "); /* jQuery("#EmailSendToCustomerId").text("Your User id is currently not active. Please contact your sales rep to reactivate your User ID. "); */ /* document.getElementById('forgotPasswordForm').style.display='none'; */ /* document.getElementById('enterEmailId').style.display='none'; document.getElementById('resendEmail').style.display='block'; */ /* document.getElementById('checkPasswordValidOrNot').style.display='block'; $("#checkPasswordValidOrNot").text("Your User id is currently not active. Please contact your sales rep to reactivate your User ID. "); */ } else{ document.getElementById('errorMsg').style.display='block'; jQuery("#errorMsg").text("Sorry, the email address you entered does not exist in our records. Please try a different one."); } }, error: function(jqXHR, exception) { // alert(jqXHR.status); } }); } function closeMethod(){ var currentLocation= window.location.href; window.location.href= currentLocation; }