var popunder 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="1 minutes" aducomonetime="15 minutes" aducomtwotime="5 minutes" function resetcookie(){ var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()-10) } function loadornot(){ if (get_cookie('aducomone')==''){ loadpopunder() var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()+parseInt(aducomonetime)) document.cookie = "aducomone="+parseInt(aducomonetime)+";path=/;expires=" + expireDate.toGMTString() }else{ if (get_cookie('aducomone')!=''){ loadpopundera() } } } function loadpopunder(){ document.write(''); } function loadpopundera(){ if (get_cookie('aducomtwo')==''){ loadpopunderb() var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()+parseInt(aducomtwotime)) document.cookie = "aducomtwo="+parseInt(aducomtwotime)+";path=/;expires=" + expireDate.toGMTString() }else{ document.write ('

Make money from your web site using pop under ads only with ad-k.com'); } } function loadpopunderb(){ document.write(''); } if (get_cookie('aducom')!=parseInt(popfrequency)) resetcookie() loadornot()