initZoomDisplay() ;
	
	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"))
		{			
			if(which == "+" || which == "=")
				zoomInOut('zoom', 'in');
			else if(which == "-" || which == "_")
				zoomInOut('zoom', 'out');
		}
	}
	
	var zoomRate = 10;
	var maxRate = 300;
	var minRate = 80;

	function zoomInOut(contentid, how) {
		var goo = GetCookie("zoomVal");
	
		 if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
		   document.getElementById(contentid).style.zoom = GetCookie("zoomVal");
		   //document.body.style.zoom = GetCookie("zoomVal");
		   currZoom=GetCookie("zoomVal");
		  }
		else{
			document.all[contentid].style.zoom = '100%'; 
			//document.body.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+'%'
			//document.body.style.zoom = parseInt(document.body.style.zoom)+zoomRate+'%'
		}
		else {
			document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%'
			//document.body.style.zoom = parseInt(document.body.style.zoom)-zoomRate+'%'
		}
		SetCookie("zoomVal",document.all[contentid].style.zoom, 1);
	}



	function SetCookie( name, value, expiredays ){
		var todayDate = new Date();
		todayDate.setDate( todayDate.getDate() + expiredays );
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" ;
	}
	
	
 function GetCookie( name )
 {
         var nameOfCookie = name + "=";
         var x = 0;
         while ( x <= document.cookie.length )
         {
                 var y = (x+nameOfCookie.length);
                 if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                         if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                 endOfCookie = document.cookie.length;
                         return unescape( document.cookie.substring( y, endOfCookie ) );
                 }
                 x = document.cookie.indexOf( " ", x ) + 1;
                 if ( x == 0 )
                         break;
         }
  SetCookie("ZoomVal", "100%", 1);
         return "100%";
 }

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


	// Print
	function contentPrint(){
		window.open("/english/common/file/print.html", "contentPrint", "width=562 height=600 scrollbars=yes");
	}


//search reslut popup layer
function view_TmsAbstract() {
	document.getElementById("summary").style.top = document.documentElement.scrollTop + 120 +'px'   ;


	var pageUrl = "pop_sum01.jsp?index=" +szIndexName+ "&uniqueKeyName=PRIMARY_KEY&uniqueKeyValue=" +docid+ "&query=" +qry;

	//alert(pageUrl);

	document.getElementById("summaryFrame").src = pageUrl;

	document.getElementById("summary").style.display = "";

}

//·¹ÀÌ¾î ÀÌµ¿
var dragapproved=false
var id;

var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all

function drag_dropie(e){

	if (dragapproved==true){
		var obj;
			obj = eval("document.getElementById('"+id+"')");
	
		if(document.all) { 
			obj.style.pixelLeft=tempx+event.clientX-iex;
			obj.style.pixelTop=tempy+event.clientY-iey;
		} else {
			obj.style.left=(parseInt(tempx.replace("px",""))+e.clientX-iex)+"px";
			obj.style.top=(parseInt(tempy.replace("px",""))+e.clientY-iey)+"px";
		}

		return false;
	}
}

//·¹ÀÌ¾î ÀÌµ¿
var dragapproved=false
var id;

var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all

function drag_dropie(e){

	if (dragapproved==true){
		var obj;
			obj = eval("document.getElementById('"+id+"')");
	
		if(document.all) { 
			obj.style.pixelLeft=tempx+event.clientX-iex;
			obj.style.pixelTop=tempy+event.clientY-iey;
		} else {
			obj.style.left=(parseInt(tempx.replace("px",""))+e.clientX-iex)+"px";
			obj.style.top=(parseInt(tempy.replace("px",""))+e.clientY-iey)+"px";
		}

		return false;
	}
}

function initializedragie(id,e){
	
	this.id = id;
	iex=ns6?e.clientX:event.clientX;
	iey=ns6?e.clientY:event.clientY;

	if(document.all) { 

		tempx=eval("document.getElementById('"+id+"').style.pixelLeft");
		tempy=eval("document.getElementById('"+id+"').style.pixelTop");
	} else {
		tempx=document.getElementById(id).style.left;
		tempy=document.getElementById(id).style.top;
	}

	dragapproved=true;
	document.onmousemove=drag_dropie;
}

if (ie||ns6){
	document.onmouseup=new Function("dragapproved=false")
}

