// JavaScript Document
<!--
function createXMLHttpRequest(func){
	var xmlHttpObject = null;
	if(window.XMLHttpRequest){
		xmlHttpObject = new XMLHttpRequest();
	}else if(window.ActiveXObject){
		try{
			xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				return null;
			}
		}
	}
	if(xmlHttpObject) xmlHttpObject.onreadystatechange = func;
	return xmlHttpObject;
}

function loadFile(fileName,callBackFunc){
	httpObj = createXMLHttpRequest(callBackFunc);
	if(httpObj){
		httpObj.open("GET",fileName,true);
		httpObj.send(null);
	}
}

function displayHtml(){
	if((httpObj.readyState ==4) && (httpObj.status ==200)){
			document.getElementById("topics-window").innerHTML = httpObj.responseText;
	}else if((httpObj.readyState ==4) && (httpObj.status == 404)){
		document.getElementById("topics-window").innerHTML = "指定されたファイルは存在しませんでした";
	}else{
		document.getElementById("topics-window").innerHTML = "<strong>Wait.....</strong>";
	}
}

//-->
