function setCookie(name, value, expire) { // Generic setCookie routine, original code developed by Mark Anderson, www.webcoder.com document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) } function getCookie(Name) { // Generic getCookie routine, original code developed by Mark Anderson, www.webcoder.com var search = Name + "=" if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset) if (end == -1) end = document.cookie.length return unescape(document.cookie.substring(offset, end)) } } } function setValues() { if(document.form1) { Today = new Date(); document.form1.HOST.value = document.location.hostname; if (document.referrer == "") document.form1.REFERRER.value = "A bookmark, or by typing in the full address"; else document.form1.REFERRER.value = document.referrer; document.form1.PLATFORM.value =navigator.appName+" "+navigator.appVersion; document.form1.DATE.value = Today.toGMTString( ); document.form1.PAGE.value = document.title; counted++; if(counted>1) return false; else return true; } else { return false; } } function setVisited() { var Value="Visiter"; setCookie("Vister",Value,null); } function submitForm() { //Check for AOL browser if(navigator.appVersion.indexOf("AOL") == -1) { var knE=getCookie("Vister"); if(knE==null) { if (confirm("Click -OK- if you would you like to receive the\nFREE newsletter called Change Agent Briefings.\n\nYour email address will be kept confidential.\nPlease press cancel if you have already subscribed.")) { setVisited(); document.form1.SEND.click(); } else { //Additional 'cancel' code here if any. setVisited(); } } } } function NukeIt() { setCookie("Vister",null, null); } var counted=0;