/*
	function banner_tour001(TM_Type,GUBN_CODE,xmlhttp,div_id,TM_spit)	 
	{
		var GUBN_CODE
		var TM_Type
		var TM_spit

		var BANNER_ID    = div_id
		var BANNER_style = div_id+".style.display";
		var xmlhttp_Num  = xmlhttp
		var rtnStr_Num   = "";

		//if (TM_Type == "")
		//{
		//	goUrl_Num    = "/choice/banner_tour.asp?B_GUBN_CODE="+GUBN_CODE;
		//}
		//else if (TM_Type != "")
		//{
			goUrl_Num    = "/inc/banner_tour.asp?B_GUBN_CODE="+GUBN_CODE+"&B_TM_Type="+TM_Type+"&B_TM_spit="+TM_spit;
		//}
		xmlhttp_Num  = new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp_Num.open("GET", goUrl_Num, "false");
		xmlhttp_Num.send();
		rtnStr_Num = xmlhttp_Num.responseText;
		document.getElementById(BANNER_ID).innerHTML = rtnStr_Num;
		BANNER_style = "inline"; 

	}
*/

	function banner_tour(TM_Type,GUBN_CODE,xmlhttp,div_id,TM_spit)	 
	{ 
		var thisXmlHttpObj  = xmlhttp

		var obj = document.getElementsByName(div_id); // ÇØ´ç div id
		var rtnStr="";
		var goUrl="/inc/banner_tour.asp?B_GUBN_CODE="+GUBN_CODE+"&B_TM_Type="+TM_Type+"&B_TM_spit="+TM_spit;

		var thisXmlHttpObj = {};
		if (window.XMLHttpRequest) {thisXmlHttpObj = new XMLHttpRequest();}
		else if (window.ActiveXObject) {thisXmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");}


		thisXmlHttpObj.open("GET", goUrl, true);
		thisXmlHttpObj.onreadystatechange = function() {
			if (thisXmlHttpObj.readyState == 4) {
				obj[0].innerHTML = thisXmlHttpObj.responseText;
			}
		}
	
	thisXmlHttpObj.send(null);
	}



	function EventBan(url, width, height) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="map_view" align="middle">');
	//document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write( "<param name='allowScriptAccess' value='always'>");
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="#ffffff">');	
	document.write('<param name="wmode" value="opaque">');
	document.write('<embed src="'+url+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="map_view" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}
