<!--
function getOptinCookie(cookieName) {
	var id = cookieName + "=";
	var cookievalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(id);
		if (offset != -1) {
			cookievalue = "x";
		}
	}
	return cookievalue;
}

function getTestCookie(tcookieName) {
	var id = tcookieName + "=";
	var cookievalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(id);
		if (offset != -1) {
			cookievalue = "x";
		}
	} 
	return cookievalue;
}
function optin(text) {
	setOptinCookie();
	if(confirm(text)) {
		if (forwardURL != "") {
			window.location.href = forwardURL;
			setPermanentCookie();
		} else {
			document.mailer.subscribe.click();
		}
	}
}

function setTestCookie () {
	var today = new Date();
	var expdate = new Date(today.getTime() + 1 * 24 * 3600000);
	document.cookie = tcookie + "=done;expires=" + expdate.toGMTString();
}

function setOptinCookie () {
	var today = new Date();
	var expdate = new Date(today.getTime() + 1 * 24 * 3600000);
	document.cookie = cookie + "=done;expires=" + expdate.toGMTString();
}

function setPermanentCookie () {
	var today = new Date();
	var expdate = new Date(today.getTime() + 365 * 24 * 60 * 60 * 1000); // 1 year
	document.cookie = cookie + "=done;expires=" + expdate.toGMTString();
}

var leave=true;
var windowprops = "width=550,height=400,screenX=60,screenY=60,toolbar=no,location=no,directories=      no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,alwaysRais      ed=yes,marginwidth=0,marginheight=0";
function page (link) {
f=open(link, "add", windowprops);
f.focus();
}

function a2ie(){
var leavecookie = "14";
if (getOptinCookie(leavecookie) == "") {
if(leave && document.all) {
var today = new Date();
var expdate = new Date(today.getTime() + 30 * 24 * 3600000);
document.cookie = leavecookie + "=done;expires=" + expdate.toGMTString();
var _url = "http://www.hearandplay.com/exitoffer?" + document.URL;
showModalDialog(_url,window,'status:no; help:no; dialogWidth:730px; dialogHeight:495px');
}
}
}
//-->
