function createCookie(name, value) {
	document.cookie = name + '=' + escape(value);
}

function getCookie(name) {
	start = document.cookie.indexOf(name + '=');
	if (start >= 0) {
		start += name.length + 1;
		end = document.cookie.indexOf(";", start);
		if (end < 0) {
			end = document.cookie.length;
		}
		return unescape(document.cookie.substring(start, end));
	}
	return "";
}
