// Ajax ¸¦ »ç¿ëÇÏ±â À§ÇÑ AtiveX °´Ã¼ »ý¼ºÇØÁÜ
function newXMLHttpRequest() {
	var reqHttp;
	if(window.ActiveXObject) {
		try {
			reqHttp = new ActiveXObject("Microsoft.XMLHttp");
			//reqHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			reqHttp = new XMLHttpRequest();
		}
	}
	return reqHttp;
}

// ¾ÆÀÛ½º°´Ã¼ÀÇ Send ¸Þ¼­µå¸¦ ÅëÇØ ¼­¹ö·Î µ¥ÀÌÅÍ ¿äÃ»
function ajax_show(mode,param,actionfile) {
	var xmlHttp = newXMLHttpRequest();
	xmlHttp.open("POST",actionfile,true);
	//strData	=	"mode="+ mode +"&"+ param;
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.Send(param);	
	
	if(xmlHttp == null){
		alert("IE ºê¶ó¿ìÀú¸¦ »ç¿ëÇÏ¼¼¿ä");
		history.back();
	}

	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				if(mode != null) {
					eval(mode +"(xmlHttp)");
				}
			}
		}
	}
}