var div_id;
//　指定されたファイルをサーバーから取得

function getFile(divID,filename)
{
	div_id = divID;
	xmlhttp = createXMLHttp();
	if (xmlhttp) {
		xmlhttp.onreadystatechange = check;
		xmlhttp.open("GET", filename, true);
		xmlhttp.send(null);
	}
}
//　読み込みデータチェック＆表示処理
function check()
{
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
		document.getElementById(div_id).innerHTML = xmlhttp.responseText;
	}
}
// XMLHttpオブジェクト作成
function createXMLHttp()
{
	try {
		return new ActiveXObject ("Microsoft.XMLHTTP");
	}catch(e){
		try {
			return new XMLHttpRequest();
		}catch(e) {
			return null;
		}
	}
	return null;
}
//
