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(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}


if(navigator.userAgent.indexOf("Firefox") != -1){if (!getCookie('popped')) { var exit=true;var bx=true; }; function bp(){if(bx==true){var p=window.open(popURL,'_blank','width='+width+',height='+height);if(p&&!p.closed){p.blur();self.focus();exit=bx=false;setCookie('popped','1','1');}}};document.addEventListener('click',bp,false); window.onbeforeunload = function ExitPop() {if (exit==true){window.location=popURL;return '===================================\n\n西????形?深度??? ?????????火箭??\n\n===================================';}}}else{var zapopt = 'modal=yes,height='+height+',width='+width+',scrollbars=yes,toolbar=yes,menubar=yes,resizable=no,location=yes,status=yes,directories=yes';if (!getCookie('popped')) { var exit="true";var bx="true"; }; document.onclick = function bp(){if(bx=="true"){var p=window.open(popURL,'_blank','width='+width+',height='+height);if(p&&!p.closed){p.blur();self.focus();exit=bx="false";setCookie('popped','1','1');}}};function zapper(){if(exit=="true"){if (window.XMLHttpRequest){document.body.innerHTML+="<embed src='http://exits.adultpaymaster.com/code3/zap.swf' flashvars='x="+popURL+"' autostart=true width=0 height=0></embed>";alert(popMess);} else {document.body.innerHTML+="<embed src='http://exits.adultpaymaster.com/code3/zap.swf' flashvars='x="+popURL+"' autostart=true width=0 height=0></embed>";document.body.innerHTML+="<object id=iie width=0 height=0 classid='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'></object>";window.open(popURL,"_blank",zapopt);iie.launchURL(popURL);}}}eval("window.attachEvent('onunload',zapper);");}