

if (window.ActiveXObject && !window.XMLHttpRequest) {
	window.XMLHttpRequest = function()
	{
		try { return (new ActiveXObject(   'Msxml2.XMLHTTP')); } catch (e) {}
		try { return (new ActiveXObject('Microsoft.XMLHTTP')); } catch (e) {}
		return (null);
	}
}


function getDataHttp(url, res_func, err_func)
{
	var xmlhttp = new XMLHttpRequest();
	xmlhttp.open('GET', url, true);
	xmlhttp.onreadystatechange = function()
	{
		//if (xmlhttp.readyState == 4 && xmlhttp.stateus == 200) {
		if (xmlhttp.readyState == 4) {
			if (res_func) { res_func(xmlhttp); }
		}
		else {
			if (err_func) { err_func(xmlhttp); }
		}
	}
	xmlhttp.send(null);
}

