//JK Popup Window Script (version 3.0)- By JavaScript Kit (http://www.javascriptkit.com) //Visit JavaScriptKit.com for free JavaScripts //This notice must stay intact for legal use //Win Type: Pop Under | 120 minutes period //Specify URLs to randomly select from and popup/popunder: //To display a single URL, just remove all but the first entry below: var popurls=new Array() popurls[0]="http://uangpanas.com/?id=suriyadiklik" function openpopup(popurl){ var winpops=window.open(popurl,"","width=1024px,height=768px,toolbar,location,directories,status,scrollbars,menubar,resizable") winpops.blur() window.focus() } function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } popfrequency="120 minutes" function resetcookie(){ var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()-10) document.cookie = "uangpanas-popunder=;path=/;expires=" + expireDate.toGMTString() } function loadornot(){ if (get_cookie('uangpanas-popunder')==''){ openpopup(popurls[Math.floor(Math.random()*(popurls.length))]) var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()+parseInt(popfrequency)) document.cookie = "uangpanas-popunder="+parseInt(popfrequency)+";path=/;expires=" + expireDate.toGMTString() } } if (get_cookie('uangpanas-popunder')!=parseInt(popfrequency)) resetcookie() loadornot()