 function getNXMLHttpRequest() {
	if (window.ActiveXObject) {
		try {
			return new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				return new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e1) { return null; }
		}
	} else if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	} else {
		return null;
	}
}
var httpRequestN = null;

function sendNRequest(url, params, callback, method) {
	httpRequestN = getNXMLHttpRequest();
	var httpMethod = method ? method : 'GET';
	if (httpMethod != 'GET' && httpMethod != 'POST') {
		httpMethod = 'GET';
	}
	var httpParams = (params == null || params == '') ? null : params;
	var httpUrl = url;
	if (httpMethod == 'GET' && httpParams != null) {
		httpUrl = httpUrl + "?" + httpParams;
	}
	
	httpRequestN.open(httpMethod, httpUrl, true);
	httpRequestN.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=euc-kr");
	httpRequestN.onreadystatechange = callback;
	
	httpRequestN.send(httpMethod == 'POST' ? httpParams : null);
}

