function setCookie(name,value)
{
	var exp = new Date();
	var expPlusOne = exp.getTime() + (1*24*60*60*1000);
	exp.setTime(expPlusOne);
	document.cookie = "POGI" + name + "=" + value+ "; expires=" + exp.toGMTString();
	//document.cookie = "POGI" + name + "=" + value;
}
function getCookie(str)
{
	var country = "POGI" + str + "=";
	var strlength = country.length;
	var cookielength = document.cookie.length;
	var i = 0;
	for (i = 0; i < cookielength; i++)
	{
		var templength = i + strlength;

		if (document.cookie.substring(i, templength) == country)
		{
			var endstr = document.cookie.indexOf (";", templength);
			if ( endstr == -1 )
				endstr = document.cookie.length;
			return document.cookie.substring(templength, endstr);
		}
	}
}
