function calendarevents(path,param)
{
	var http = false;
	try
	{
		http = new XMLHttpRequest();
	}
	catch(e)
	{
		try
		{
			http = new ActiveXObject('Msxml2.XMLHTTP');
		}
		catch(e)
		{
			http = new ActiveXObject('Microsoft.XMLHTTP');
		}
	}

	if (!http)
	{
	//	document.getElementById('calendar').innerHTML ="problema tecnico, aggiornare la pagina";
		return false;
	}

	var myRandom=parseInt(Math.random()*99999999);  // cache buster

	var pagecall=path+'/include/calendarevents.php?path='+path+'&param='+param+'&rnd='+myRandom;

	http.open('GET', pagecall, true);
	http.onreadystatechange = function()
	{
		if (http.readyState == 4)
		{
			if (http.status == 200)
			{
				var response = http.responseText;
				document.getElementById('calendar').innerHTML = response;
			}
		}
		else
		{
		//	document.getElementById('calendar').innerHTML ="attendere prego ...";
		}
	}
	http.send(null);

}

