
//*******************************************



function setCookie(name, value, expire) 
{

	document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}

function getCookie(Name) 
{

	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.cookieform) 
	{
		Today = new Date(); 
		document.cookieform.HOST.value = document.location.hostname;
		if (document.referrer == "")
			document.cookieform.REFERRER.value = "The URL was manually typed or from an existing bookmark";
		else 
			document.cookieform.REFERRER.value = document.referrer;
		document.cookieform.PLATFORM.value =navigator.appName+" "+navigator.appVersion;
		document.cookieform.DATE.value = Today.toGMTString( );
		document.cookieform.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 submitListForm()
{ 

	if(navigator.appVersion.indexOf("AOL") == -1)
	{

	var knE=getCookie("Vister");
	if(knE==null)
	{
		if (confirm("May we add you to our mailing list?\n Your privacy matters.\n Only we will get your email address."))
                                                                                                                                                                                                                                                                                                                                                       
		{
			setVisited();
			document.cookieform.SEND.click(); 		
		} else
		{

			setVisited();
		}
	}
	}
}

function NukeIt()
{
	setCookie("Vister",null, null);
}

var counted=0;


