<!--

function setCookie (name,value,expires,path,domain,secure) 
{
	document.cookie = name + "=" + escape (value) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
}

function getCookieVal (offset) 
{
	var endstr = document.cookie.indexOf (";", offset);

	if ( endstr == -1 )
		endstr = document.cookie.length;

	return(unescape(document.cookie.substring(offset, endstr)));
}

function getCookie (name) 
{
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;

	while ( i < clen ) 
	{
		var j = i + alen;
		if ( document.cookie.substring(i, j) == arg ) return(getCookieVal (j));
		i = document.cookie.indexOf(" ", i) + 1;
		if ( i == 0 ) break;
	}

	return(null);
}

function deleteCookie (name,path,domain) 
{
	if ( getCookie(name) ) 
	{
		document.cookie = name + "=" +
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}

function checkCookieDisclaimer(){
	var strSearchDisc = getCookie("SearchDisc");
	if (strSearchDisc == null) {
	/*
		var sText = "I am doing this search for my own benefit.\n" +
				"I understand the information I receive belongs to EMMEServizi, Inc.\n" +
					"I will not provide the information I receive to any third party.\n";
	*/
		var sText = "I understand that the information on this website is proprietary information.\n" +
			    "I will not use, or distribute, such information for any commercial purpose.";
		if (confirm(sText)) {
			var Expiration = new Date();
			Expiration.setYear(Expiration.getYear() + 10);
			setCookie("SearchDisc", "OK", Expiration, "/");
			return true;
		} else {
			return false;
		}
	} else {
		return true;
	}
}

//-->


