function setCookie(sValue)
{ 
	document.cookie = "lang=" + escape(sValue) + "; expires=Wed, 15 Sept 2253 10:33:24 UTC; path=/";
} 

function GetCookie()
{
	// cookies are separated by semicolons
	var aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++)
	{
    		// a name/value pair (a crumb) is separated by an equal sign
		var aCrumb = aCookie[i].split("=");
    		if ("lang" == aCrumb[0]) 
		      return unescape(aCrumb[1]);
	}

  	// a cookie with the requested name does not exist
  	return null;
}


