var rmf_storage_key = 'rmf_cookie_id'; var rmf_cookie_id = '11a01a75010871bddfefb71c'; function r_getCookieValue(a) { var b = document.cookie.match('(^|;)\\s*' + a + '\\s*=\\s*([^;]+)');return b ? b.pop() : false; } function r_setCookieValue(a, v) { var expires = ""; var date = new Date(); date.setTime(date.getTime() + (770*24*60*60*1000)); expires = "; expires=" + date.toUTCString(); document.cookie = a + "=" + v + expires + "; path=/; SameSite=None; Secure"; } function r_getLocalStorageValue(a) { if (typeof localStorage == "object") { if (typeof localStorage.getItem(a) == "string" && localStorage.getItem(a) != null) { return localStorage.getItem(a); } else { return false; } } else { return false; } } function r_setLocalStorageValue(a, v) { if (typeof localStorage == "object") { localStorage.setItem(a, v); } } function getServiceCookieValue() { service_cookie_id = false; service_cookie_id = r_getCookieValue(rmf_storage_key); if (service_cookie_id == false) service_cookie_id = r_getLocalStorageValue(rmf_storage_key); if (service_cookie_id.length == 24) { return service_cookie_id; } else { return false; } } var service_cookie_value = getServiceCookieValue(); if (service_cookie_value != false && service_cookie_value != rmf_cookie_id) { rmf_cookie_id = getServiceCookieValue(); var i = new Image(1,1); i.src = 'https://www.gruparmf.pl/cookies/sc.php?cv=' + service_cookie_value; } r_setCookieValue(rmf_storage_key, rmf_cookie_id); r_setLocalStorageValue(rmf_storage_key, rmf_cookie_id);