//this file always executes. It checks if screen resolution changed since last time the cookie was set and if it did resets the cookie...
var expdate = new Date();
expdate.setTime(expdate.getTime()+(12*30*24*60*60*1000)); // ~1 year
if(screen.width != getCookie("vWidth") || screen.height != getCookie("vHeight")){
	setCookie("vWidth", screen.width, expdate, "", "", 0)
	setCookie("vHeight", screen.height, expdate, "", "", 0)
//	alert("cookie corrected")
//	alert("vWidth = " + screen.width + " - " + expdate);
//	window.location.reload();
}
if(!getCookie("vWidth")) //check if browser supports cookies
		url('/lib/security/noCookies.php')
//alert( screen.width + " ? " + getCookie("vWidth"))
//alert( screen.height + " ? " + getCookie("vHeight"))
