function SetCookie(name, value, time) { // 1000 milliseconds in a sec var millisecond millisecond = 1000; time = time * millisecond; // Set expiration of cookie var expDate = new Date(); expDate.setTime(expDate.getTime() + time); document.cookie = name + "=" + escape (value) + ";expires=" + expDate.toGMTString(); } function GetCookie(name) { var result = null; var myCookie = " " + document.cookie + ";"; var srchName = " " + name + "="; var start = myCookie.indexOf(srchName); var end; if (start != -1) { start += srchName.length; end = myCookie.indexOf(";", start); result = unescape (myCookie.substring(start, end)); } return result; } function SetPopupFrequency() { check = GetCookie('51911_PopupPoll'); if(check != null) { check = check + 1 SetCookie('51911_PopupPoll', check, '100'); } else SetCookie('51911_PopupPoll', 1, '100'); } SetPopupFrequency(); // Popup only if respondent has not yet voted. voteFrequency = GetCookie('51911_VoteFrequency'); if(voteFrequency == null) { window.open("http://www.pollmonkey.com/pollpopup.asp?U=7930851911&C=75260392&A=1220&S=51911","win","scrollbars=yes,width=500,height=350"); }