xmlhttpCounter = 0;function xmlhttp(strUrl, strSubmit, strMethod, strResultFunc, strDataType, strResponse) {	// strUrl		= destination url	// strSubmit	= querystring to submit	// strMethod	= 'GET' or 'POST'	// strResultFunc	= callback function	// strDataType	= xml or txt	// strResponse	= wait for response, true or false		var xmlHttpReq = false;	    // Mozilla/Safari    if (window.XMLHttpRequest) {            xmlHttpReq = new XMLHttpRequest();            xmlHttpReq.overrideMimeType('text/xml'); // probleem opera!			xmlhttpCounter = xmlhttpCounter+1;    }    // IE    else if (window.ActiveXObject) {            xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");			xmlhttpCounter = xmlhttpCounter+1;    }		xmlHttpReq.open(strMethod, strUrl, strResponse);    xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');	if (strResponse){		xmlHttpReq.onreadystatechange = function() {			if (xmlHttpReq.readyState == 4) {		        switch(strDataType){					case "xml":						input = xmlHttpReq.responseXML;						break;					case "text":						input = xmlHttpReq.responseText;						break;				}				eval(strResultFunc);		    }		}	    xmlHttpReq.send(strSubmit);	} else {		xmlHttpReq.send(strSubmit);		switch(strDataType){			case "xml":				input = xmlHttpReq.responseXML;				break;			case "text":				input = xmlHttpReq.responseText;				break;		}		eval(strResultFunc);	}	xmlhttpCounter = xmlhttpCounter-1;}function xmlhttp_checkConnections() {	alert("connections: " + xmlhttpCounter);}
