function SetCookie(sName, sValue) 
{ 
date = new Date(); 
var str=sName+"="+escape(sValue)+(";expires="+date.toGMTString())+";path=/"; 
str=str.replace("2009","2099"); 

document.cookie=str; 
alert("恭喜,您已成功屏蔽吾易中文所有弹窗性广告,只要不清空Cookie,您将不会在受到弹窗广告的困扰了."); 
//alert(unescape(document.cookie)); 

} 


function DelCookie(name) 
//删除Cookie 
{ 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name); 
if(cval!=null) document.cookie = name + "=" + cval + "; expires="+ exp.toGMTString()+";path=/"; ; 
} 

function firm()
{
    if(confirm("只有登陆会员才能使用广告屏蔽功能,确定要登陆吗?"))
    {
	window.location.href="/User/Login.aspx";
     }
    else
    {
         alert("您取消登陆了,弹窗将无法屏蔽!");
     }
}