function closeBox(toClose) {
	document.getElementById(toClose).style.display = "none";
	setCookie(toClose, "closed", 365);
}

/**
 * Sets a cookie.
 * 
 * @param cName
 * @param value
 * @param expiredays
 */
function setCookie(cName, value, expiredays) {
	var expDate = new Date();
	expDate.setDate(expDate.getDate() + expiredays);
	document.cookie = cName + "=" + escape(value) + ";expires="
			+ expDate.toGMTString();
}

function loadMsg(msgClass) {
	msg = document.getElementsByTagName("div");
	for (i = 0; i < msg.length; i++) {
		if (msg[i].className == msgClass) {
			if (document.cookie.indexOf(msg[i].id) == -1) {
				msg[i].style.display = "block";
			}
		}
	}
}

function GetUrl(strURL) {
	window.location = strURL;
}

function OpenDiv(id) {
	if (document.getElementById(id).style.display == "block") {
		document.getElementById(id).style.display = "none";
	} else {
		document.getElementById(id).style.display = "block";
	}
}

