<!--
	// W3C DOM에서 제시하고 있는 HTML 4.01의 DOM 참조에 따른 객체 초기화
	var W3CDOM = (document.createElement && document.getElementsByTagName);
	//var isW3DOM = (document.getElementById ? true : false);				// "W3CDOM" 변수값과 동일함
	//var isIE4   = ((document.all && !isW3DOM) ? true : false);
	var isIE4   = ((document.all && !W3CDOM) ? true : false);
	var isNS4   = (document.layers ? true : false);
	var isMNS   = (("Netscape" == navigator.appName) ? true : false);
	
	var MIN_LANGTH = 4;
	var MAX_LANGTH = 20;
	
	
	//***************************************************************
	//* 
	//* Browser detect
	//*  - http://www.quirksmode.org/js/detect.html
	//* 
	//* 작 성 자: Peter-Paul Koch
	//* 작성일자: 2006년 9월 12일
	//*
	//* 수 정 자: 의미소프트(주) 유지보수팀
	//* 수정일자: .2009년 10월 8일: Safari 항목값 추가
	//*           .2009년  6월 1일: Chrome, iPhone 항목 추가
	//*           .2009년  7월 6일: Netscapes(9+) 항목 추가
	//* 
	//* 
	//* [Use]
	//*  .Browser name: BrowserDetect.browser
	//*  .Browser version: BrowserDetect.version
	//*  .OS name: BrowserDetect.OS
	//* 
	//* [Let's detect your browser:]
	//* <pre><script type="text/javascript">
	//* <!--
	//* 	document.write('<p class="accent">You\'re using ' + BrowserDetect.browser + ' ' + BrowserDetect.version + ' on ' + BrowserDetect.OS + '!</p>');
	//* // -->
	//* </script></pre>
	//*
	//* [Use this information to add new objects to the browser detect.]
	//* <pre><script type="text/javascript">
	//* <!--
	//* 	for (i in navigator)
	//*	{
	//*		document.write('<br />navigator.' + i + ' = ' + navigator[i]);
	//*	}
	//* // -->
	//* </script></pre>
	//* 
	//***************************************************************
	var BrowserDetect = {
		init: function () {
			this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
			this.version = this.searchVersion(navigator.userAgent)
				|| this.searchVersion(navigator.appVersion)
				|| "an unknown version";
			this.OS = this.searchString(this.dataOS) || "an unknown OS";
		},
		searchString: function (data) {
			for (var i=0;i<data.length;i++)	{
				var dataString = data[i].string;
				var dataProp = data[i].prop;
				this.versionSearchString = data[i].versionSearch || data[i].identity;
				if (dataString) {
					if (dataString.indexOf(data[i].subString) != -1)
						return data[i].identity;
				}
				else if (dataProp)
					return data[i].identity;
			}
		},
		searchVersion: function (dataString) {
			var index = dataString.indexOf(this.versionSearchString);
			if (index == -1) return;
			return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
		},
		dataBrowser: [
			{
				string: navigator.userAgent,
				subString: "Chrome",
				identity: "Chrome"
			},
			{
				string: navigator.userAgent,
				subString: "OmniWeb",
				versionSearch: "OmniWeb/",
				identity: "OmniWeb"
			},
			{
				string: navigator.vendor,
				subString: "Apple",
				identity: "Safari",
				versionSearch: "Version"
			},
			{
				prop: window.opera,
				identity: "Opera"
			},
			{
				string: navigator.vendor,
				subString: "iCab",
				identity: "iCab"
			},
			{
				string: navigator.vendor,
				subString: "KDE",
				identity: "Konqueror"
			},
			{		// for newer Netscapes (9+)
				string: navigator.userAgent,
				subString: "Navigator",
				identity: "Mozilla"
			},
			{
				string: navigator.userAgent,
				subString: "Firefox",
				identity: "Firefox"
			},
			{
				string: navigator.vendor,
				subString: "Camino",
				identity: "Camino"
			},
			{		// for newer Netscapes (6+)
				string: navigator.userAgent,
				subString: "Netscape",
				identity: "Netscape"
			},
			{
				string: navigator.userAgent,
				subString: "MSIE",
				identity: "Explorer",
				versionSearch: "MSIE"
			},
			{
				string: navigator.userAgent,
				subString: "Gecko",
				identity: "Mozilla",
				versionSearch: "rv"
			},
			{ 		// for older Netscapes (4-)
				string: navigator.userAgent,
				subString: "Mozilla",
				identity: "Netscape",
				versionSearch: "Mozilla"
			}
		],
		dataOS : [
			{
				string: navigator.platform,
				subString: "Win",
				identity: "windows"
			},
			{
				string: navigator.platform,
				subString: "Mac",
				identity: "Mac"
			},
			{
				string: navigator.userAgent,
				subString: "iPhone",
				identity: "iPhone/iPod"
			},
			{
				string: navigator.platform,
				subString: "Linux",
				identity: "Linux"
			}
		]
	
	};
	BrowserDetect.init();
	
	
	// Microsoft Internet Explorer 특허 소송과 관련하여 추가함
	// 작성일자 : 2006년 5월 26일
	// 작 성 자 : 의미소프트(주) 유지보수팀
	function GetBrowser()
	{
		var agt = navigator.userAgent.toLowerCase();
		
		if( ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) )
			return 1;    // "IE"
		else if( ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
			 && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
			 && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)) )
			return 2;    // "Netscape";
		else
			return 0;    // "unknown";
	}
	
	
	//***************************************************************
	//*
	//* Cookie Handler Functions
	//*
	//***************************************************************
	
	//***************************************************************
	//* getCookie() 함수 : Cookie 값을 읽는다.
	//***************************************************************
	function getCookie(name) {
		var objCookie = null;
		
		var strArg = "";
		var iALen  = 0;
		var iCLen  = 0;
		var i      = 0;
		var j      = 0;
		
		objCookie = document.cookie;
		
		strArg = name + "=";
		iALen  = strArg.length;
		iCLen  = objCookie.length;
		
		while (i < iCLen) {
			j = i + iALen;
			if (objCookie.substring(i, j) == strArg) return getCookieVal(j);
            
			i = objCookie.indexOf(" ", i) + 1;
			
			if (i == 0) break;
		}
		
		return "";
	}
	
	
	//***************************************************************
	//* setCookie() 함수 : Cookie 값을 설정한다.
	//***************************************************************
	function setCookie(name, value) {
		var argv = setCookie.arguments;
		var argc = setCookie.arguments.length;
		
		var expires = (2 < argc) ? argv[2] : null;
		var path    = (3 < argc) ? argv[3] : null;
		var domain  = (4 < argc) ? argv[4] : null;
		var secure  = (5 < argc) ? argv[5] : false;
		
		document.cookie = name + "=" + value +
						((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
						((path == null)    ? "" : ("; path=" + path)) +
						((domain == null)  ? "" : ("; domain=" + domain)) +
						((secure == true)  ? "; secure" : "");
	}
	
	
	//***************************************************************
	//* getCookieVal() 함수 : getCookie() 함수 내부에서 호출되어져 해
	//* 당 Cookie 값을 추출한다.
	//***************************************************************
	function getCookieVal(offset) {
		var objCookie = null;
		var strResult = "";
		var strEnd    = 0;
		
		objCookie = document.cookie;
		strEnd = objCookie.indexOf(";", offset);
		
		if (strEnd == -1) strEnd = objCookie.length;
		
		strResult = objCookie.substring(offset, strEnd);
		
		return strResult;
	}
	
	// http://www.quirksmode.org/js/dhtmloptions.html
	// Version B
	// Browser별 DCOM Style를 지정하기 위해 JavaScript 객체를 참조하는 함수
	function fnGetObj(name)
	{
		if (document.getElementById) {
			this.obj = document.getElementById(name);
			//this.style = document.getElementById(name).style;
		} else if (document.all) {
			this.obj = document.all[name];
			//this.style = document.all[name].style;
		} else if (document.layers) {
			this.obj = fnGetObjNN4(document, name);
			this.style = this.obj;
		}
	}
	
	function fnGetObjNN4(obj, name)
	{
		var x = obj.layers;
		var foundLayer;
		
		for (var i=0;i<x.length;i++)
		{
			if (x[i].id == name) {
				foundLayer = x[i];
			} else if (x[i].layers.length) {
				var tmp = fnGetObjNN4(x[i], name);
			}
			
			if (tmp) {
				foundLayer = tmp;
			}
		}
		return foundLayer;
	}
	
	// macromedia社에서 제공하는 JavaScript 함수들
	function MM_swapImgRestore() { //v3.0
		var i, x, a;
		
		a = document.MM_sr;
		for(i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) {
			x.src = x.oSrc;
		}
	}
	
	function MM_preloadImages() { //v3.0
		var d = document;
		
		if (d.images) {
			
			if (!d.MM_p) {
				d.MM_p = new Array();
			}
			
			var i, j, a;
			j = d.MM_p.length;
			a = MM_preloadImages.arguments;
			for(i = 0; i < a.length; i++) {
				if (0 != a[i].indexOf("#")) {
					d.MM_p[j] = new Image;
					d.MM_p[j++].src = a[i];
				}
			}
			
		}
	}
	
	function MM_findObj(n, d) { //v4.0
		var p, i, x;
		
		if (!d) {
			d = document;
		}
		
		if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
			d = parent.frames[n.substring(p + 1)].document;
			n = n.substring(0, p);
		}
		
		if ( !(x = d[n]) && d.all ) {
			x = d.all[n];
		}
		
		for (i = 0; !x && i < d.forms.length; i++) {
			x = d.forms[i][n];
		}
		
		for (i = 0; !x && d.layers && i < d.layers.length; i++) {
			x = MM_findObj(n, d.layers[i].document);
		}
		
		if (!x && document.getElementById) {
			x = document.getElementById(n);
		}
		
		return x;
	}
	
	function MM_swapImage() { //v3.0
		var i, j, x, a;
		
		j = 0;
		a = MM_swapImage.arguments;
		document.MM_sr = new Array;
		
		for (i = 0; i < (a.length - 2); i += 3) {
			
			if ((x = MM_findObj(a[i])) != null) {
				document.MM_sr[j++] = x;
				
				if (!x.oSrc) {
					x.oSrc = x.src;
				}
				
				x.src = a[i + 2];
			}
			
		}
		
	}
	
	function MM_reloadPage(init)
	{  //reloads the window if Nav4 resized
		
		if (init == true)
		{
			
			with (navigator)
			{
				if ( (appName == "Netscape") && (parseInt(appVersion) == 4) )
				{
					document.MM_pgW = innerWidth;
					document.MM_pgH = innerHeight;
					onresize = MM_reloadPage;
				}	// if ()
			}	// with (navigator)
			
		} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) {
			location.reload();
			
		}	// if (init==true)
		
		return;
	}
	MM_reloadPage(true);
	
	function MM_showHideLayers()
	{	//v9.0
		var i,p,v,obj,args = MM_showHideLayers.arguments;
		
		for(i=0; i < (args.length - 2); i += 3)
		{
			
			with (document)
			{
				if (getElementById && ((obj = getElementById(args[i])) != null))
				{
					v = args[i+2];
					
					if (obj.style)
					{
						obj = obj.style;
						v = (v=='show') ? 'visible' : (v=='hide') ? 'hidden' : v;
					}
					obj.visibility=v;
				}
			}	// with (document)
			
		}	// for
		
		return;
	}
	
	function MM_openBrwindow(theURL, winName, features) { //v2.0
		window.open(theURL, winName, features);
	}

	function MM_openBrwindowEx(theURL, winName, features) {
		var strChkVal = features.toLowerCase();
		
		var PatternW = new RegExp("width=([0-9]+)([^0-9]+|$)");
		var PatternH = new RegExp("height=([0-9]+)([^0-9]+|$)");
		
		if (PatternW.test(strChkVal) && PatternH.test(strChkVal))
		{
			
			// Microsoft windows XP SP2 관련한 변경사항 반영
			var objPopup = window.open(theURL, winName, features);
			if (null == objPopup)
			{
				alert("차단된 팝업창을 허용해 주십시오."); 
			}
		
		} else {
		
			alert("생성할 팝업창 크기값 설정이 잘못되었습니다.");
		
		}

	}
	
	/**************************************************************/
	/********* 메인메뉴의 하단에 출력되는 레이어 스크립트 *********/
	/**************************************************************/
	var isNav, isIE;
	var coll = "";
	var styleObj = "";
	var parent = "";
	if (parseInt(navigator.appVersion) >= 4)
	{
		if (navigator.appName == "Netscape")
		{
			isNav = true;
		} else {
			isIE = true;
			coll = "all.";
			styleObj = ".style";
		}
	}
	
	function getObject(obj, parent)
	{
		var theObj;
		if (parent != "" && 0)
		{
			if (typeof obj == "string")
			{
				theObj = eval("document." + parent + ".document." + coll + obj + styleObj);
			} else {
				theObj = obj;
			}
		} else {
			if (typeof obj == "string")
			{
				theObj = eval("document." + coll + obj + styleObj);
			} else {
				theObj = obj;
			}
		}
		return theObj;
	}
	
	function hideDiv(obj, parent)
	{
		document.all.menu_bar.style.display = "block";
		
		var theObj = getObject(obj, parent);
		theObj.visibility = "hidden";
		theObj.display = "none";
	}
	
	function showDiv(obj, parent)
	{
		document.all.menu_bar.style.display = "block";
		
		var theObj = getObject(obj, parent);
		theObj.visibility = "visible";
		theObj.display = "block";
	}
	/****************************************************************/
	/********* 메인메뉴의 하단에 출력되는 레이어 스크립트 끝*********/
	/****************************************************************/
	
	
	// 레이어 객체 표시하기/감추기 함수
	function fnShowHideObjet(obj, bShow)
	{
		if (bShow) {
			obj.style.visibility = "visible";
			obj.display = "block";
		} else {
			obj.style.visibility = "hidden";
			obj.style.display = "inline";
		}
		return;
	}

	
	// popup window에서 사용하는 Cookie설정 함수
	//***************************************************************
	//* setCookieEx() 함수 : Cookie 값을 설정한다.
	//***************************************************************
	function setCookieEx(name, value)
	{
		var strBuffer = "";
		
		var argv = setCookieEx.arguments;
		var argc = setCookieEx.arguments.length;
		
		var expires = (2 < argc) ? argv[2] : null;
		var path    = (3 < argc) ? argv[3] : null;
		var domain  = (4 < argc) ? argv[4] : null;
		var secure  = (5 < argc) ? argv[5] : false;
		
		var todayDate = new Date();
		if (2 < argc) {
			todayDate.setDate( todayDate.getDate() + expires );
			todayDate.setTime( todayDate.getTime() + expires*60*60 *1000);
			
			if ( 12 >= parseInt(expires, 10) ) {
				todayDate.setHours(00, 00, 00);
			}
		}
		
		strBuffer = name + "=" + value +
					((expires == null) ? "" : ("; expires=" + todayDate.toGMTString())) +
					((path == null)    ? "" : ("; path=" + path)) +
					((domain == null)  ? "" : ("; domain=" + domain)) +
					((secure == true)  ? "; secure" : "");
		if ( ";" != strBuffer.charAt(strBuffer.length - 1) ) {
			strBuffer += ";";
		}
		
		document.cookie = strBuffer;
	}
	
	
	// http://www.kkaok.pe.kr/servlet/KBoard?cmd=view&tableName=kjavascript&flag=1&search=content&findword=%BC%BC%BA%EA%B4%CF&gotoPage=1&seq=147
	// 팝업창 닫기
	function fnWinClose()
	{
		if (top != self) {
			top.close();
		} else {
			self.close();
		}
	}
	
	
	// http://korea.internet.com/channel/content.asp?kid=10&nid=14654&cid=189
	// http://kkaok.pe.kr/servlet/KBoard?cmd=view&tableName=kjavascript&flag=1&search=title&findword=print&gotoPage=1&seq=38
	// print하기
	function fnPrintPage() {
		if (window.print) {
			window.print();
		} else {
			alert("죄송합니다. 이 브라우저는 이 기능을 지원하지 않습니다!");
		}
	}
	
	// Main 화면에서 사용하는 팝업창
	function autoPopup(refs)
	{
		var nWidth = 350;
		var nTop = 506;
		
		var window_left = (screen.width - nWidth) / 2;
		var window_top = (screen.height - nTop) / 2;
		
		MM_openBrwindowEx(refs, "NoteWind", "toolbar=no,width=" + nWidth + ",height=" + nTop + ",status=no,scrollbars=auto,resizable=no,div=no,top=" + window_top + ",left=" + window_left);
	}
	
	// Main 화면에서 사용하는 팝업창
	function autoPopup2(refs, nWidthPos, nTopPos)
	{
		var nWidth = 0;
		var nTop = 0;
		
		if (0 >= parseInt(nWidthPos, 10)) {
			nWidth = 350;
		} else {
			nWidth = nWidthPos;
		}
		if (0 >= parseInt(nTopPos, 10)) {
			nTop = 506;
		} else {
			nTop = nTopPos;
		}
		
		var window_left = (screen.width - nWidth) / 2;
		var window_top = (screen.height - nTop) / 2;
		
		MM_openBrwindowEx(refs, "NoteWind", "toolbar=no,width=" + nWidth + ",height=" + nTop + ",status=no,scrollbars=auto,resizable=no,div=no,top=" + window_top + ",left=" + window_left);
	}
	
	// Main 화면에서 사용하는 팝업창
	function autoPopupEx(strWndName, refs)
	{
		var nWidth = 312;
		var nHeight = 304;
		
		MM_openBrwindowEx(refs, strWndName, "toolbar=no,width=" + nWidth + ",height=" + nHeight + ",status=no,scrollbars=auto,resizable=no,div=no");
	}
	
	// 중국 지역별 상회소개용 팝업창
	function popup(refs) {
		var window_left = (screen.width-790)/2;
		var window_top = (screen.height-590)/2;   
		
		MM_openBrwindowEx(refs,"profileWins",'toolbar=no,width=617,height=702,status=no,scrollbars=yes,resizable=no,div=no,top=' + window_top + ',left=' + window_left + '');
	}
	
	// Internet Exploerer 상태바 감추기
	// 작성일자 : 2007년 02월 06일
	// 작 성 자 : (주)이지모션 유지보수팀
	function HideStatus()
	{
		window.status = '';
		
		return true;
	}
/*	if (document.layers)
	{
		document.captureEvents(Event.MouseOver | Event.MouseOut| Event.onLoad | Event.onUnload| Event.MouseDown | MouseUp);
	}
	document.onMouseOver = HideStatus;
	document.onMouseOut = HideStatus;
	document.onLoad = HideStatus;
	document.onUnload = HideStatus;
	document.onMouseDown = HideStatus;
	document.onMouseUp = HideStatus; */
	
	
	/*
	 * 마우스 오른쪽 버튼 비활성화하기
	 *  - 대상 브라우저: Netscape Navigator 4.x
	 *
	 * .작성일자: 2008년 08월 20일
	 * .작 성 자: 의미소프트(주) 유지보수팀
	 */
	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN); 
		document.onmousedown = function(event)
		{
			// 마우스 오른쪽 버튼을 선택한 경우
			// NE4.x: (3 == e.which), IE: (2 == event.button)
			if (3 == event.which) {
				return false;
			} else {
				return true;
			}
		}
	}
	/*
	 * 마우스 오른쪽 버튼 비활성화하기
	 *  - 참조 사이트  : http://www.quirksmode.org/dom/events/contextmenu.html
	 *  - 대상 브라우저: Netscape Navigator, Safari, Flock
	 *
	 * .작성일자: 2008년 08월 20일
	 * .작 성 자: 의미소프트(주) 유지보수팀
	 */
	document.oncontextmenu = function()
	{
		return false;
	}
	/*
	 * 마우스 오른쪽 버튼 비활성화하기
	 *  - 참조 사이트  : http://www.quirksmode.org/dom/events/contextmenu.html
	 *  - 대상 브라우저: Mozilla Firefox
	 *
	 * .작성일자: 2008년 08월 20일
	 * .작 성 자: 의미소프트(주) 유지보수팀
	 */
	window.oncontextmenu = function()
	{
		return false;
	}
	
	/*
	 * 새로고침(F5), 전체창(F11) 막기
	 *  - 새로 만들기:Ctl+N(78), 새로 고침:Ctl+R(82)
	 *  - Function key(F1~F12): 112~123
	 *  - Backspace key: 8 (기능에서 제외)
	 *
	 * .작성일자: 2008년 08월 20일
	 * .작 성 자: 의미소프트(주) 유지보수팀
	 *
	 * .수정일자: 2008년 09월 11일
	 * .수 정 자: 의미소프트(주) 유지보수팀
	 * .내    용:
	 *   - 2008.09.11. : F5 기능키는 활성화 시킴 (F5 = 116)
	 */
	function fnDisableFunKey()
	{
//		if ( (true == event.ctrlKey && (78 == event.keyCode || 82 == event.keyCode)) || 
//			 (112 <= event.keyCode && 123 >= event.keyCode) || 8 == event.keyCode )
//		if ( (true == event.ctrlKey && (78 == event.keyCode || 82 == event.keyCode)) || 
//			 (112 <= event.keyCode && 123 >= event.keyCode) )
		if ( (true == event.ctrlKey && (78 == event.keyCode || 82 == event.keyCode)) || 
			 (112 <= event.keyCode && 115 >= event.keyCode) || (117 <= event.keyCode && 123 >= event.keyCode) )
		{
			event.keyCode = 0;
			event.cancelBubble = true;
			event.returnValue = false;
		}
		
		return;
	}
	document.onkeydown = fnDisableFunKey;
	
	/*
	 * 프레임 소스보기 막기
	 *  - 2008년 8월 20일 본 기능을 반영하였으나, 2008년 8월 21일 북경 이동호씨 요청으로 해당 기능이 동작되지 않도록 처리함.
	 *  - 프레임 페이지가 아닌 하위 프레임으로 직접 들어갔을 때, 코참차이나 첫 페이지로 강제 이동
	 *
	 * .작성일자: 2008년 08월 20일
	 * .작 성 자: 의미소프트(주) 유지보수팀
	 */
/*	 try {
		if (0 >= top.frames.length)
		{
			//top.location.href = "http://web.korcham-china.net/";		// 개발용 URL 임
			top.location.href = "http://www.korcham-china.net/";
		}
	} catch (e) {
	} */
	
	
	/*
	 * <중국한국상회> Top-Menu에서 로고영역 선택시 이동하는 함수
	 */
	function goHome()
	{
		//location.href = "http://web.korcham-china.net/";	// 개발용 URL 임
		location.href = "http://www.korcham-china.net/";
		return;
	}
	
	/*
	 * <중국한국상회> Top-Menu 선택시 이동할 메뉴 호출하기
	 */
	function goMenu(menu_pgm_id)
	{
 		location.href = menu_pgm_id;
 		return;
	}
	
	function goMenuEx(Frame_Name, menu_pgm_id)
	{
 		parent.Frame_Name.location.href = menu_pgm_id;
 		return;
	}
	
	
	/*
	// https://developer.mozilla.org/ko/AJAX/Getting_Started
	// XMLHttp 컴포넌트 통한 비 동기 통신
	*/
	function makeRequest(url)
	{
		var http_request = false;
    
    if (window.XMLHttpRequest)
    { // Mozilla, Safari,...
			http_request = new XMLHttpRequest();
			
			if (http_request.overrideMimeType)
			{
				http_request.overrideMimeType('text/xml');
				// See note below about this line
			}
			
		} else if (window.ActiveXObject) { // IE
			
			try {
				http_request = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
			
				try {
					http_request = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}	// try(2)
			
			}	// try(1)
		}	// if (window.XMLHttpRequest)
		
		if (!http_request)
		{
			alert('Giving up :( Cannot create an XMLHTTP instance');
			return false;
		}
		
		//http_request.onreadystatechange = callbackFun;
		http_request.onreadystatechange = function() {
			alertContents(http_request);
		};
		//POST 방식을 사용하여 데이터를 보내려면 다음과 같은 방법으로 요구의 MIME 형식을 변경해야만 함.
		//http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		// HXMLHttpObject.open(method[GET|POST], url, [true:비동기 호출|false:동기 호출], 사용자 계정[Option], 사용자 비밀번호[Option]);
		http_request.open('GET', url, true);
		http_request.send(null);
		
		return;
	}
	
	/*
	// 자바스크립트로 서버로부터 받은 응답을 처리하는 HTTP request의 결과에 따다 사용하고 싶은 자바스크립트 함수[onreadystatechange()]에
	// 연결되어 있는 헨들러(자바스크립트 함수) 임.
	*/
	function alertContents(http_request)
	{
		// readyState 가 가질 수 있는 모든 값: 0 (uninitialized), 1 (loading), 2 (loaded), 3 (interactive), 4 (complete) 
		if (http_request.readyState == 4)
		{
			// 서버로부터 모든 응답을 받았으며 이를 처리할 준비가 되었음 (이상 없음, 응답 받았음)
			
			// HTTP 서버 응답의 상태 코드
			// - http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
			if (http_request.status == 200)
			{
				// 이상 없음!
				
				// 서버에서 받은 데이터를 통해 원하는 작업을 수행할 수 있음. 응답 데이터에 접근하기 위한 2 가지 옵션이 있음.
				//  http_request.responseText() - 서버의 응답을 텍스트 문자열로 반환할 것이다.
				//  http_request.responseXML() - 서버의 응답을 XMLDocument 객체로 반환하며 당신은 자바스크립트의 DOM 함수들을 통해 이 객체를 다룰 수 있을 것이다. 
				alert(http_request.responseText);
				
				
				/* [test.xml] 파일 내용
					<?xml version="1.0" ?>
					<root>
						I'm a test.
					</root>
				*/
				//var xmldoc = http_request.responseXML;
				//var root_node = xmldoc.getElementsByTagName('root').item(0);
				//alert(root_node.firstChild.data);
				
			} else {
			
				// 요구를 처리하는 과정에서 문제가 발생되었음
				// 예를 들어 응답 상태 코드는 404 (Not Found) 이거나 혹은 500 (Internal Server Error) 이 될 수 있음
				alert('There was a problem with the request.');
			}
			
		} else {
			// 아직 준비되지 않음
		}
		
		return;
	}
	function fnDoPrint(docType,nKey)
	{
		window.open('/Service/Main/appl/Print.asp?docType='+docType+'&nKey='+nKey,'','width=780,height=560,toolbar=no,location=no,directories=nos,status=no,menubar=no,scrollbars=yes,resizable=no,copyright=no');
	}
	function fnDoPrint2(nKey)
	{
		window.open('/Service/Main/appl/Print2.asp?nKey='+nKey,'','width=780,height=560,toolbar=no,location=no,directories=nos,status=no,menubar=no,scrollbars=yes,resizable=no,copyright=no');
	}


function down(mode, filename, docType){

    var len, fileType, httpType;
    var filePath;
    
    len = filename.length 
    fileType = filename.substring( (len-3), len);
    fileType = fileType.toUpperCase();
    
   


	var subPath;
	if (docType =="A010" )
	{
		subPath = "news/ne01_files"
	}else if(docType == "A020"){
		subPath = "news/ne02_files"	
	}else if(docType == "A030"){
		subPath = "news/ne03_files"	
	}else if(docType == "A040"){
		subPath = "news/ne04_files"	
	}else if(docType == "A060"){
		subPath = "news/ne06_files"	
	}else if(docType == "C010"){
		subPath = "comm/co02_files"	
	}else if(docType == "C030"){
		subPath = "comm/co04_files"	
	}else if(docType == "C040"){
		subPath = "comm/co05_files"	
	}else if(docType == "F050"){
		subPath = "comm/co07_files"	
	}else if(docType == "B010"){
		subPath = "econ/ec01_files"	
	}else if(docType == "B020"){
		subPath = "econ/ec02_files"	
	}else if(docType == "B030"){
		subPath = "econ/ec03_files"	
	}else if(docType == "B040"){
		subPath = "econ/ec04_files"	
	}else if(docType == "E010"){
		subPath = "help/he01_files"	
	}else if(docType == "D010"){
		subPath = "info/in01_files"	
	}else if(docType == "D040"){
		subPath = "info/in04_files"	
	}else if(docType == "F020"){
		subPath = "area/ar02_files"	
	}
	if (mode=="DN")
	{   
		if ( fileType == "PDF" || fileType == "JPG" || fileType == "GIF" || fileType == "TIF" ){
            // filePath = "http://retaildb.korcham.net/Management/include/Download.asp?downpath=KCCI_RETAILDB_M&filename="+file;
            // location.href=filePath;
			window.open('http://china.korcham.net/upload/'+subPath+'/'+filename+'','','');
		}else{
			location.href='http://china.korcham.net/upload/'+subPath+'/'+filename+'';	
		}
	}else {
		window.open('http://china.korcham.net/upload/'+subPath+'/'+filename+'','','');
}

}
//-->
