/**
 * ログインボックス出力
 */

function createHttpRequest()
{
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try {
			return new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				return new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				return null;
			}
		}
	} else {
		return null;
	}
}

function outputLoginBox()
{
	var httpoj = createHttpRequest();
	if (httpoj == null) {
		return null;
	}

	httpoj.onreadystatechange = function()
	{
		if (httpoj.readyState == 4 && httpoj.status == 200) {
			document.getElementById('LOGIN_BOX').innerHTML = httpoj.responseText;
		}
	}

	document.write("<div id='LOGIN_BOX'></div>");

	httpoj.open('GET', '/login_box.php',  true);
	httpoj.send('');
}

outputLoginBox();

