// JScript source code // Re-write of MM_openBrWindow function ACL_openBrWindow(theURL,winName,features) { var sSearch = '' + '='; var sCookieKeys; var lOffset; var lEnd; if (document.cookie.length > 0) { // if there are any cookies     lOffset = document.cookie.indexOf(sSearch)     if (lOffset != -1) { // if cookie exists     lOffset += sSearch.length;     // set index of beginning of value     lEnd = document.cookie.indexOf(";", lOffset);     // set index of end of cookie value     if (lEnd == -1)     lEnd = document.cookie.length;     sCookieKeys=unescape(document.cookie.substring(lOffset, lEnd));     } } if (!sCookieKeys) { //.length < 1) { window.open(theURL,winName,features); } }