// Get the HTTP Object
function getAjax()
{
	if (window.ActiveXObject)
	    return new ActiveXObject("Microsoft.XMLHTTP");
	else if (window.XMLHttpRequest)
	    return new XMLHttpRequest();
	else
	{
	    alert("Your browser does not support AJAX.");
	    return null;
	}
}
function ShowMonth(pid, year, month)
{
    httpObject = getAjax();
    if (httpObject != null)
    {
		httpObject.open("GET", "/calendar.php?id="+pid+"&year="+year+"&month="+month, true);
        httpObject.send(null);
        httpObject.onreadystatechange = updateCalendar;
    }
}
function updateCalendar()
{
    if(httpObject.readyState == 4)
    {
        document.getElementById('calendar_container').innerHTML = httpObject.responseText;
    }
}

