﻿function getOpenXcode(zoneid) {
    document.write ("<scr"+"ipt type='text/javascript'>")
    document.write ("if(typeof org=='undefined'){var org=new Object();}");
    document.write ("if(typeof org.openx=='undefined'){org.openx=new Object();}");
    document.write ("if(typeof org.openx.util=='undefined'){org.openx.util=new Object();}");
    document.write ("if(typeof org.openx.SWFObjectUtil=='undefined'){org.openx.SWFObjectUtil=new Object();}");
    document.write ("var FlashObject = org.openx.SWFObject;");
    document.write ("<\/scr"+"ipt>");
    
    var m3_u = (location.protocol=='https:'?'https://adv.videolina.it/www/delivery/ajs.php':'http://adv.videolina.it/www/delivery/ajs.php');
    var m3_r = Math.floor(Math.random()*99999999999);
    if (!document.MAX_used) document.MAX_used = ',';
    document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
    document.write ("?zoneid=" + zoneid + "&amp;block=1");
    document.write ('&amp;cb=' + m3_r);
    if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
    document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
    document.write ("&amp;loc=" + escape(window.location));
    if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
    if (document.context) document.write ("&context=" + escape(document.context));
    if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
    document.write ("'><\/scr"+"ipt>");
}