
var xmlHttp=null;
function GetXmlHttpObject()
{
  var xmlHttp=null;
  	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		xmlHttp = new XMLHttpRequest();
		if (xmlHttp.overrideMimeType) {
			xmlHttp.overrideMimeType('text/xml'); }
	} 
	else if (window.ActiveXObject) { // IE
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } 
		catch (e) {
			try {
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } 
			catch (e) {}
		}
	}

	if (!xmlHttp) {
		alert('Cannot create XMLHTTP instance');
		return false;
	}
  return xmlHttp;
}