function getCalendar(div_id, calendar_id, size, type, month, year, eventType) {
	var url = '/app/modules/calendar/xml/calendar.php';
	//document.getElementById('cal_scroll').getCalendar(div_id, calendar_id, size, type, month, year);
	
	var eventTypeSelect = document.getElementById('eventTypeSelect');
	if (eventTypeSelect!=null)
	{
		var loadingGif = document.createElement("img");
		loadingGif.src = "/app/modules/calendar/images/ajax-loader.gif";
		loadingGif.id = "loadingGif";
		eventTypeSelect.appendChild(loadingGif);
	}

	var myRequest = new ajaxObject(url);
	myRequest.callback = function(responseText, responseStatus, responseXML) {
		if (responseStatus==200) {
			
			var calendarDiv = document.getElementById(div_id);
			calendarDiv.innerHTML = responseText;
			
			for (var prop in window)
			{
				if (prop.toString().indexOf('alendarInit_') == 1)
					eval("window."+ prop.toString() + " = null;");
			}
			
			eval("calendarMaster"+calendar_id+" = null;");

			var scripts = calendarDiv.getElementsByTagName("script");
			for (var i=0; i<scripts.length; i++)
			{
				var script = scripts[i].text;
				eval(script);
			}
			
			if (eventTypeSelect!=null)
				eventTypeSelect.removeChild(loadingGif);
						
			function_name = 'calendarMaster' + calendar_id + '()';
			setTimeout ( function_name , 100 );
		}
	}
	var qs = 'size='+size+'&type='+type+'&m='+month+'&y='+year+'&calid='+calendar_id+'&eventType='+eventType;
	myRequest.update(qs);
}