function newAjaxObj() {
	if(window.ActiveXObject){
		try {
			return new ActiveXObject("Msxml2.XMLHTTP") ;
		} catch (e) {
			try {
				return new ActiveXObject("Microsoft.XMLHTTP") ;
			} catch (e2) {
				return null ;
			}
		}
	} else if(window.XMLHttpRequest){
		return new XMLHttpRequest() ;
	} else {
		return null ;
	}
}

function sendRequest(callback,url,para,method) {
	var o = newAjaxObj();
	if( o == null ) return null;
	o.onreadystatechange =function () {
		if ( o.readyState == 4 ){
			if (o.status == 200) {
				callback(o);
			} else {
				alert("객체를 받지 못했습니다.");
			}
		}
	}
	method = method.toUpperCase();
	if( method != "POST") method = "GET";
	if( method == "GET" ){
		url += "?" + para;
	}
	o.open(method,url,true);
	o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	o.send(para);
}

function sendRequest2(callback,obj,url,para,method) {
	var o = newAjaxObj();
	if( o == null ) return null;
	o.onreadystatechange =function () {
		if ( o.readyState == 4 ){
			if (o.status == 200) {
				callback(o,obj);
			} else {
				alert("22객체를 받지 못했습니다.");
			}
		}
	}
	method = method.toUpperCase();
	if( method != "POST") method = "GET";
	if( method == "GET" ){
		url += "?" + para;
	}
	o.open(method,url,true);
	o.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	o.send(para);
}
