function ajaxRequest(url, element, func) {
	var http_request = false;

	if (window.XMLHttpRequest) { // Mozilla, Safari,...
		http_request = new XMLHttpRequest();
	} else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}

	if (!http_request) {
		alert("Cannot create an XMLHTTP instance...");
		return false;
	}
	
	if(url.indexOf('?') > 0)
		url = url + "&rdm=" + Math.random();
	else
		url = url + "?rdm=" + Math.random();
	
	http_request.onreadystatechange = function() {
		callback(http_request, element, func);
	}
	http_request.open('GET', url, true);
	http_request.send(null);
}

function callback(http_request, element, func) {
	var activity_icon = document.getElementById(element + "_activity");

	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			if (activity_icon != null) {
				var src = activity_icon.src;
				activity_icon.src = DOCUMENT_ROOT + "/images/common/blank.gif";
			}
			
			var ajax_content = http_request.responseText;
			//alert(ajax_content);
			
			if (ajax_content.length > 0) {
				var element_obj = document.getElementById(element);
				element_obj.innerHTML = ajax_content;
			}
			
			if (func != null)
				eval(func);
		} else {
			alert("http_request.status: " + http_request.status);
		}
	} else {
		if (activity_icon != null) {
			activity_icon.src = DOCUMENT_ROOT + "/images/" + getSection() + "/common/activity.gif";
		}
	}
}