/*

POZOJ
(cc) s1e, majx, ~GAF

--------------------------------------
JAHVESKRIPT - xmlhttp request object
--------------------------------------

*/


/*
	begin
	XML HTTP object
	
	init script by majk, Majx IS/IT, ~GAF
	
	we use this to issue http requests without the browser reloading
*/
function setupXmlHttp(warning) {
	var xmlhttp=false;
	
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript conditional compilation, for we to detector older IE.
		try {
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) {
			try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (E) {
				xmlhttp = false;
			}
		}
	@end @*/
	
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			xmlhttp = new XMLHttpRequest();
	}
	
	if ( !xmlhttp && warning ) {
		alert("Your current browser does not support the operation.\n\nList of compatible browsers:\n- Mozilla build 0.9.5+\n- Mozilla Firefox 0.8+\n- Internet Explorer 5+\n- Opera 8.0+");
	}
	
	return xmlhttp;
}
/*
	end XML HTTP
*/
