<!--
function setCookie() {
	var ref = window.location.search.split("=");
	document.cookie = "DEN_REFER=" + ref[1] + ";path=/";
}

function checkCookie() {
	if (window.location.search) {
		var foundCookie = 0
		if (document.cookie != "") {
			thisCookie = document.cookie.split("; ")
			for (i=0; i<thisCookie.length; i++){
				if (thisCookie[i].split("=")[0] == "DEN_REFER") {
					foundCookie = 1;
					break;
				}
			}
		}
		if (foundCookie == 0) {
			setCookie();
		}
	}
}
//-->