//=================================================================================================================================
//	ÆÄÀÏ¸í : common.js - °øÅë Javascript
//	ÀÛ¼ºÀÚ : eclips
//	»ý¼ºÀÏ : 2007-12-13
//	ÃÖÁ¾¼öÁ¤ÀÏ : 2007-12-13
//=================================================================================================================================
/* == Public.js ¸¦ °¡Áö°í ¿Ô´Ù. == */
var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
//var siteTitle = "ÀÎÃµÁö¹æÇØ¾çÇ×¸¸Ã»";
var cFontSize = 12;

//document.title = siteTitle;
//window.status = siteTitle;
var docHeight;
var tCount=1;


function SetDocument(pVal)
{	
	try
	{
		docHeight = document.body.scrollHeight-100;
		if((document.body.scrollTop+document.body.clientHeight-40) <= (document.body.scrollHeight-100))
		{
			divTop.style.display="block";
			divTop.style.top=document.body.scrollTop+document.body.clientHeight-40;
		}
			
	}
	catch(E)
	{
	}
	
	var tb=document.all.tags('BODY');
	
	if(tb.length==0) 
	{
		for(var i=0;i< top.frames.length;i++)
		{
			r(top.frames[i].document,pVal);
		}
	}
	else
	{
		r(document,pVal);
	}
	
	
    setTimeout("StatusOn()",1000);
}

function StatusOn()
{
	if(tCount>siteTitle.length) tCount=1;
	window.status = siteTitle.substring(0,tCount);
	tCount++;
	setTimeout("StatusOn()",320);	
}

function r(d,pVal)
{
	//pVal="OPEN";
	if(pVal=="CLOSE")
	{
		d.oncontextmenu=RFalse;			
		d.onselectstart=RFalse;
		d.ondragstart=RFalse;
		//d.onkeydown=RFalse;
		d.onmousedown=RFalse; 
		
		d.body.oncontextmenu=RFalse;
		d.body.onselectstart=RFalse;
		d.body.ondragstart=RFalse;
		//d.body.onkeydown=RFalse; 
		d.body.onmousedown=RFalse;		
	}
	else
	{
		d.oncontextmenu=null;			
		d.onselectstart=null;
		d.ondragstart=null;
		//d.onkeydown=null;
		d.onmousedown=null; 
		
		d.body.oncontextmenu=null;
		d.body.onselectstart=null;
		d.body.ondragstart=null;
		//d.body.onkeydown=null; 
		d.body.onmousedown=null;	
	}
}

function RFalse()
{
	return false;
}


function CopyClipboard()
{
	SetDocument("OPEN");
	
	for(var i=0;i< document.all.tags("DIV").length;i++)
	{		
		if(document.all.tags("DIV")(i).id=="content")
		{
			var obj = document.all.tags("DIV")(i);
			break;			
		}
	}		
	
	var oText = document.createElement("<TEXTAREA NAME='clipText' ID='clipText' STYLE='position:absolute;top:-1000;left:-1000;'></TEXTAREA>");
	document.body.insertBefore(oText);
	
	oText.innerText = obj.innerText;
	oText.select();
	document.selection.createRange();
	document.execCommand("Copy");
	alert("Å¬¸³º¸µå¿¡ ÇØ´ç °Ô½Ã¹°ÀÇ ³»¿ëÀÌ º¹»çµÇ¾ú½À´Ï´Ù.");
	
	SetDocument("CLOSE");
}
/* == Public.js ¸¦ °¡Áö°í ¿Ô´Ù. == */
/*
 * ´ÜÃàÅ°
*/
var HOTNS = (window.Event) ? 1 : 0 

function checkKey(e) { 

	if (e == null) { 
		code = event.keyCode; 
		if(event.srcElement.tagName == "INPUT" || event.srcElement.tagName == "TEXTAREA") {
			return true;
		}
	} else { 
		if (e.altKey || e.ctrlKey) { 
			return true; 
		} 
		if(e.target.tagName == "INPUT" || e.target.tagName == "TEXTAREA") {
			return;
		}
		code = e.which; 
	}

	key = String.fromCharCode(code).toLowerCase(); 
	if(code==13) {
		key="enter"; 
	}

	var code = (HOTNS) ? e.which : event.keyCode; 
	var key = String.fromCharCode(code); 
	for (var i = 0; i < ar.length; i++) { 
		if (key == ar[i].key) {
			if(key=="+"){
				ts('content',1);
			}else if(key=="-"){
				ts('content',-1);
			}else{
				location.href = ar[i].url;
			}
		}
	} 
}

function hotKey(key, url) { 
	this.key = key; 
	this.url = url; 
} 

if (HOTNS) document.captureEvents(Event.KEYPRESS) 
    document.onkeypress = checkKey; 

var ar = new Array(); 
ar[ar.length] = new hotKey("h", "/index.asp"); 
ar[ar.length] = new hotKey("H", "/index.asp"); 
ar[ar.length] = new hotKey("s", "/search/search/index.asp"); 
ar[ar.length] = new hotKey("S", "/search/search/index.asp");
ar[ar.length] = new hotKey("/", "/site_info/guide/index.asp");

ar[ar.length] = new hotKey("+", "");
ar[ar.length] = new hotKey("-", "");

//=================================================================================================================================
// ÆË¾÷ ¶ç¿ì±â
//=================================================================================================================================

function openWin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// ================================================= 
// ¿ÀÇÂ À©µµ¿ì(ÆË¾÷)
// =================================================
function openwindow(theURL,winName,width,height,scrollbars) { //v2.0
  window.open(theURL,winName,"width=" + width + ", height=" + height + ", scrollbars=" + scrollbars + "");
}

// =================================================
// ¹«·áÀÎÅÍ³Ý¹Î¿øÀüÈ­ ÆË¾÷
// =================================================
function openMinwon(locationStr){
    optionStr = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=268,height=490"
    winobject = window.open(locationStr, 'icast_news', optionStr);
	if (winobject != null){
		winobject.focus();
	}
}

//=================================================================================================================================
// ¸µÅ© Á¡¼± ¾ø¾Ö±â 
//=================================================================================================================================

//function bluring()
//{
//	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
//	{
//		document.documentElement.focus();
//	}
//}
//document.onfocusin=bluring;


//=================================================================================================================================
// ·¹ÀÌ¾î º¸ÀÌ±â_°¨Ãß±â
//=================================================================================================================================

function show(obj) {
	document.getElementById([obj]).style.display ='block';
}
function hide(obj) {
	document.getElementById([obj]).style.display ='none';
}


//=================================================================================================================================
// Åõ¸íÀÌ¹ÌÁö
//=================================================================================================================================

function setPng24(obj) {
 	obj.width=obj.height=1;
 	obj.className=obj.className.replace(/\bpng24\b/i,'');
 	obj.style.filter =
 	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
 	obj.src=''; 
	return '';
}


//=================================================================================================================================
// ÆË¾÷Ã¢ ´Ý°í ¸µÅ©ÆäÀÌÁö ÀÌµ¿
//=================================================================================================================================

function PopCloseLink(linkPage){
	var linkPage
	opener.location.href = linkPage;
   	self.close();
}

//=================================================================================================================================
// ¿µ¿ª ÀÎ¼â
//=================================================================================================================================


function printDiv () { 
if (document.all && window.print) { 
	window.onbeforeprint = beforeDivs; 
	window.onafterprint = afterDivs; 
	window.print(); 
	} 
} 
function beforeDivs () { 
if (document.all) { 
	bodyWrap.style.display = 'none'; 
	bodySelection.innerHTML = document.all['printDiv'].innerHTML; 
	} 
} 
function afterDivs () { 
if (document.all) { 
	bodyWrap.style.display = 'block'; 
	bodySelection.innerHTML = ""; 
	} 
} 

//=================================================================================================================================
// showHideLayers
//=================================================================================================================================


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; }
}


//=================================================================================================================================
// swap Image
//=================================================================================================================================


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,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];}
}

//===================================================================================================================================
//NeverSpam
//==================================================================================================================================
function AntiSpam(id, bid) {
	window.open('/antispam/antispamin.jsp?UniqId='+id+'&Category=' + bid,'AntiSpam','width=180,height=263,left=1,top=1');
}        




// ¼ýÀÚ ¾Õ¿¡ 0À» ºÙÀÓ
// »ç¿ë : onfocusout="javascript:plusZero(this);
function plusZero(obj) {
	var val = obj.value;
	if ( val.length == 1 ) {
		obj.value = "0" + val;
	}
}


// ¸¶¿ì½º ¿À¹Ù
function MM_nbGroup(event, grpName) { //v6.0

  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}


//=================================================================================================================================
// ÄíÅ° °ü·Ã
//=================================================================================================================================


function getCookie(name) { 
	var Found = false ;
	var start, end ;
	var i = 0 ;
	 
	while(i <= document.cookie.length) { 
		start = i; 
		end = start + name.length ;
		 
		if(document.cookie.substring(start, end) == name) { 
			Found = true ;
			break ;
		} 
		i++ ;
	} 
	 
	if(Found == true) { 
		start = end + 1 ;
		end = document.cookie.indexOf(";", start) ;
		
		if(end < start) 
			end = document.cookie.length ;
		
		return document.cookie.substring(start, end) ;
	} 
	return "" ;
}

function setCookie(name, value, expiredays) {
	var todayDate = new Date();
	todayDate.setDate( todayDate.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}





//=================================================================================================================================
// font size È®´ë Ãà¼Ò
//=================================================================================================================================



var tgs = new Array( 'div','dt','dd','p','li','ui','td');

var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var startSz = 2;

function ts( trgt,inc ) {
        if (!document.getElementById) return
        var d = document, cEl = null, sz = startSz,i,j,cTags;
        
        sz += inc;
        if ( sz < 0 ) sz = 0;	//ÃÖ¼Ò
        if ( sz > 4 ) sz = 4; //ÃÖ´ë
        startSz = sz;
		//alert(sz);
		
        
        if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

        cEl.style.fontSize = szs[ sz ];

        for ( i = 0 ; i < tgs.length ; i++ ) {
                cTags = cEl.getElementsByTagName( tgs[ i ] );
                for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
        }
}

//=================================================================================================================================
// ÈÞ´ëÆù ÀÎÇ²¹Ú½º (write ÆäÀÌÁö)
//=================================================================================================================================

function sel_phone() {
	document.write('<option value="010">010</option>');
	document.write('<option value="011">011</option>');
	document.write('<option value="016">016</option>');
	document.write('<option value="017">017</option>');
	document.write('<option value="018">018</option>');
	document.write('<option value="019">019</option>');
}

//=================================================================================================================================
// ÁÖ¹Î¹øÈ£ ÇÊÅÍ¸µ
//=================================================================================================================================
function checkjumin(val) {			  	
	var re = new RegExp("(([0-9]{2})(0|1)([0-9]{3})(-|=|_| )(1|2)([0-9]{6}))");
	var r = val.match(re);
	if(r != null) { 
		alert("Á¦¸ñ ¶Ç´Â º»¹®¿¡¼­ ÁÖ¹Î¹øÈ£·Î ÀÇ½ÉµÇ´Â ºÎºÐÀÌ ¹ß°ßµÇ¾ú½À´Ï´Ù.");
		return false;
	} else { 
		return true;
	}
}


/***********************************************************************************
*   ³â, ¿ù, ÀÏ À¯È¿¼º Ã¼Å© (À±³â Ã¼Å© Æ÷ÇÔ)
*   ÀÔ·ÂÇ×¸ñ :
*           - optionFlg : YMD°¡ ÇÊ¼ö Ç×¸ñÀÌ¸é 1 ,
*                                   ¼±ÅÃÇ×¸ñ: 0 ÀÌ¸ç, ¸ðµÎ ÀÔ·Â ¶Ç´Â ¸ðµÎ °ø¹é
*            -  year :  ³âÀ» Ç¥½ÃÇÏ´Â input °´Ã¼  (ex. formname.year)
*            -  month: ¿ùÀ» Ç¥½ÃÇÏ´Â input °´Ã¼
*            -  day :    ÀÏÀ» Ç¥½ÃÇÏ´Â input °´Ã¼ 
*    °ü·Ã ÇÔ¼ö 
*            - isNumber () :  ¼ýÀÚ¸¸ ÀÔ·Â ¹Þµµ·ÏÇÏ´Â ÇÔ¼ö
*            - tabOrder()  :    Á¤ÇØÁø ¼ýÀÚ¸¸Å­ ÀÔ·ÂÇÏ¸é ÀÚµ¿À¸·Î Æ÷Ä¿½º ÀÌµ¿   
/***********************************************************************************/
function checkYMD(optionFlg, year, month, day) {
  //----------------------------------------------------------
  // year, month, day ¸¦ ¸ðµÎ ÀÔ·ÂÇß´ÂÁö Á¶»ç
  // ³â¿ùÀÏ ÀÌ ÇÊ¼ö ÀÔ·ÂÀÌ ¾Æ´Ï¸é Ã¼Å© ºÒÇÊ¿ä
  //----------------------------------------------------------
  if(optionFlg) {
		if(!year.value || !month.value || !day.value) {
		  
		  alert("³â¿ùÀÏÀº ÇÊ¼ö ÀÔ·ÂÇ×¸ñÀÔ´Ï´Ù.");
		  year.focus();
		  return false;   
		}
  }else {
		//¿É¼Ç»çÇ×ÀÎµ¥ YMD°¡ ÇÏ³ªµµ ÀÔ·ÂµÇÁö ¾ÊÀ¸¸é Ã¼Å© ÇÏÁö¾ÊÀ½
		if(!year.value && !month.value && !day.value) {
		  return true;
		}else {
		  if(!year.value|| !month.value || !day.value) {
			alert("³â¿ùÀÏÀÌ ¸ðµÎ ÀÔ·ÂµÇ°Å³ª ¸ðµÎ »ý·«µÇ¾î¾ß  ÇÕ´Ï´Ù.");
			year.focus();
			return false;   
		  }  
		}
  }
  
  //-----------------------------------------------------------------
  // ¿ù, ÀÏÀÌ ÇÑÀÚ¸®¸é ¾Õ¿¡ 0À» Ãß°¡ÇÑ´Ù.
  //
  // ¿ù, ÀÏ : 1 - 9 = 01 - 09·Î º¯È¯
  //-----------------------------------------------------------------
  if(year.value.length != 4) {
    alert("Àß¸øµÈ ³âµµÀÔ´Ï´Ù.");
    year.focus();
    return false; 
  }
  
  if(month.value.length == 1) {
    month.value = "0" + month.value;
  }
  
  if(day.value.length == 1) {
    day.value = "0" + day.value;
  }
  
  //---------------------------------------------------------
  // year, month, day´Â input °´Ã¼ÀÌ´Ù.
  //--------------------------------------------------------
  var total_days;            // °¢ ¿ùº° ÃÑ ÀÏ¼ö  (30 | 31| 28| 29)
  var ckFlg=0;  	
  //--------------------------------------------------------------------
  // ¼ýÀÚ¸¸ ÀÔ·Â¹Þµµ·Ï ÇÑ´Ù.  isNumber()¸¦ »ç¿ëÇÏ¸é
  //  »ý·«ÇØµµ µÈ´Ù. 
  //-------------------------------------------------------------------			
  var data1 = year.value;
  var data2 = month.value;
  var data3 = day.value;
  for ( var j=1; j< 4; j++ ) {
    var data = eval( "data"+j );
    for ( var i=0; i < data.length; i++)  {
      var ch = data.substring(i,i+1);
      if (ch<"0" | ch>"9") {
    	  alert ( "\nÀÏÀÚ¸¦ ¹Ù¸£°Ô ÀÔ·ÂÇÏ¼¼¿ä." ); 
    	  year.focus();
    	  year.select();
    	  return false;
	    }
    }// end inner for
  } //end outter for
    
   
  //------------------------------------------------------------
  // ¿ù Ã¼Å© ( 1 ~ 12)
  //-----------------------------------------------------------	   
  if( (1 > month.value) ||  (12 < month.value) ) {
	  ckFlg=1;
  }
  if(ckFlg) {
    alert ( "\n¿ùÀ» ¹Ù¸£°Ô ÀÔ·ÂÇÏ¼¼¿ä."  );
    month.focus(); 
    month.select();
    return false;
  }
    	        
  //------------------------------------------------------------
  // 1. °¢ ´ÞÀÇ ÃÑ ³¯¼ö¸¦ ±¸ÇÑ´Ù.
  //----------------------------------------------------------
  if(month.value == 4||month.value == 6||month.value == 9||month.value == 11)  {
      total_days = 30;
  }else {
       total_days=31;
  }
  //--------------------------------------------------------
  // 1-1.À±³â¿¡ µû¸¥ 2¿ù ÃÑ ³¯¼ö ±¸ÇÑ´Ù.
  //--------------------------------------------------------   
  if(month.value ==2) {
    // À±³âÁ¶»ç
    if((year.value % 4 == 0) && (year.value % 100 != 0) || (year.value % 400 == 0)) {
      total_days = 29;
    }else{
      total_days = 28; 
    }
  }
          
  //-------------------------------------------------------------------
  // ÀÏÀÚ Ã¼Å© : °¢³â¿ùº°·Î ÃÑ ³¯¼ö°¡ ¸Â´ÂÁö Á¶»ç
  //-------------------------------------------------------------------
  if( ( 1 > day.value ) || ( day.value > total_days ) ) {
    ckFlg=1;
  }
  if(ckFlg) {
    alert ( "\nÀÏÀÚ¸¦ ¹Ù¸£°Ô ÀÔ·ÂÇÏ¼¼¿ä."  );
    day.focus();
    day.select();
    return false;
  }
       
  //-----------------------------------------------------------
  // MM/DD Çü½ÄÀ¸·Î ÀÔ·ÂÇØ¾ß ÇÏÁö¸¸, 
  //  M ¶Ç´Â D Çü½ÄÀ¸·Î ÀÔ·ÂÇÑ °æ¿ì ¾Õ¿¡ 0 Ãß°¡
  //-------------------------------------------------------------        
  if ( data2.length < 2 ) {
       data2 = "0"+data2 ;
  }
  if ( data3.length < 2 ) {
      data3 = "0"+data3 ;
  }
  return true;
}


  //-----------------------------------------------------------
  // ÇÁ¸°Æ®ÇÏ±â
  //-------------------------------------------------------------        
function printcontent(){
	document.print.printcontent.value = document.getElementById("column").innerHTML;
	document.print.action = "/inc/printcontent.asp";
	document.print.target="_blank";
	document.print.submit();
}

//------------------------------------------------------------------------------------------
// È®´ë / Ãà¼Ò
//------------------------------------------------------------------------------------------

    var zoomRate = 10;            // È®´ë/Ãà¼Ò½Ã Áõ°¨·ü
    var maxRate = 200;            //ÃÖ´ëÈ®´ë·ü
    var minRate = 50;            //ÃÖ¼ÒÃà¼Ò·ü

    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 SetCookie(name,value){
        document.cookie = name + "=" + escape (value)+";";
    }

    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%';
        }
    }

    //Zoom In & Zoom Out
    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);
    }

    //    +, - key event
    //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');
        }
    }
    

//-----------------------------------------------------------
// TOP ÅëÇÕ°Ë»ö / Á÷¿ø°Ë»ö
//-----------------------------------------------------------
function top_search_go(){

	var search_gubun = document.topstaff.keycode.value;
	var search_keyword = document.topstaff.keyword.value;

	if(search_gubun=="" || search_keyword=="") {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		return ;
	}
	if(search_gubun=="1"){
		window.open("/search/search/index.asp?query="+search_keyword,"","");
	} else {
		window.open("/search_staff.asp?sch_mem=name&staffVal="+search_keyword,"search_staff","scrollbars=yes,width=670,height=620");
	}
}

//-----------------------------------------------------------
// LEFT ÅëÇÕ°Ë»ö / Á÷¿ø°Ë»ö
//-----------------------------------------------------------
function left_search_go(){

	var search_gubun = document.staff.hiddenCheck.value;
	var search_keyword = document.staff.leftkeyword.value;

	if(search_gubun=="" || search_keyword=="") {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		return ;
	}
	if(search_gubun=="1"){
		window.open("/search/search/index.asp?query="+search_keyword,"","");
	} else {
		window.open("/search_staff.asp?sch_mem=name&staffVal="+search_keyword,"search_staff","scrollbars=yes,width=670,height=620");
	}
}

//-----------------------------------------------------------
// TOP ÅëÇÕ°Ë»ö / Á÷¿ø°Ë»ö == ÀÎÁ§¼ÇÇØÅ· ´Ü¾î°Ë»ç
//-----------------------------------------------------------
/*
searchid = °Ë»ö¹öÆ° °´Ã¼
keywordid = inputbox °´Ã¼
*/

function txtFilter(keywordid, searchid) { 

	var friends = new Array("SELECT", "INSERT", "UPDATE", "DELETE", "DROP", "select", "insert" , "update", "delete" , "drop", "--", "'","''", ";", ":");
	for (var i = 0;i<friends.length ;i++ ) {
		if (keywordid.value.indexOf(friends[i]) > -1) {
			alert('¿Ã¹Ù¸£Áö ¾ÊÀº ´Ü¾î·Î Á¶È¸ÇÏ¼Ì½À´Ï´Ù.');
			searchid.disabled=true;
			keywordid.value="";
			keywordid.focus();
		}else{
			searchid.disabled=false;
		}
	}
}


