// 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;
}

// document.getElementById
function $(tagId)
{
	return document.getElementById(tagId);
}

function loadHTMLFile(fName) {
	httpObj = createXMLHttpRequest(displaySidebarRecommendData);
	if (httpObj) {
		httpObj.open("GET",fName,true);
		httpObj.send(null);
	}
}
function displaySidebarRecommendData() {
	if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
		$("sidebarRecommend").innerHTML = httpObj.responseText;
	}else{
		$("sidebarRecommend").innerHTML = "<b>Loading...</b>";
	}
}
