function ajax(url) {

	var xmlObj = null;
	if (window.XMLHttpRequest) {
		xmlObj = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			xmlObj = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				return;
			}
		}
	} else {
		return;
	}

	try {
		xmlObj.overrideMimeType('text/xml');
	} catch (e) {}

	xmlObj.open('GET', url, false);
	xmlObj.send(null);

	if (xmlObj.readyState == 4) {
		if (xmlObj.status == 200) {
			return xmlObj.responseText;
		}
		else {
			alert("AJAX Error [" + xmlObj.status  + "]\n\n" + url);
			return;
		}
	}
}

function ajaxNowPage(callback,params) {
	var xmlObj = null;
	if (window.XMLHttpRequest) {
		xmlObj = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			xmlObj = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {
				return;
			}
		}
	} else {
		return;
	}
	
	var url = location.href.replace(location.hash, '').replace(location.search, '') + "?callback=" + callback;
	if (params != null && params != "") url += "&" + params

	try {
		xmlObj.overrideMimeType('text/xml');
	} catch (e) {}

	xmlObj.open('GET', url, false);
	xmlObj.send(null);

	if (xmlObj.readyState == 4) {
		if (xmlObj.status == 200) {
			return xmlObj.responseText;
		}
		else {
			alert("AJAX Error [" + xmlObj.status  + "]");
			return;
		}
	}
}