


var forrcookies = document.cookie;

function readCookie(name) {
	var start = forrcookies.indexOf(name + "=");
	if (start == -1) {
		return null;
	} else {
		start = forrcookies.indexOf("=", start) + 1;
		var end = forrcookies.indexOf(";", start);
		
		if (end == -1) {
			end = forrcookies.length;
		}
		
		var value = unescape(forrcookies.substring(start,end));
		return value;
	}
}

