///////////////////////////////////////////////////////////////////////////////
//	HttpRequest.class.js
//		非同期通信ラッパークラス?
//			Copyright (c) 2008 mochiZ.
//
//	author: mochiZ.
//	create: 2008/12/26-
//	update: 
///////////////////////////////////////////////////////////////////////////////

function HttpRequest(obj, url)
{
	var hh;

	if(window.XMLHttpRequest){
		hh = new XMLHttpRequest();
	}else{
		try{
			hh = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				hh = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				 return null;
			}
		}
	}

	hh.onreadystatechange = function(){
		if(hh.readyState == 4 && hh.status ==200){
			obj.innerHTML = hh.responseText;
		}
	}
	hh.open("GET", url);
	hh.send(null);
}





