function refreshCalendar(path, actionAct){
	//var url = path+"activityShow/dynamicCanlendar.do";
	//var calendarMonth = document.getElementById("calendarMonth").value;
	//var calendarYear = document.getElementById("calendarYear").value;
	//var data = "actionAct="+actionAct+"&calendarYear="+calendarYear+"&calendarMonth="+calendarMonth;
	$.ajax({
		url: path+"activityShow/dynamicCanlendar.do",
		data: {actionAct: actionAct, calendarYear: $("#calendarYear").val(), calendarMonth: $("#calendarMonth").val()},
		async: true,
		cache: true,
		success: function(html){
			sortCalendar(html);
		}		
	});
}

function refreshCalendarUrl(path, actionAct, url, param){
	var url = path+url;
	//var calendarMonth = document.getElementById("calendarMonth").value;
	//var calendarYear = document.getElementById("calendarYear").value;
	//var data = "actionAct="+actionAct+"&calendarYear="+calendarYear+"&calendarMonth="+calendarMonth+"&"+param;
	$.ajax({
		url: url,
		data: {actionAct: actionAct, calendarYear: $("#calendarYear").val(), calendarMonth: $("#calendarMonth").val(), id: $("#id").val()},
		async: true,
		cache: true,
		success: function(html){
			sortCalendar(html);
		}		
	});
}

function sortCalendar(text){
	var JSONObject = eval('('+text+')');
	$("#calendarYear").val(JSONObject.calendarYear);
	$("#calendarMonth").val(JSONObject.calendarMonth);
	$("#calendarBody").empty();
	$("#calendarBody").html(JSONObject.dateString);
	$("#theDate").html(JSONObject.theDate);
}
