// (C) Copyright 2006-2007 liczniki.org function cookie_set(name, val, exp_hours) { c = name+ '=' + val+";"; if (exp_hours) { var d = new Date; var msec = Date.UTC(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes()); msec += exp_hours*(3600*1000); d.setTime(msec); c += "Expires=" + d.toGMTString(); } document.cookie = c; } function cookie_get(name, def_value) { var pos = document.cookie.indexOf(name+'='); if (pos == -1) return def_value; pos += name.length +1; var pos2 = document.cookie.indexOf(';', pos); if (pos2 == -1) pos2 = document.cookie.length; return document.cookie.substring(pos, pos2); } cookie_set('1923test', 'en'); if (cookie_get('1923test', '') == 'en') blockparams = "b="+cookie_get("msdawid8013",'')+"&r="+cookie_get("msdawid8013000r", ''); else blockparams = "b=t&r=t&cdisabled=t"; // ciasteczka wylaczone - zablokuj zliczanie wizyt image = document.createElement("img"); image.setAttribute("src", "//liczniki.org/site.engine/module_ministat/button_generator.php?&u=dawid8013&"+blockparams); image.style.border = "0"; image.style.padding = "0"; image.style.margin = "0"; node_ = document.getElementById("ministat01adawid8013"); node_.removeChild(node_.childNodes[0]); node_.appendChild(image); cookie_set("msdawid8013", "t", 1); cookie_set("msdawid8013000r", "t", 365*24);