/**
* @module Util
*/
/**
* namespace
* @class Franson.Cookie
* @static
*/
Franson.Cookie = Franson.Cookie || {};
/**
* @method getValueFromCookie
* @param {string} strName
* @return {string}
*/
Franson.Cookie.getValueFromCookie = function(strName)
{
if (document.cookie == null)
{
return null;
}
var start = document.cookie.indexOf(strName + '=');
if ((!start && (strName != document.cookie.substring(0, strName.length))) || start == -1)
{
return null;
}
var len = start + strName.length + 1;
var end = document.cookie.indexOf(';', len);
if (end == -1)
{
end = document.cookie.length;
}
return decodeURI(document.cookie.substring(len, end));
};