function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 ;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return ""
}

function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toUTCString());
}

function checkCookie()
{
username=getCookie('armorizeblog');
if (username!= "" && username!=null) {} else
  {
    setCookie('armorizeblog','visitor',365);
    alert('Dear Reader, this blog contains full versions of malicious code and may trigger false positives from your antivirus software. Please be assured that the code is rendered as text for your research purposes, and not executed, and therefore any antivirus alert is a false positive. Thank you for supporting our blog!');
  }
}

checkCookie();
