function Query(method, url, data, use_resp_text)
{
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp = null;
	}

	if (xmlhttp == null)
	{
		try {
		 	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlhttp = null;
		}
	}

	if (xmlhttp == null)
	{
		try {
	 		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			xmlhttp = null;
		}
	}

	if (xmlhttp == null) {
		alert('Your browser not support AJAX');
		return;
	}
	
	xmlhttp.open(method, url, false);
	if (method.toLowerCase() == 'post')
	{
		xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
	}
	xmlhttp.send(data);

	if (typeof(use_resp_text) != 'undefined' && use_resp_text) return xmlhttp.responseText;
	else return xmlhttp.responseXML;
}
