	//	+, - 키를 입력하면 화면 확대, 축소를 한다.
	document.onkeypress = getKey;

	function getKey(keyStroke) {
		isNetscape=(document.layers);
		eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
		which = String.fromCharCode(eventChooser).toLowerCase();
		which2 = eventChooser;

		var el=event.srcElement;

		if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))		//input,textarea 안에서의 +.-값은 실행안되도록
		{
			if(which == "+" )
				zoomInOut('zoom', 'in');
			else if(which == "-" )
				zoomInOut('zoom', 'out');
		}
	}


//////////////////////////////////////////////////////////////////
// 영역 줌
	var zoomRate = 20;			// 확대/축소시 증감률
	var maxRate = 300;			//최대확대률
	var minRate = 100;			//최소축소률

	function zoomInOut(contentid, how) {

		if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
			document.all[contentid].style.zoom = GetCookie("zoomVal");
			currZoom=GetCookie("zoomVal");
		}
		else{
			document.all[contentid].style.zoom = '100%';
			currZoom = '100%';
		}

		if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) {
			return;
		}
		if (how == "in") {
			document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)+zoomRate+'%'
		}
		else {
			document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%'
		}
		SetCookie("zoomVal",document.all[contentid].style.zoom);
	}

	function SetCookie(name,value){
		document.cookie = name + "=" + escape (value)+";domain=cafe.airport.or.kr";
	}

	function GetCookie(name){
		if (document.cookie != "") {
			zoomc = document.cookie.split("; ");
			for (var i=0; i < zoomc.length; i++) {
                zoomv = zoomc[i].split("=");
                if (zoomv[0] == name) {
				    return  unescape(zoomv[1]);
                }
			}
		}else{
			return "";
		}
	}
	function GoZoom(contentid){
		if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
			document.all[contentid].style.zoom = GetCookie("zoomVal");
			currZoom=GetCookie("zoomVal");
		}
		else{
			document.all[contentid].style.zoom = '100%';
			currZoom = '100%';
		}
	}

	function printPreview(){
			left = (document.body.clientWidth - 625) / 2;
			height = (document.body.clientHeight - 50);
			document.printForm.printHtml.value = printBody.innerHTML;
			var ppp=window.open('/chn/print.html','', config='height='+height +',width=645, left='+ left +', top = 50,scrollbars=yes');
	}
	function newWin(url){

			var ppp=window.open(url,'_blank');
	}
	// 링크테두리 없애주는 스크립트
	/*
	function bluring(){ 	if(event.srcElement!=null){
			if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 	}
	}
	document.onfocusin=bluring;
	*/
	var w = "";
	function open_win(fname, width, height) {
	  if (w!="") w.close();
	  w = window.open(fname, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+width+',height='+height);
	}
	function open_win2(fname, width, height) {
	  if (w!="") w.close();
	  w = window.open(fname, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+width+',height='+height);
	}
//-->

