function cookieVal(cookieName) {
	thisCookie = document.cookie.split("; ");
		for (i=0; i<thisCookie.length; i++) {
			if (cookieName == thisCookie[i].split("=")[0]){
				return thisCookie[i].split("=")[1];
			}
		}
	return 0;
}

doSurvey = "true";

if (doSurvey == "true") {
	
	expireDate = new Date;
	expireDate.setTime(expireDate.getTime() + 604800000);

	nlSignup = cookieVal("nlSignup");
	if (nlSignup == "") {
		nlSignup = "no";
	}

//		NewWindow(sURL,windowname,theScrollbars,theResizable,theWidth,theHeight)
	if (nlSignup == "no") {
		document.cookie = "nlSignup=yes;path=/;expires=" + expireDate.toGMTString();
		NewWindow('/newsletter-pop.jhtml','NewsLetter',0,0,450,250);
	}
}
