var sit = pegarCookie('bloqueado'); if(sit != 1 && sit != 2) { var oWin = window.open("","testpopupblocker","width=1,height=1,top=5000,left=5000"); if (oWin==null || typeof(oWin)=="undefined") { document.cookie = 'bloqueado=1;path=/cidadao/servlet/'; } else { oWin.close(); document.cookie = 'bloqueado=2;path=/cidadao/servlet/'; } }