var doepu = 1; var intepuurl = "/register_popunder.asp?pop_id=81"; var intepuargs = "height=700,width=750,location=0,menubar=0,scrollbars=0,statusbar=0,toolbar=0"; function popup(url, args) { var w=eval("page" + new Date().getTime() + "=window.open('" + url + "', '_blank', '" + args + "');"); return w; } function popunder(url) { var wargs = "width=200,height=200,left=" + window.screenX + ",top=" + window.screenY; alert(wargs); var w=eval("page" + new Date().getTime() + "=window.open('" + url + "', '_blank', wargs);"); w.blur(); window.focus(); return w; } function showepu() { if (doepu != 0) { var intw = popup(intepuurl, intepuargs); } } function noepu() { doepu = 0; } function setepu(u) { epuurl = u; } window.onunload = showepu;