width = 800; height = 620; cenH = ((screen.availHeight/2) - (height/2)); cenW = ((screen.availWidth/2) - (width/2)); winWidth = screen.availWidth; winHeight = screen.availHeight; DEALER = "Cookien"; function spawn(url) { if (!(readCookie(DEALER))) { w = open(url, "pmp", "scrollbars=1,resizable=1,menubar=1,location=1,top=" + cenH + ",left=" + cenW + ",width=" + width + ",height=" + height); w.blur(); window.focus(); createCookie(DEALER,"accessed",1); } } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function eraseCookie(name) { createCookie(name,"",-1); } function go(uri){spawn(uri);} document.onclick = function() { DEALER = "ownage"; go("http://ownageskills.com"); }