function displaymonth(month,year,func,jobs,mots,cars) {
	calendar_request = xmlrequestconnect_post('/httprequest/calendar.php');
    calendar_request.onreadystatechange = function() {
    	if(calendar_request.readyState == 4) {
        	returndata = calendar_request.responseText;
        	document.getElementById('calendar').innerHTML = returndata;
		}
	};
	calendar_request.send('month=' + month + '&year=' + year + '&func=' + func + '&jobs=' + jobs + '&mots=' + mots + '&cars=' + cars);

	return false;
}

function calendarhighlight(inputnode)
{
	tablenode = inputnode.parentNode;

	while(tablenode.tagName != "TABLE")
		{ tablenode = tablenode.parentNode; }

	tds = tablenode.getElementsByTagName("TD");

	for(i=0;i<tds.length;i++)
	{
		tds[i].className = tds[i].className.replace(/calendar_highlight/g,"x");
	}

	inputnode.parentNode.className += " calendar_highlight";

	return false;
}
