	/* or replace with your favorite cookie functions */
	function getCookie(sName) {
		var cookie = "" + document.cookie;
		var start = cookie.indexOf(sName);
		if (cookie == "" || start == -1) 
			return "";
		var end = cookie.indexOf(';',start);
		if (end == -1)
			end = cookie.length;
		return unescape(cookie.substring(start+sName.length + 1,end));
	}
	
	function setCookieForXDays(sName,value,ndays)
	{
		var exdate=new Date();
		exdate.setDate(exdate.getDate()+ndays);
		document.cookie = sName+ "=" +escape(value) + ";path=/;expires=" + exdate.toGMTString();
	}
	
	function closeGate(){
		var gateBackground = document.getElementById("gateMask");
		var gateContent = document.getElementById("pageGate");
		
		gateBackground.style.visibility = "hidden";
		gateContent.style.visibility = "hidden";
	}
	
	function PageGate()
	{
	}
