﻿	function loadmylank(divid, formobj) {
		method = "GET";
		async = true;
		data = "";
		if (formobj == undefined) {
			ci_value = 0;
		} else {
			ci_value = formobj.ci.options[formobj.ci.selectedIndex].value;
		}
		fileName = "mylank_js.php?ci=" + ci_value;
		//document.getElementById(divid).innerHTML = "<p>読み込み中...</p>";
		//XMLHttpRequestオブジェクト生成
		var httpoj = createHttpRequest() //[1]
	
		//open メソッド
		httpoj.open( method , fileName , async ) //[2]
	
		//受信時に起動するイベント
		httpoj.onreadystatechange = function()  //[4]
		{ 
			//readyState値は4で受信完了
			if (httpoj.readyState==4)  //[5]
			{ 
			//コールバック
			document.getElementById(divid).innerHTML = get_response_text(httpoj.responseText);
			}
		}
	
		//send メソッド
		httpoj.send( data ); //[3]
	}
	
	/*
	function get_response_text ( req ) {
		var text = req;
		if ( navigator.appVersion.indexOf( "KHTML" ) > -1 ) {
			var esc = escape( text );
			if ( esc.indexOf("%u") < 0 && esc.indexOf("%") > -1 ) {
				text = decodeURIComponent( esc );
			}
		}
		return text;
	}
	*/
