/*
**     JavaScript Source Code
**     Created by Kalin Ganev
**     <KalinGanev [AT] Gmail (DOT) com>
**     Date Created:  2008-04-14
**     Last Modified: 2008-12-14
**     Note:  Ajax module.
*/





// Declaring gobj_httpRequest as a new global variable:
var  gobj_httpRequest = null;


if (!window.XMLHttpRequest) {
	// Current browser is obsolete (Microsoft® Internet Explorer 6-, Firefox 0.9-, etc.).
	// Trying to find an XMLHttpRequest alternative:
	XMLHttpRequest = function () {
		try {return new ActiveXObject('Microsoft.XMLHTTP' );} catch(e) {}
		try {return new ActiveXObject('Msxml2.XMLHTTP'    );} catch(e) {}
		try {return new ActiveXObject('Msxml2.XMLHTTP.3.0');} catch(e) {}
		try {return new ActiveXObject('Msxml2.XMLHTTP.6.0');} catch(e) {}
		throw new Error('System error: Could not find an XMLHttpRequest alternative for Ajax module!');
	};
}


// Trying to create a new XMLHttpRequest object:
try {
	gobj_httpRequest = new XMLHttpRequest();
	// Here a new XMLHttpRequest object should already exist on most modern browsers.
} catch (e) {
	// Error.
	window.alert(e.description);
}

