function getXmlHttp(){
  var xmlhttp;
  try {
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {
	xmlhttp = false;
    }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function get(year, month) {
var get_h = getXmlHttp();
get_h.onreadystatechange = function() {
	if ((get_h.readyState == 4)&&(get_h.status == 200)) {
			var resid=document.getElementById('calendarajax');
			resid.innerHTML=get_h.responseText;
        	}
  	}
get_h.open('GET', '/modules/calendar/ajax.php?year='+year+'&month='+month, true);
get_h.send(null);
}
