function QSinclude(script_filename) {
    var html_doc = document.getElementsByTagName('head')[0];

    var js = document.createElement('script');
    js.setAttribute('language', 'javascript');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', script_filename);

	if(typeof html_doc == "undefined")
	{
		// be nice to opera and safari
		document.body.appendChild(js);
	}
	else
	{
	    html_doc.appendChild(js);
	}

    return false;
}

function openx(zoneid,contentid){
   var myDate = new Date();
   var openx_s= "";
   var m3_u = (location.protocol=='https:'?'https://pics.docin.com/openx/www/delivery/ajs2.php':'http://pics.docin.com/openx/www/delivery/ajs2.php');
   var m3_r = "" + myDate.getFullYear() + myDate.getMonth() + myDate.getDate() + myDate.getHours();
   //if (!document.MAX_used) document.MAX_used = ',';
   openx_s += m3_u;
   openx_s += "?zoneid="+zoneid+"&contentid="+contentid;
   //openx_s += '&cb=' + m3_r;
   //if (document.MAX_used != ',') openx_s += "&exclude=" + document.MAX_used;
   //openx_s += "&loc=" + escape(window.location);
   //if (document.referrer) openx_s += "&referer=" + escape(document.referrer);
   //if (document.context) openx_s += "&context=" + escape(document.context);
   if (document.mmm_fo) openx_s += "&mmm_fo=1";
   QSinclude(openx_s);
}
