
	function setCookie(cName,cValue,cExpireDays) {
		var expDate=new Date();
		expDate.setDate(expDate.getDate()+cExpireDays);
		document.cookie=cName+ "=" +escape(cValue)+
		((cExpireDays==null) ? "" : ";expires="+expDate.toGMTString());
	}
	
	function getCookie(cName) {
		if (document.cookie.length>0)
		  {
		  cStart=document.cookie.indexOf(cName + "=");
		  if (cStart!=-1)
			{ 
			cStart=cStart + cName.length+1; 
			cEnd=document.cookie.indexOf(";",cStart);
			if (cEnd==-1) cEnd=document.cookie.length;
			return unescape(document.cookie.substring(cStart,cEnd));
			} 
		  }
		return "";
	}

	function getDisclaimElement() {
		return document.getElementById("disclaimer");
	}

	function getBodyHeight() {
		return document.body.clientHeight;
	}
		
	function check() {
	var disclaim = getDisclaimElement();
		var allow = getCookie("approved");
		if (allow == "") {
			disclaim.className = "visible"
			disclaim.style.height = getBodyHeight() + "px";
		} else {
			disclaim.className = "hidden";
		}
	}
	
	function respond(answer) {
	var disclaim = getDisclaimElement();
		if (!answer) {
			window.location = "notasniff.asp";
		} else {
			setCookie("approved","yes",1);
			disclaim.className = "hidden";
		}
	}
		
