
function fgetjs(fname,oid){
	/* XMLHttpRequestオブジェクト作成 */
	var xmlhttp = cXH();
	if (xmlhttp == null) {
		window.alert("XMLHttpRequest非対応のブラウザです。");
	}
	
	/* レスポンスデータ処理方法の設定 */
	xmlhttp.onreadystatechange = handleHttpEvent;
	
	/* レスポンスデータ処理用のコールバック関数を定義 */
	function handleHttpEvent(){
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				document.getElementById(oid).innerHTML = xmlhttp.responseText ;
			} else {
			}
		}
	}
	
	/* HTTPリクエスト実行 */
	xmlhttp.open("GET", fname , true);
	xmlhttp.send(null);
}
 
function cXH(){
	if (window.XMLHttpRequest) {			 // Mozilla, Firefox, Safari, IE7
		return new XMLHttpRequest();
	} else if (window.ActiveXObject) {	   // IE5, IE6
		try {
			return new ActiveXObject("Msxml2.XMLHTTP");	// MSXML3
		} catch(e) {
			return new ActiveXObject("Microsoft.XMLHTTP"); // MSXML2まで
		}
	} else {
		return null;
	}
}

