function getCookies() {
var parsedCookies = {};
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
var parts = cookie.split('=');
parsedCookies[parts.shift().trim()] = decodeURI(parts.join('='));
}
return parsedCookies;
Message too long. Click here to view full text.