var DL_onunload_store = null; function DL_popup() { //var DL_pop = window.open("http://amch.questionmarket.com/adscgen/invite.php?survey_num=604841&from_node=24414&site_num=9&pic=gif&creativename=opinion2-350x300-1l-eng-nul&secs_up=36000&type=popup","dynamiclogic_popup", "height=300,width=350,top=100,left=100"); var DL_pop = window.open("http://amch.questionmarket.com/adscgen/invite.php?survey_num=604841&from_node=24414&site_num=9&pic=gif&creativename=opinion2-350x300-1l-eng-nul&secs_up=36000&type=popup","", "height=300,width=350,top=100,left=100"); if (DL_pop && ! DL_pop.closed) { DL_pop.blur(); } else { var dle = new Image(); dle.src = "http://a.dlqm.net/adscgen/log_error.php?errcode=7&details="+ (escape("d0/24414/0 Survey Num: 604841")); } if (DL_onunload_store) DL_onunload_store(); } var DL_already_ran; if (!DL_already_ran) { if (window.addEventListener) { // DOM Level 2 window.addEventListener("unload", DL_popup, true); } else if (window.attachEvent) { // IE 5+ window.attachEvent("onunload", DL_popup); } else { // DOM Level 0 - the minimum. May not work if there's contention for the event. DL_onunload_store = window.onunload; window.onunload = DL_popup; } DL_already_ran = 1; }