function createCookie(value) {
	var ck = "init_session="+value;
	document.cookie = ck;
	//---- alert('reading cookie'); ---- for testing ONLY
}

function readCookie(cookieName) {
	var nameEQ = cookieName + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i<ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) {
			//---- alert('cookie created'); ---- for testing ONLY
			return c.substring(nameEQ.length,c.length);
		}
	}
	return null;
}