function getCookieValue (cookieName) {
	var exp = new RegExp (escape(cookieName) + "=([^;]+)");
		if (exp.test (document.cookie + ";")) {
		exp.exec (document.cookie + ";");
		return unescape(RegExp.$1);
	}
	else return false;
}

function testSessionCookie () {
	document.cookie ="testSessionCookie=Enabled";
	if (getCookieValue ("testSessionCookie")=="Enabled")
		return true 
	else
		return false;
}

function sessionCookieTest () {
	if (!testSessionCookie()) {
		window.location.href = 'http://www.reservation-system.net/CookieDisabled.html';
	}else{		
			document.getElementById('idMainTable').style.visibility = 'visible';
	}
}