function newXMLHttpRequest() {
	var xmlreq = false;
	if (window.XMLHttpRequest) {
		// Create XMLHttpRequest object in non-Microsoft browsers
		xmlreq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		// Create XMLHttpRequest via MS ActiveX
		try {
			// Try to create XMLHttpRequest in later versions
			// of Internet Explorer
			xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e1) {
			// Failed to create required ActiveXObject
			try {
				// Try version supported by older versions
				// of Internet Explorer
				xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e2) {
				// Unable to create an XMLHttpRequest with ActiveX
			}
		}
	}
	return xmlreq;
}

function act_banner_click(bannerType , bannerId, loadurl, loadType) {
	REQ = newXMLHttpRequest();//req 객체반환
	
	//요청처리
	REQ.open("POST", "/admin/banner/banner_spider.html", true);
	REQ.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	REQ.send("bannerType="+bannerType+"&bannerId="+bannerId);
	
	if(loadurl == ""){

		return;
	}else{

		if(loadType == null || loadType == ""){

			window.location.href = loadurl;
		}else if (loadType == "new"){

			//window.open(loadurl,'','toolbar=yes,status=yes,fullscreen=yes,menubar=yes,scrollbars=yes,resizable=yes');
			window.open(loadurl,'bannerpop');
		}
	}
}
