function popNews() { // window.open('/pop.alert.html', 'popupnews', 'scrollbars=no,status=no,resizable=yes,width=350,height=400'); } var fCookie = document.cookie; function getCookie(name) { name += "="; // append '=' to name string var i = 0; // index of first name=value pair while (i < fCookie.length) { var offset = i + name.length; // end of section to compare with name string if (fCookie.substring(i, offset) == name) { // if string matches var endstr = fCookie.indexOf(";", offset); // locate end of name=value pair if (endstr == -1) endstr = fCookie.length; return unescape(fCookie.substring(offset, endstr)); // return cookie value section } i = fCookie.indexOf(" ", i) + 1; // move i to next name=value pair if (i == 0) break; // no more values in cookie string } return null; // cookie not found } var doPop = 0; var today = new Date(); var expiry = new Date(today.getTime() + 45 * 24 * 60 * 60 * 1000); var lastmod = getCookie("seenpopnews") || ''; if ('1122624118' != lastmod) { doPop = 1; } // Expire the cookie in 45 days document.cookie = "seenpopnews=" + 1122624118 + "; expires=" + expiry.toGMTString(); if (doPop) { //null; popNews(); //commented out until client can provide feedback }