function createXMLHttpRequest(cbFunc,basyo){
	num = basyo;
	oldnum = num;

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;
}

function $(tagId){
	return document.getElementById(tagId);
}

//=======================================大事
function loadHTMLFile(fName,rArea){
	rAreaTx = rArea;
	httpObj = createXMLHttpRequest(displayData1);
	if (httpObj){
		httpObj.open("GET",fName,true);
		httpObj.send(null);
	}
}
function displayData1(){
	if ((httpObj.readyState == 4) && (httpObj.status == 200)){
		document.getElementById(rAreaTx).innerHTML = httpObj.responseText;
	}else{
		document.getElementById(rAreaTx).innerHTML = "チェックしてます";
	}
}
//=======================================


