function getCalendar(div_id, calendar_id, size, type, month, year) {
	var url = '/app/modules/calendar/xml/calendar.php';

	var myRequest = new ajaxObject(url);
	myRequest.callback = function(responseText, responseStatus, responseXML) {
		if (responseStatus==200) {
			
			var calendarDiv = document.getElementById(div_id);
			calendarDiv.innerHTML = responseText;
			
			setTips();
			makeHover();
		}
	}
	var qs = 'size='+size+'&type='+type+'&m='+month+'&y='+year+'&calid='+calendar_id;
	myRequest.update(qs);
}

function makeHover(){
	//make the button hover
	$("img").each(function(){
		if($(this).attr('src') == '/app/modules/calendar/images/down.gif' || $(this).attr('src') == '/app/modules/calendar/images/up.gif'){
			$(this).bind('mouseover', function(){
				$(this).css({'cursor':'pointer'});
			});
			$(this).bind('mouseout', function(){
				$(this).css({'cursor':''});
			});
		}
	});
}
