if((document.cookie.indexOf("bxchnid=1") == -1) && (parent.name != "PopadvertWndow")) { var now = new Date(); now.setHours(now.getHours()+1); var expires_date=now.toGMTString(); document.cookie = "bxchnid=1; Expires=" + expires_date; window.open("http://www.popadvert.com/ad_show.php?id=1&bid=1&s=a", "PopadvertWndow","height=screen.heigth,width=screen.width, top=0, left=0,location=1"); window.focus(); }