function setCookie(cookieName, cookieValue, cookiePath, cookieExpires){
 cookieValue = escape(cookieValue); 
 if (cookieExpires == "") 
 {  
  var nowDate = new Date()
  nowDate.setDate(nowDate.getDate() + 1);
  cookieExpires = nowDate.toGMTString();
 } 

 if (cookiePath != "") 
 { 
 cookiePath = ";Path=" + cookiePath; 
 } 

 document.cookie = cookieName + "=" + cookieValue + 
 ";expires=" + cookieExpires + cookiePath;
}

function getCookie(name) 
{
 var cookieString = document.cookie; 
 var index = cookieString.indexOf(name + "="); 

 if (index == -1)
 {
 return null; 
 }

 index = cookieString.indexOf("=", index) + 1; 
 var endstr = cookieString.indexOf(";", index); 

 if (endstr == -1)
 {
 endstr = cookieString.length; 
 }

 return unescape(cookieString.substring(index, endstr));
}

function PopConsole() {
       var ezine = getCookie('popupShown');
       setCookie('popupShown', 'True', '', '');
	var Url = "http://microgaming.greedyhog-casino.com/newspop.html";
	var WindowWidth = 700;
	var WindowHeight = 700;
	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=no,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
     
     if (ezine != 'True')
      {
       window.open(Url,"ConsoleWindow",WindowProps);
      }
}