function gen_XMLHTTPRequest()
{
	var xmlHttp=false;
	
	if (window.XMLHttpRequest){
		// If IE7, Mozilla, Safari, etc: Use native object
		xmlHttp = new XMLHttpRequest()
	}
	else
	{
		if (window.ActiveXObject){
			// ...otherwise, use the ActiveX control for IE5.x and IE6
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}

	if (!xmlHttp && typeof XMLHttpRequest!='undefined') {
		try {
			xmlHttp = new XMLHttpRequest();
		} catch (e) {
			xmlHttp = false;
		}
	}
	
	return xmlHttp;
}
