$(document).ready(function(){$("#okbutt").click(function(){$.unblockUI();openExitSurveyPopup();return false;});$("#cancelbutt").click(function(){$.unblockUI();setCookie("surveycookie","no",720,"/");return false;});});function showExitSurveyPopUp(){var odds=1;var chance=Math.floor(Math.random()*101);if(chance<=odds){if(getCookieValue("surveycookie")==null&&getCookieValue("exitSurvey")==null){$.blockUI({message:$("#exitSurvey"),css:{width:"400px",background:"#f2f5f4"}});
}}var cookietext="exitSurvey = shown";document.cookie=cookietext;}var popupWin=null;function openExitSurveyPopup(){var url="/pop-ups/exitSurveyPopup.htm";popupWin=open("","popupWin","width=500,height=400, location=no,dependent=no,resizable=yes,toolbar=no,status=no,directories=no,menubar=no,scrollbars=yes");
setCookie("surveycookie","yes",180,"/");if(!popupWin||popupWin.closed||!popupWin.doSomething){popupWin=window.open(url,"popupWin","width=500,height=400,location=yes");}else{popupWin.focus();}}
