﻿function setCookie(theName__,theValue__)
{
	if ((theName__ != null) && (theValue__ != null))
	{
		document.cookie = theName__ + "="+theValue__;
		return true;
	}
	return false;
}

function getCookie(theName__)
{
	theName__ += "=";
	theCookie__ = document.cookie+";";
	start__ = theCookie__.indexOf(theName__);
	if (start__ != -1)
	{
		end__ = theCookie__.indexOf(";",start__);
		return unescape(theCookie__.substring(start__+theName__.length,end__));
	}
	return false;
}
