
function loadCalendar(yearMonth)
{
	var myAjax = new Ajax.Request(
			"./CalendarContent.do", 
			{
				method: 'get', 
				parameters: "yearMonth=" + yearMonth, 
				onComplete: displayData
			});
//	httpObj = createXMLHttpRequest(displayData);
//	if (httpObj)
//	{
//		httpObj.open("GET","./CalendarContent.do?yearMonth=" + yearMonth,true);
//		httpObj.send(null);
//	}
}

function displayData(originalRequest)
{
	$('calendar').innerHTML = originalRequest.responseText;
//	if ((httpObj.readyState == 4) && (httpObj.status == 200))
//	{
//		var o = $('calendar');
//		o.innerHTML = httpObj.responseText;
//	}
}

// HTTP通信用、共通関数
//function createXMLHttpRequest(cbFunc)
//{
//	var XMLhttpObject = null;
//	try{
//		XMLhttpObject = new XMLHttpRequest();
//	}catch(e){
//		try{
//			XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
//		}catch(e){
//			try{
//				XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
//			}catch(e){
//				return null;
//			}
//		}
//	}
//	if (XMLhttpObject) {
//		XMLhttpObject.onreadystatechange = cbFunc;
//	}
//	return XMLhttpObject;
//}
