/**
 * -----------------------------------------------------------------------------
 *
 * Method Name : global.js
 * Description : °øÅë ÀÚ¹Ù½ºÅ©¸³Æ® ¸ðÀ½
 * Creation_date    : 2006.01.18 
 * Created_by       : 
 * Last_update_date : 
 * Last_updatey_by  : ¹ÚÅÂ¿ì
 * -----------------------------------------------------------------------------
 */
<!--

// ºñ¾îÀÖ´Â °ª Ã¼Å©..
function isEmpty( inputStr ) {
	if( inputStr == null || inputStr == "" ) return true;
	return false;
}

// is a positive Integer 
function isPosInteger( inputVal ) {
	inputStr = inputVal.toString();
	for( var i=0; i<inputStr.length; i++ ) {
		var oneChar = inputStr.charAt(i) ;
		if( oneChar < "0" || oneChar > "9" ) return false;	
	}
	return true;
}

// is a positive or negative integer
function isInteger( inputVal ) {
	inputStr = inputVal.toString();
	for( var i=0; i<inputStr.length; i++ ) {
		var oneChar = inputStr.charAt(i) ;
		if( i==0 && oneChar == "-" ) {
			continue ;
		}
		if( oneChar < "0" || oneChar > "9" ) {
			return false;
		}
	}
	return true;
}

// ¼ýÀÚ¿©ºÎÃ¼Å©
function isNumber(inputVal) {
	oneDecimal = false; 
	inputStr = inputVal.toString() ;
	for( var i=0; i<inputStr.length; i++ ) {
		var oneChar = inputStr.charAt(i) ;
		if( i==0 && oneChar=="-" ) {
			continue ;
		}
		if( oneChar=="." && !oneDecimal ) {
			oneDecimal = true;
			continue ;
		}
		if( oneChar < "0" || oneChar > "9" ) {
			return false;
		}
	}
	return true;
}


// ¼ýÀÚ¿©ºÎÃ¼Å©
function isNotNumber(obj, message) {

	if(!isNumber(obj.value)) {
		alert(message);
		obj.select();
		return true;
	}
	return false;
}


//ÁÖ¹Îµî·ÏÀÌ³ª ÀüÈ­¹øÈ£ Æ÷¸ËÁ¤ÇÏ´Â ÇÔ¼ö		                
function EditMask(as_value, as_format)
{
	var i=0, j=0, k=0;
  var ls_value="";
				   
  for(i=0; i<as_value.value.length; i++) {
		if (!IsDecimal(as_value.value.charAt(i))) {
			as_value.value = as_value.value.substring(0,i) + as_value.value.substring(i+1, as_value.value.length);
		}
	}

	for(i=0; i<as_value.value.length; i++) {
		if (as_format.length > j) {
			if ((as_format.substring(j,j+1) >= "0") && (as_format.substring(j,j+1) <= "9")) {
				ls_value = ls_value + as_value.value.substring(i,i+1);
			} else {
				ls_value=ls_value+as_format.substring(j,j+1);
				j=j+1;
				ls_value=ls_value+as_value.value.substring(i,i+1);
			}
		}
		j++;
	}
	
	as_value.value = ls_value;
	return;
}

function IsDecimal(ad_decimal) {
	if ((ad_decimal >= 0) && (ad_decimal <= 9 )) { 
		return true;
	} else {
		return false;
	}
}

// StringTokenizer
function StringTokenizer (tokenStr, divideChar, chkDivide) {
	this.tokenStr = tokenStr;
	this.divideChar = divideChar;
	this.chkDivide = chkDivide;
	
	this.hasMoreTokens = hasMoreTokens;
	this.nextToken = nextToken;
}

function hasMoreTokens() {
	if (this.tokenStr.length > 0) return true;
	else return false; 
}

function nextToken() {
	tempStr = this.tokenStr;
	
	divideIndex = tempStr.indexOf(this.divideChar);
	
	if (divideIndex == -1) {
		this.tokenStr = '';
		return tempStr;
	}
	
	if (this.chkDivide) {
		this.tokenStr = tempStr.substring(divideIndex+1);
		return tempStr.substring(0, divideIndex+1);
	} else {
		this.tokenStr = tempStr.substring(divideIndex+1);
		return tempStr.substring(0, divideIndex);
	}
}

var selectCourse = "CC001";

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];}
}

function init() {
	courseContents.innerHTML = eval(selectCourse + ".innerHTML");
}

function setCourse(theCode) {
	if (selectCourse == theCode) return;
	
	eval("img" + selectCourse).height = "22";
	eval("img" + selectCourse).src = eval("img" + selectCourse).src.substring(0, eval("img" + selectCourse).src.lastIndexOf(".")-5) + ".gif";
	selectCourse = theCode;	
	eval("img" + theCode).height = "25";
	eval("img" + theCode).src = "/images/" + theCode + "_over.gif";
	
	courseContents.innerHTML = eval(selectCourse + ".innerHTML");
}

function overCourse(theCode) {
	if (selectCourse == theCode) return;
	eval("img" + theCode).src = "/images/" + theCode + "_over.gif";
}

function outCourse(theCode) {
	if (selectCourse == theCode) return;
	eval("img" + theCode).src = "/images/" + theCode + ".gif";
}

function goHome() {
	document.location.href = "/home/main.jsp";
}

function goMypage() {
	document.location.href = "/home/mypage/ApplyList.jsp";
}

function goLecture() {
	document.location.href = "/home/lecture/LectureList.jsp";
}

function goPds() {
	document.location.href = "/home/board/PdsList.jsp";
}

function goWebfolder() {
	document.location.href = "/home/folder/Webfolder.jsp";
}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : isNullSel()
// ´ë»ó°´Ã¼ : selectbox°´Ã¼ (obj), ¸ä¼¼Áö(message)
// ³»    ¿ë : °´Ã¼ÀÇ °ª ÀÔ·Â ¿©ºÎ¸¦ checkÇÏ°í ¹ÌÀÔ·Â½Ã focusÀ§Ä¡
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function isNullSel(obj, message) {

  var index = 0;
  if (obj==undefined) {
    index = -1;
  }
  if (obj.length==undefined) {
    index = 0;
  }
  else 
  {
    for (var i = 0; i < obj.length; i++) 
    {
      if (obj[i].selected) {
        index = i;
        break;
      }
    }
  }

  if (isEmpty(obj[index].value))
  {
    alert(message);
    obj.focus();
    return true;
  }
  return false;	

}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : isNull()
// ´ë»ó°´Ã¼ : °´Ã¼ (obj), ¸ä¼¼Áö(message)
// ³»    ¿ë : °´Ã¼ÀÇ °ª ÀÔ·Â ¿©ºÎ¸¦ checkÇÏ°í ¹ÌÀÔ·Â½Ã focusÀ§Ä¡
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function isNull(obj, message) {

  if (isEmpty(obj.value))
  {
    alert(message);
    obj.select();
    return true;
  }
  return false;
}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : getRadioVal()
// ´ë»ó°´Ã¼ : radio object
// ³»    ¿ë : ¶óµð¿À¹öÆ° °ª,¼±ÅÃµÇÁö ¾ÊÀº °æ¿ì null ¹ÝÈ¯
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function getRadioVal(obj) {
  if (obj==undefined) {
    return null;
  }
  if (obj.length==undefined) {
    return obj.value;
  }
  else
  {
    for (var i = 0; i < obj.length; i++) {
      if (obj[i].checked) {
        return obj[i].value;
      }
    }
  }

  return null;
}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : getRadioIndex()
// ´ë»ó°´Ã¼ : radio object
// ³»    ¿ë : ¼±ÅÃµÈ ¶óµð¿À ¹öÆ°ÀÇ Index¸¦ ¹ÝÈ¯
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function getRadioIndex(obj) {

  var reIndex = 0;
  if (obj==undefined) {
    reIndex = -1;
  }
  if (obj.length==undefined) {
    reIndex = 0;
  }
  else {
    for (var i = 0; i < obj.length; i++) {
      if (obj[i].checked) {
        reIndex = i;
        break;
      }
    }
  }
  return reIndex;
}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : setRadio()
// ´ë»ó°´Ã¼ : radio object
// ³»    ¿ë : ÁöÁ¤µÈ ÀÎµ¦½ºÀÇ ¶óµð¿À ¹öÆ° checked
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function setRadio(obj, idx) 
{
	for (var i = 0; i < obj.length; i++) {
		if (i == idx) {
			obj[i].checked = true;
			return;
		}
	}

	return;
}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : doDownLoad()
// ´ë»ó°´Ã¼ : ""
// ³»    ¿ë : FILEÀ» ´Ù¿î·Îµå ÇÑ´Ù
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function doDownLoad(filePath, fileSNm, fileVNm) 
{

	var downJsp = "/common/FileDown.jsp?"
	var param = "file_path="+filePath+
	            "&file_sname="+fileSNm+
	            "&file_vname="+fileVNm;
	window.location.href = downJsp+param;
}

/////////////////////////////////////////////////////////
// ¸Þ¼Òµå¸í : mskingMoney(str)
// ´ë»ó°´Ã¼ : str
// ³»    ¿ë : È­Æä´ÜÀ§ÀÇ masking
// ÀÛ ¼º ÀÚ : ±èÁ¤½Ä
//////////////////////////////////////////////////////////
function maskingMoney(str) 
{
//alert(str);	
	var reval = "";
	
	if (!isNumber(str))
	{
		alert("¼ýÀÚ¸¸ ÀÔ·Â");
		return;
	} 

	str = str.toString();
	for (var i=str.length; i>0; i--)
	{
	  if (i%3 == 0)
 		{
			if (i!=str.length)
			{
				reval += ",";
			}
 		}
 		reval += str.charAt(str.length-i);
	}
//alert(reval);		
	return reval;
}

/* ------------------------------------------------------------------------
 * gf_Trim		: ¹®ÀÚ¿­ÀÇ ¾ÕµÚ °ø¹éÀ» Á¦°ÅÇÑ´Ù
 * Parameter
   - str		: [String]	´ë»ó ¹®ÀÚ¿­
 * return		: [String]	°á°ú ¹®ÀÚ¿­
 ------------------------------------------------------------------------ */
function gf_Trim(str)
{
	return gf_LeftTrim(gf_RightTrim(str));
}

/* ------------------------------------------------------------------------
 * gf_LeftTrim	: ¹®ÀÚ¿­ÀÇ ¾Õ °ø¹éÀ» Á¦°ÅÇÑ´Ù
 * Parameter
   - str		: [String]	´ë»ó ¹®ÀÚ¿­
 * return		: [String]	°á°ú ¹®ÀÚ¿­
 ------------------------------------------------------------------------ */
function gf_LeftTrim(str) {
	if (str == null) {
		return "";
	}

	if (str.length == 0)
		return "";

	for (var i = 0; i < str.length; i++) {
		if (str.charAt(i) != ' ')
			return str.substr(i);
	}

	return "";
}

/* ------------------------------------------------------------------------
 * gf_RightTrim	: ¹®ÀÚ¿­ÀÇ µÞ °ø¹éÀ» Á¦°ÅÇÑ´Ù
 * Parameter
   - str		: [String]	´ë»ó ¹®ÀÚ¿­
 * return		: [String]	°á°ú ¹®ÀÚ¿­
 ------------------------------------------------------------------------ */
function gf_RightTrim(str) {
	if (str == null) {
		return "";
	}

	if (str.length == 0)
		return '';

	for (var i = str.length; i > 0; i--) {
		if (str.charAt(i-1) != ' ')
			return str.substr(0, i);
	}

	return '';
}

//Cookie °ü·Ã ÇÔ¼ö
function GetCookie(name) {
  var arg = name + "=";  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
     while (i < clen) {
       var j = i + alen;
       if (document.cookie.substring(i, j) == arg)
          return getCookieVal(j);
       i = document.cookie.indexOf(" ", i) + 1;
       if (i == 0) break;
     }  
  return;
}

function SetCookie (name, value) {  
  var expdays = 365;
  var expdate = new Date();
  expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * expdays)); 
  document.cookie = name + "=" + escape (value) + "; path=/; expires=" + expdate.toGMTString();
}

function getCookieVal(offset) {
  var endstr = document.cookie.indexOf (";", offset);  

  if (endstr == -1)
     endstr = document.cookie.length;  
     return unescape(document.cookie.substring(offset, endstr));
}

//¸Þ´º ¸µÅ© ½ºÅ©¸³Æ®
function menulink(num){
	var moveUrl = "";
	switch(num){
//---db±¸Ãà°¡ÀÌµå
		case 1 :		
			//location.href = "http://www.dbguide.net/guid/guid100000.jsp?check_val"+f.check_val.value;
			//location.href = "http://testdbguide.net/guid/guid100000.jsp?check_val="+param;
			moveUrl = "/guid/guid100000.jsp";
			goWebWin(moveUrl);
			break;
		case 101 :		//---db±¸Ãà°¡ÀÌµå > db °¡ÀÌµå ¹æ¹ý·Ð
			//location.href = "http://www.dbguide.net/guid/guid110000.jsp?catenum=4";
			//location.href = "http://testdbguide.net/guid/guid110000.jsp?catenum=4";
			moveUrl = "/guid/guid110000.jsp?catenum=4";
			goWebWin(moveUrl);
			break;
		case 102 :		//---db±¸Ãà°¡ÀÌµå > »êÃâ¹°
			//location.href = "http://www.dbguide.net/guid/guid110001.jsp?catenum=111";
			moveUrl = "/guid/guid110001.jsp?catenum=111";
			goWebWin(moveUrl);
			break;
		case 103 :		//---db±¸Ãà°¡ÀÌµå > ±âÅ¸ ¹æ¹ý·Ð
			//location.href = "http://www.dbguide.net/guid/guid120001.jsp?catenum=10";
			moveUrl = "/guid/guid120001.jsp?catenum=10";
			goWebWin(moveUrl);
			break;
		case 104 :		//---db±¸Ãà°¡ÀÌµå > ¹æ¹ý·Ð °Ô½ÃÆÇ
			//location.href = "http://www.dbguide.net/guid/guid130001.jsp?catenum=11";
			moveUrl =	"/guid/guid130001.jsp?catenum=11";		
			goWebWin(moveUrl);
			break;
		case 105 :		//---db±¸Ãà°¡ÀÌµå > °¡ÀÌµå ¸ðÀ½
			//location.href = "http://www.dbguide.net/guid/guid116001.jsp?catenum=206";
			moveUrl = "/guid/guid116001.jsp?catenum=206";
			goWebWin(moveUrl);
			break;
//---Áö½Ä¶óÀÌºê·¯¸®  
		case 2 :		
			//location.href = "http://www.dbguide.net/know/know100000.jsp";
			moveUrl = "/know/know100000.jsp";
			goWebWin(moveUrl);
			break;
		case 201 :		//---Áö½Ä¶óÀÌºê·¯¸®  > Àü¹®°¡ Ä®·³
			//location.href = "http://www.dbguide.net/know/know101001.jsp?catenum=14";
			moveUrl = "/know/know101001.jsp?catenum=14";
			goWebWin(moveUrl);
			break;						
		case 202 :		//---Áö½Ä¶óÀÌºê·¯¸®  > ±â¼ú ÀÚ·á
			//location.href = "http://www.dbguide.net/know/know102001.jsp?catenum=15";
			moveUrl = "/know/know102001.jsp?catenum=15";
			goWebWin(moveUrl);
			break;						
		case 203 :		//---Áö½Ä¶óÀÌºê·¯¸®  > ½ÃÀå µ¿Çâ
			//location.href = "http://www.dbguide.net/know/know103001.jsp?catenum=16";
			moveUrl = "/know/know103001.jsp?catenum=16";
			goWebWin(moveUrl);
			break;						
		case 204 :		//---Áö½Ä¶óÀÌºê·¯¸®  > ¸®Æ÷Æ®
			//location.href = "http://www.dbguide.net/know/know104001.jsp?catenum=17";
			moveUrl = "/know/know104001.jsp?catenum=17";
			goWebWin(moveUrl);
			break;						
		case 205 :		//---Áö½Ä¶óÀÌºê·¯¸®  > case study
			//location.href = "http://www.dbguide.net/know/know105001.jsp?catenum=18";
			moveUrl = "/know/know105001.jsp?catenum=18";
			goWebWin(moveUrl);
			break;						
		case 206 :		//---Áö½Ä¶óÀÌºê·¯¸®  > ¼¼¹Ì³ª ÀÚ·á
			//location.href = "http://www.dbguide.net/know/know107001.jsp?catenum=20";
			moveUrl = "/know/know107001.jsp?catenum=20";
			goWebWin(moveUrl);
			break;						
		case 207 :		//---Áö½Ä¶óÀÌºê·¯¸®  > »êÃâ¹°
			//location.href = "http://www.dbguide.net/know/know108001.jsp?catenum=21";
			moveUrl = "/know/know108001.jsp?catenum=21";
			goWebWin(moveUrl);
			break;						
		case 208 :		//---Áö½Ä¶óÀÌºê·¯¸®  > Á¦Ç° ¼Ö·ù¼Ç
			//location.href = "http://www.dbguide.net/prod/prod131001.jsp?catenum=202";
			moveUrl = "/prod/prod131001.jsp?catenum=202";
			goWebWin(moveUrl);
			break;						
		case 209 :		//---Áö½Ä¶óÀÌºê·¯¸®  > Ä¿¹ö ½ºÅä¸®
			//location.href = "http://www.dbguide.net/know/know109001.jsp?catenum=22";
			moveUrl = "/know/know109001.jsp?catenum=22";
			goWebWin(moveUrl);
			break;						
		case 210 :		//---Áö½Ä¶óÀÌºê·¯¸®  > ´º½º·¹ÅÍ
			//location.href = "http://www.dbguide.net/know/know110001.jsp?catenum=23";
			moveUrl = "/know/know110001.jsp?catenum=23";
			goWebWin(moveUrl);
			break;						

//---DBQNA
		case 3 :		
			//location.href = "http://www.dbguide.net/dbqa/dbqa100000.jsp";
			moveUrl = "/dbqa/dbqa100000.jsp";
			goWebWin(moveUrl);
			break;
		case 301 :		//---DBQNA  > ±Ã±ÝÁõ ÇØ°á»ç
			//location.href = "http://www.dbguide.net/dbqa/dbqa111001.jsp?catenum=26";
			moveUrl = "/dbqa/dbqa111001.jsp?catenum=26";
			goWebWin(moveUrl);
			break;						
		case 302 :		//---DBQNA  > ³ª¸¸ÀÇ ³ëÇÏ¿ì
			//location.href = "http://www.dbguide.net/dbqa/dbqa120001.jsp?catenum=31";
			moveUrl = "/dbqa/dbqa120001.jsp?catenum=31";
			goWebWin(moveUrl);
			break;						
		case 303 :		//---DBQNA  > DB Æ©´× ¼­ºñ½º
			//location.href = "http://www.dbguide.net/dbqa/oracle_tune/index.jsp";
			moveUrl = "/dbqa/oracle_tune/index.jsp";
			goWebWin(moveUrl);
			break;						
		case 304 :		//---DBQNA  > DB Applocation ¼­ºñ½º
			//location.href = "http://www.dbguide.net/sa/sa_index_infra.jsp";
			moveUrl = "/sa/sa_index_infra.jsp";
			goWebWin(moveUrl);
			break;						

//---±³À°/¼¼¹Ì³ª

		case 4 :		
			//location.href = "http://www.dbguide.net/educ/educ100000.jsp";
			moveUrl = "/educ/educ100000.jsp";
			goWebWin(moveUrl);			
			break;
		case 401 :		//---±³À°/¼¼¹Ì³ª  > ±³À°/¼¼¹Ì³ª Á¤º¸
			//location.href = "http://www.dbguide.net/educ/educ111001.jsp?catenum=49";
			moveUrl = "/educ/educ111001.jsp?catenum=49";
			goWebWin(moveUrl);			
			break;						
		case 403 :		//---±³À°/¼¼¹Ì³ª  > ±³¼öÁø
			//location.href = "http://www.dbguide.net/educ/educ113001.jsp?catenum=130";
			moveUrl = "/educ/educ113001.jsp?catenum=130";
			goWebWin(moveUrl);			
			break;						
		case 404 :		//---±³À°/¼¼¹Ì³ª  > ¼¼¹Ì³ªÀÚ·á
			//location.href = "http://www.dbguide.net/educ/educ130001.jsp?catenum=53";
			moveUrl = "/educ/educ130001.jsp?catenum=53";
			goWebWin(moveUrl);			
			break;						
		case 405 :		//---±³À°/¼¼¹Ì³ª  > Àü¹®¼­Àû
			//location.href = "http://www.dbguide.net/educ/educ_book.jsp?catenum=19";
			moveUrl = "/educ/educ_book.jsp?catenum=19";
			goWebWin(moveUrl);			
			break;						
		case 406 :		//---±³À°/¼¼¹Ì³ª  > ÇöÀå±³À°
			//location.href = "http://www.dbguide.net/educ/educ190001.jsp?catenum=131";
			moveUrl = "/educ/educ190001.jsp?catenum=131";
			goWebWin(moveUrl);			
			break;						
		case 407 :		//---±³À°/¼¼¹Ì³ª  > Ãë¾÷Á¤º¸
			//location.href = "http://www.dbguide.net/educ/educ150001.jsp?catenum=58";
			moveUrl = "/educ/educ150001.jsp?catenum=58";
			goWebWin(moveUrl);			
			break;						
		case 408 :		//---±³À°/¼¼¹Ì³ª  > ¾È³» & µµ¿ì¹Ì
			//location.href = "http://www.dbguide.net/educ/educ_faq.jsp?catenum=59";
			moveUrl = "/educ/educ_faq.jsp?catenum=59";
			goWebWin(moveUrl);			
			break;			
		case 409 :		//---±³À°/¼¼¹Ì³ªµî·Ï ¹Ù·Î°¡±â
			moveUrl = "/educ/educ111002.jsp?mode=write";
			goWebWin(moveUrl);			
			break;			
			

//---D-blog
		case 5 :		
			//location.href = "http://www.dbguide.net/blog_main/";
			moveUrl = "/blog_main/";
			goWebWin(moveUrl);
			break;

//---Ä¿¹Â´ÏÆ¼
		case 6 :		
			//location.href = "http://www.dbguide.net/club/";
			moveUrl = "/club/";
			goWebWin(moveUrl);
			break;
			
//---¿Â¶óÀÎ°­ÀÇ
		case 7 :    //---¿Â¶óÀÎ °­ÀÇ
			location.href = "/index.jsp";
			break;
		case 701 :    //---¿Â¶óÀÎ °­ÀÇ > ¼ö°­½ÅÃ»/¾È³»		
			location.href = "/user/apply/Apply.jsp?gubun_fg=A";
			break;
		case 702 :		//---¿Â¶óÀÎ °­ÀÇ > ³ªÀÇ °­ÀÇ½Ç		 
			location.href = "/user/MoveClass.jsp?gubun_fg=B";
			break;
		case 703 :		//---¿Â¶óÀÎ °­ÀÇ > ÇÐ½Àµµ¿ì¹Ì		
			location.href = "/user/help/Help.jsp?gubun_fg=C";
			break;
		case 704 :		//---¿Â¶óÀÎ °­ÀÇ > Á¤º¸°øÀ¯
			location.href = "/user/faq/Faq.jsp?gubun_fg=D";
			break;	
		//case 705 :		//---¿Â¶óÀÎ °­ÀÇ > ÀÚÀ¯°Ô½ÃÆÇ
			//location.href = "/user/fboard/Fboard.jsp?gubun_fg=A";
			//break;		

//¹Ù·Î°¡±â
		case 801 :		//---±³À°/¼¼¹Ì³ªµî·Ï ¹Ù·Î°¡±â
			moveUrl = "/educ/educ111002.jsp?mode=write";
			goWebWin(moveUrl);			
			break;
		case 802 :		//---About us ¹Ù·Î°¡±â
			moveUrl = "/info/info121001.jsp?catenum=104";
			goWebWin(moveUrl);			
			break;
		case 803 :		//---Contact Us ¹Ù·Î°¡±â
			moveUrl = "/info/info121007.jsp?catenum=109";
			goWebWin(moveUrl);			
			break;
		case 804 :		//---°³ÀÎÁ¤º¸º¸È£Á¤Ã¥ ¹Ù·Î°¡±â
			moveUrl = "/info/info130001.jsp?catenum=101";
			goWebWin(moveUrl);			
			break;
		case 805 :		//---°ü·Ã»çÀÌÆ® ¹Ù·Î°¡±â
			moveUrl = "/info/info140001.jsp?catenum=102";
			goWebWin(moveUrl);			
			break;
		case 806 :		//---Á¦ÈÞ¾÷Ã¼ ¹Ù·Î°¡±â
			moveUrl = "/info/info150001.jsp?catenum=103";
			goWebWin(moveUrl);			
			break;
		case 807 :		//---°í°´¼¾ÅÍ ¹Ù·Î°¡±â
			moveUrl = "/cust/cust120001.jsp";
			goWebWin(moveUrl);			
			break;
		case 808 :		//---IT¿ë¾î»çÀü ¹Ù·Î°¡±â
			moveUrl = "/dict/dict110001.jsp";
			goWebWin(moveUrl);			
			break;
		case 809 :		//---»çÀÌÆ®¸Ê ¹Ù·Î°¡±â
			moveUrl = "/info/info110001.jsp";
			goWebWin(moveUrl);			
			break;
		case 810 :		//---HOME ¹Ù·Î°¡±â
			moveUrl = "/index_main.jsp";
			goWebWin(moveUrl);			
			break;													

//---¸¶ÀÌÆäÀÌÁö ¹Ù·Î°¡±â
		case 9 :		
			//location.href = "http://www.dbguide.net/club/";
			moveUrl = "/mypage/mypage_main_lms.jsp";
			goWebWin(moveUrl);
			break;
	}
}

function menulink_blog(blogid, gourl) 
{
		//var gourl = "";
		//gourl = "/blog/blog_lms_test.jsp?urlid=" + blogid +"@";
//		alert(gourl);
		goWebWin(gourl );	
// 2005-10-11 ÁÂÃøÆÐ³Î [³»ºí·Î±×°¡±â] ¹öÆ° Å¬¸¯½Ã ºí·Î±× µî·ÏÇÏ¶ó´Â ¸Å½ÃÁö ¶ß´Â ¿À·ù
//		location.href="/blog/blogLogin.jsp?blogid="+blogid+"&gourl="+ gourl;
}

function goWebWin(pUrl)  
{	
	var poph = (screen.height + 5);
	var popw = (screen.width + 5);

	popft = 'height=5 ,width=5,top='+poph+',left='+popw+',status=0';
	window.open("/common/AutoLogin.jsp?move_url="+pUrl, '_blank', popft );
//var win_pop = window.open("/common/AutoLogin.jsp?move_url="+pUrl+"&param_val="+pParam+"","view_pop","width=625, height=795,resizable=yes,scrollbars=no");	
}
	
function __ws__(id)
{
	document.write(id.text);id.id='';
}


function right(e) 
{ 
  if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) 
  {
     return false; 
  }
  else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 
	{ 
     //alert("¿À¸¥ÂÊ ¹öÆ°À» Å¬¸¯ÇÏ½Ã¸é ¾ÈµË´Ï´Ù.");
     return false; 
  } 
     return true; 
  /*
	document.onmousedown=right; 
	if (document.layers) 
  	 window.captureEvents(Event.MOUSEDOWN); 
   	 window.onmousedown=right; 
  */
} 


function checkClick(ev) 
{ 
	if(ev.which !=1) 
	{ 
  	//alert("¿À¸¥ÂÊ ¹öÆ°À» Å¬¸¯ÇÏ½Ã¸é ¾ÈµË´Ï´Ù.");
    return false 
  } 

/*
	if (navigator.appName == "Netscape")
	{ 
		document.captureEvents(Event.MOUSEDOWN) 
	}
	document.onmousedown = checkClick; 
*/	
} 


//20100517 back space ÀÌº¥Æ® °¡´ÉÇÏµµ·Ï Ã³¸®
// ||event.keyCode == 8 ³»¿ë »èÁ¦
function processKey() 
{ 
	if( (event.ctrlKey == true&&(event.keyCode == 78||event.keyCode==82))
		  ||(event.keyCode>=112&&event.keyCode<= 123)) 
	{ 
  	event.keyCode = 0; 
		event.cancelBubble = true; 
		event.returnValue = false; 
  } 

/*
document.onkeydown = processKey;
*/
} 


// 1. ¸ð´Þ¸Þ½ÃÁöÈ­¸é
function doMsgShow(msgID,btnType,n1,n2,n3) {

	if (msgID==0) return;

	var style 	= "dialogWidth:360px; dialogHeight:242px; center:yes;status:no;scroll:no;resizable:no;"
	alert(n1);
	var msgURL 	= "/common/ShowMessage.jsp?msgID=" + msgID  + "&btnType=" + btnType + "&n1=" + n1 + "&n2=" + n2 + "&n3=" + n3;
	var msg 	= new Array();
	
	msg[0] 		= msgID ;
	msg[1] 		= btnType;

    var szName = window.showModalDialog (msgURL,msg, style );
    return szName;
}

// 2. ¸ð´Þ¸Þ½ÃÁöÈ­¸é
function doMsgShow2(msgID,btnType,n1,n2,n3) {

	if (msgID==0) return;

	var style 	= "dialogWidth:360px; dialogHeight:242px; center:yes;status:no;scroll:no;resizable:no;"
	alert(n1);
	var msgURL 	= "/common/ShowMessage.jsp?msgID=" + msgID  + "&btnType=" + btnType + "&n1=IngContensListPop&n2=" + n2 + "&n3=" + n3;
	var msg 	= new Array();
	
	msg[0] 		= msgID ;
	msg[1] 		= btnType;

    var szName = window.showModalDialog (msgURL,msg, style );
    return szName;
}


// DYNAMIC HTML MIME Ã³¸®
function MIME_format(a) { str=""; tmp=""; IS_BODY=false;
if(a.indexOf("MiWECAlternativeBoundary")>0) {s=a.replace("Content-Type: multipart/alternative;boundary=\"___MiWECAlternativeBoundary1___\"\n","");
s=s.replace("type= \"multipart/alternative\";",""); s=s.replace("--___MiWECAlternativeBoundary1___\n","");
s=s.replace("--___MiWECAlternativeBoundary1___--\n\n",""); arr_s=s.split("\n");
for(i=0; i<arr_s.length; i++){if(arr_s[i].length<65){if(!IS_BODY) str+=arr_s[i]+"\n"; else {
tmp+=arr_s[i]; for(j=0; j<tmp.length; j+=76) {if(j>=tmp.length-76) str+=tmp.substring(j)+"\n"; else str+=tmp.substring(j,j+76)+"\n";}
tmp=""; IS_BODY=false; }} else { tmp += arr_s[i]; IS_BODY=true; }}
str = str.replace(/;/g,";\n\t"); return str; } else return a; }

