I read the article on using cookies and javascript to create a ezine popup and tailored it a bit to my preferences. I need a window on my site to popup on the first page load, but only once every 30 minutes. This is the code I have:

In HEAD
Code:
<script language= "JavaScript">

function doPopup(){
	var ezine = getCookie('popupShown');
	setCookie('popupShown', 'true', '', '');

	if(ezine == '')  {
	// Show the popup window
	window.open('http://www.daveandjordan.com/ads/adcycle.cgi?gid=3&cid=5&mid=6&id=386', 'votepopup', 'width=500,height=400');
	}
}

function setCookie(cookieName, cookieValue, cookiePath, cookieExpires) {
	cookieValue = escape(cookieValue);
	if (cookieExpires == "")  {
		cookieExpires = '1800';
	}
	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));
}

</script>
And my BODY Tag:
Code:
<body bgcolor="#172F5E" text="#000000" link="#363636" vlink="#363636" alink="#d5ae83" onLoad="doPopup()">
Now for some reason, no page ever pops up. Any idea why?

URL: http://209.51.166.18/

Any help would be much appreciated!