function HTMLCookie(){var n="<div class='headingcccont'><strong>Manage Cookies : <\/strong> We use cookies to improve your experience of the Energy Rating Calculator. Cookies are small pieces of text sent to your browser by this website, as a tool to remember the products that you have compared using the Energy Rating Calculator. We retain this data for 12 months. You can change your browser settings to reject cookies. <\/div> ";n+="<button class='coocki-but' onclick=\"AcceptCookie()\">Accept<\/button>";$("#dvCookie").html(n)}function readMaintenanceCookie(n,t){var r,f,u,i;for(appid=t,r=n+"=",f=document.cookie.split(";"),eraseCookie(),u=0;u<f.length;u++){for(i=f[u];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(r)==0&&i.substring(r.length,i.length)!="")return arrayListItem=JSON.parse(i.substring(r.length,i.length)),refreshListview(t,arrayListItem.length),null}return arrayListItem=[],refreshListview(t,arrayListItem.length),null}function setMaintenanceCookie(n,t){var i=new Date,r;i.setDate(i.getDate()+days);r="; expires="+i.toUTCString();document.cookie=n+"="+JSON.stringify(t)+r+"; path=/"}function eraseCookie(){var n=getCookie("AcceptCookie");n==""&&($("#dvCookie").attr("style","display:flex"),document.cookie="AddToListFridge=; Path=/;",document.cookie="AddToListTV=; Path=/;",document.cookie="AddToListDishWasher=; Path=/;",document.cookie="AddToListWasher=; Path=/;",document.cookie="AddToListComputer=; Path=/;",document.cookie="AddToListDryer=; Path=/;",document.cookie="AddToListAC=; Path=/;",arrayListItem=[],appid!=""&&refreshListview(appid,arrayListItem.length))}function getCookie(n){for(var r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function AcceptCookie(){var n=new Date,t,i;n.setDate(n.getDate()+days);t="; expires="+n.toUTCString();document.cookie="AcceptCookie="+JSON.stringify("1")+t+"; path=/";i=getCookie("AcceptCookie");$("#dvCookie").attr("style","display:none");i==""&&$("#dvCookie").attr("style","display:flex")}var days=$("#HdnCookieExpireDays").val(),appid=""