// ajax.js

// The following is copied and minutely modified from w3schools.com

// Function to get the XmlHttpRequest object
function GetXmlHttpObject() {
		// variable to hold the object, make it null for now
	var xmlHttp=null;
		
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		}
	catch (e) {
		// Internet Explorer
		try {
			// new version
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
		catch (e) {
			// old version
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
	// whichever object it's picked up from, return it.
	return xmlHttp;
	}
