function ajax_action(func, url, param, param2, param3)
{
	var xhr = null;
	
	while(param2.indexOf("&")!=-1)
	{
		param2 = param2.replace(/&/, "%26");
	}
	while(param2.indexOf("\+")!=-1)
	{
		param2 = param2.replace(/\+/, "%2b");
	}
	params = (param!="" || param2!="" || param3!="") ? "?param="+param+"&param2="+param2+"&param3="+param3 : "";
   
	if(window.XMLHttpRequest) xhr = new XMLHttpRequest();
	else if(window.ActiveXObject)
	{
		try
		{
			xhr = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	else
	{
		alert("AJAX is not supported..."); 
		xhr = false; 
	}
	
	xhr.onreadystatechange = function()
	{
		if(xhr.readyState==4 && xhr.status==200)
		{
			if(func!="")
			{
				eval(func+'(xhr.responseText)');
			}
		}
	}
	
	xhr.open("GET", url+params, true);
	xhr.send(null);
}