var admOnce = false; document.cookie = 'adm_ec=yes_w; domain:.'+document.domain+'; path=/'; function admPopunder(id, type, address, attributes) { if (admOnce == true || navigator.cookieEnabled == false) return false; if (document.cookie.indexOf('adm_popunder_'+id) != -1 && document.cookie.indexOf('adm_popunder_i') != -1) return false; if (type == 0) { window.open(address,'popunder',attributes).blur(); window.focus(); } else if (type == 1) { window.open(address,'popup',attributes); } admOnce = true; }