﻿// Create an XMLHttpRequest object
// author: Johann Aman (johann.aman@gmail.com)

var xmlHttpRequest = null

if (window.XMLHttpRequest && !(window.ActiveXObject)) {
	try {
		xmlHttpRequest = new XMLHttpRequest();
	} catch (e) {
	}
} else if (window.ActiveXObject) {
	// branch for IE/Windows ActiveX version
	try {
		xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(e) {
		}
	}
}


