//Set up requests

var xhr = new Array();
var xi = new Array(0);
xi[0] = 1;


function xhrRequest() {
	var xhrsend = xi.length;
	for (var i=0; i<xi.length; i++) {
		if (xi[i] == 1) {
			xi[i] = 0;
			xhrsend = i;
			break;
		}
	}
	xi[xhrsend] = 0;
	if (window.ActiveXObject) {
		try {
			xhr[xhrsend] = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xhr[xhrsend] = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	} else if (window.XMLHttpRequest) {
		xhr[xhrsend] = new XMLHttpRequest();
	}
	return (xhrsend);
}
