function CasinoBlastersExitPop2() { var CookieName = 'ExitPop2'; var count = GetCookie(CookieName); if (count == null) { count=1; SetCookie(CookieName, count, exp); var Url = "http://www.casinoblasters.com/marketing_tools/exitpop2/exit.php?member=seeding&profile=bbeat720po"; var WindowWidth = 720; var WindowHeight = 300; var WindowTop = (screen.availHeight/2) - (WindowHeight/2); var WindowLeft = (screen.availWidth/2) - (WindowWidth/2); var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop; ExitPop2 = window.open(Url,"ExitPop2",WindowProps); } } // The Cookie Functions follow.... function GetCookie (popup) { var arg = popup + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (popup, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = null; // session cookie var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = popup + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } var exp = new Date(); exp.setTime(exp.getTime() + (60*60*1000));