
function writeCookie(callget) {
	var today = new Date();
	var the_date = new Date("December 31, 2999");
	var the_cookie_date = the_date.toGMTString();
	var the_cookie = "users_res="+ screen.width +"x"+ screen.height;
	var the_cookie = the_cookie + ";expires=" + the_cookie_date;
	
	document.cookie = the_cookie
	
	if (document.cookie){  
		location = ''+callget+'';
	}
}

function checkRes(callget, width, height) {
	if(width != screen.width || height != screen.height) {
		writeCookie(''+ecallget+'');
	} else {
		return true;
	}
}