
function getPage(pageURL) {
	xmlhttp = createXMLHttp();
	if (xmlhttp)
	{
		xmlhttp.onreadystatechange = setPageData;
		xmlhttp.open('GET', pageURL);
		xmlhttp.send(null);
	}else{
		alert("XMLHttpRequest失敗");
	}
}
function setPageData()
{
	if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
	{
		document.getElementById("disp").innerHTML = xmlhttp.responseText;
	}
}
// XMLHttpsオブジェクト作成
function createXMLHttp()
{
	try {
		return new ActiveXObject ("Microsoft.XMLHTTP");
	}catch(e){
		try {
			return new XMLHttpRequest();
		}catch(e) {
			return null;
		}
	}
	return null;
}
