<!--
function Include_InitializeRequest(){
	var	Include_Request;
	try	{
		Include_Request=new	ActiveXObject("Msxml2.XMLHTTP");
	} catch(e) {
		try{
			Include_Request=new	ActiveXObject("Microsoft.XMLHTTP");
		} catch(oc)	{
			Include_Request=null;
		}
	}
	if(!Include_Request&&typeof	XMLHttpRequest!="undefined"){
		Include_Request=new	XMLHttpRequest();
	}
	return Include_Request;
}

var Include_Index=0;
var Include_Request_Array = new Array();
function Include(url, tag_id){
	Include_Request = Include_InitializeRequest();
	Include_Request.open("GET", url, false); // true);  switched because onreadystate not implemented and sometimes oas to slow on asynch responses
	Include_Request.send(null);
	Include_Request_Array[Include_Index++] = Include_Request;
	Include_Process(Include_Index-1,tag_id,0);
// should implement onreadystate, but there is no way of determining which request came back
// to onreadystate, without adding separate callbacks for each request and capping # of simultaneous
// allowed async calls to # of available callback functions.  So left as synchronous for now
// as oas seems to be very fast.
}

function Include_Queue(url, tag_id){
	Include(url, tag_id);
}

function Include_Process(Include_Index, tag_id, count){
	if(Include_Request_Array[Include_Index].readyState == 4){
		if(Include_Request_Array[Include_Index].status == 200){
			var obj = document.getElementById(tag_id);
			if(obj != null)
				obj.innerHTML = Include_Request_Array[Include_Index].responseText;
		}
	} else {
		if(count < 20){
			setTimeout('Include_Process('+Include_Index+', "'+tag_id+'", '+count+'+1)',100);
		}
	}
}

function IncludeByFormFields(formid, divid){	
	var linkid = document.getElementById(formid);
	if(linkid != null)
		Include('/PremiumPlacement/SinglePremiumAd.aspx?linkid='+linkid.value+'&version='+Math.random(),divid);	
}
-->