function ajaxURL(url, method, parameters, id, functie) 
{ 
	var ajaxRequest;
	try
	{
		// Opera 8.0+, Firefox, Safari 
		ajaxRequest = new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer 
		try
		{
			ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			//overige 
			try
			{
				ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				// er ging iets mis 
				alert("Uw browser heeft ondersteuning van AJAX afgewezen..");
				return false;
			}
		}
	}
	
	ajaxRequest.onreadystatechange = function()
	{
		if(ajaxRequest.readyState == 4)
		{
			/* get the response */
			var response = ajaxRequest.responseXML;
			eval(functie(response, id));
		}
	}
	ajaxRequest.open(method, url, true);
	ajaxRequest.send(parameters);
}
