
//*----------------------------------------------------------------------------*
//* ÇÃ·¡½Ã ±¸µ¿
//*----------------------------------------------------------------------------*
function fnFlashObject(path, width, height, flashvars) {
  var m_protocol = document.location.protocol.replace(":","");
  var m_movie = path;
  var m_width = width;
  var m_height = height;
  var m_flashvars = flashvars;
  this.wmode = "opaque";    //or (window : swf°¡ÃÖ»ó´ÜÀ§Ä¡(default), opaque : ·¹ÀÌ¾î¸¸ »ó´ÜÀ§Ä¡ °¡´É, transparent : swf¹é±×¶ó¿îµå Åõ¸íÃ³¸®ÈÄ htmlÇ¥½Ã °¡´É, ¼ÓµµÀúÇÏ¿ì·Á)
  this.id = "";
  this.quality = "high";
  this.menu = "false";
  this.allowScriptAccess = "sameDomain";
  
  var html;
  
  html ="";
    html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='"+ m_protocol +"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + m_width + "' height='" + m_height + "'";
    if (this.id != "") html += " id='" + this.id + "'";
    html += ">";

    html += "<param name='allowScriptAccess' value='" + this.allowScriptAccess + "' />";
    html += "<param name='movie' value='" + m_movie + "' />";
    html += "<param name='menu' value='" + this.menu + "' />";
    html += "<param name='quality' value='" + this.quality + "' />";
    if (this.wmode != "") html += "<param name='wmode' value='" + this.wmode + "' />";
    if (m_flashvars != "") html += "<param name='FlashVars' value='" + m_flashvars + "' />";

    html += "<embed src='" + m_movie + "' quality='" + this.quality + "' pluginspage='"+ m_protocol +"://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + m_width + "' height='" + m_height + "'";
    html += " allowScriptAccess='" + this.allowScriptAccess + "'";
    if (this.wmode != "") html += " wmode='" + this.wmode + "'";
    if (m_flashvars != "") html += " FlashVars='" + m_flashvars + "'";
    html += " /></object>";

  document.write(html);
}


//*----------------------------------------------------------------------------*
//* MM_
//*----------------------------------------------------------------------------*
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];}
}


//*----------------------------------------------------------------------------*
//* inputÅ¸ÀÔ Ã¼Å© ÇÔ¼ö
//*----------------------------------------------------------------------------*
// ³Î(Null) À¯¹« Ã¼Å© : fnNullChk('À¯Çü[select-one/radio/checkbox/text/file/hidden/textarea/password]', ÇÊµå¸í, '¸Þ¼¼Áö');
function fnNullChk(szInputType, szInputName, szAlertMsg){
  var objName = eval(szInputName);
  var blnRet = true;
  var nRadioChkCnt = 0;
  var nCheckboxChkCnt = 0;
  
  if(szInputType=='select-one'){
    if(objName.selectedIndex < 0){
      blnRet = false;
    }else{
      if((objName.options[objName.selectedIndex].value)==''){blnRet = false;}
    }
  }else if(szInputType=='radio' || szInputType=='checkbox'){
    if(objName.length > 1){
      for(var j=0; j < objName.length; j++){
        if(objName[j].checked){nRadioChkCnt++;}
      }
    }else{
      if(objName.checked){nRadioChkCnt++;}
    }
    if(nRadioChkCnt==0){blnRet = false;}
  }else if(szInputType=='text' || szInputType=='file' || szInputType=='hidden' || szInputType=='textarea' || szInputType=='password'){
    if(fnTrim(objName.value)==''){blnRet = false;}
  }
  if(szInputType=='file' && blnRet == true){
    if((objName.value.search(':/') == -1)){blnRet = false;}
  }
  if(!blnRet){
    fnAlertFocus(szInputType, szInputName, szAlertMsg);
    return false;
  }
}
//*----------------------------------------------------------------------------*
// ÀÌ¸ÞÀÏ À¯È¿¼º Ã¼Å© : fnEmailChk(ÇÊµå¸í);
function fnEmailChk(objEmail){
  var objEmail = eval(objEmail);
  var szEmail = objEmail.value;
  var regDoNot = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
  var regMust = /^[a-zA-Z0-9\-\.\_]+@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3})$/;
  if(!regDoNot.test(szEmail) && regMust.test(szEmail)){
    return true;
  }else{
    alert('ÀÌ¸ÞÀÏ ¾ç½ÄÀÌ Æ²¸³´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.     ');
    objEmail.focus();
    return false;
  }
}
//*----------------------------------------------------------------------------*
// ÁÖ¹Î¹øÈ£ À¯È¿¼º Ã¼Å© : fnJuminChk(ÇÊµå¸í);
function fnJuminChk(objJumin){
  var juminNumber = objJumin.value;
  
  // ÁÖ¹Î¹øÈ£ÀÇ ÇüÅÂ¿Í 7¹øÂ° ÀÚ¸®(¼ºº°) À¯È¿¼º °Ë»ç
  objPattern = /^\d{6}[1234]\d{6}$/;
  if(!objPattern.test(juminNumber)){alert("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.       ");objJumin.focus();return false;}
  
  // ³¯Â¥ À¯È¿¼º °Ë»ç
  birthYear = (juminNumber.charAt(7) <= "2") ? "19" : "20";
  birthYear += juminNumber.substr(0, 2);
  birthMonth = juminNumber.substr(2, 2) - 1;
  birthDate = juminNumber.substr(4, 2);
  birth = new Date(birthYear, birthMonth, birthDate);
  if(birth.getYear() % 100 != juminNumber.substr( 0, 2 ) || birth.getMonth() != birthMonth || birth.getDate() != birthDate ){alert("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.       ");objJumin.focus();return false;}
  
  // Check Sum ÄÚµåÀÇ À¯È¿¼º °Ë»ç
  buf = new Array( 13 );
  for(i = 0;i < 6;i++) buf[i] = parseInt(juminNumber.charAt(i));
  for(i = 6;i < 13;i++) buf[i] = parseInt(juminNumber.charAt(i));
  multipliers = [2, 3, 4, 5, 6, 7, 8, 9, 2, 3, 4, 5];
  for(i = 0, sum = 0;i < 12;i++) sum += (buf[i] *= multipliers[i]);
  if((11 - (sum % 11)) % 10 != buf[12]){alert("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.       ");objJumin.focus();return false;}
  return true;
}
//*----------------------------------------------------------------------------*
// ¼ýÀÚ Ã¼Å© : fnOnlyNumChk(ÇÊµå¸í, '¸Þ¼¼Áö');
function fnOnlyNumChk(objNum, szAlertMsg){
  var objNum = eval(objNum);
  var szValue = objNum.value;
  
  szValue = szValue.toUpperCase();
  
  for(var i=0; i < szValue.length; i++){
    if(szValue.charAt(i)==' '){
      alert(szAlertMsg+'      ');
      objNum.focus();
      return false;
    }else if((szValue.charAt(i) < '0') || (szValue.charAt(i) > '9')){
      alert(szAlertMsg+'      ');
      objNum.focus();
      return false;
    }
  }
}
//*----------------------------------------------------------------------------*
// ¼ýÀÚ, ¹®ÀÚ Ã¼Å© : fnOnlyNumCharChk(ÇÊµå¸í, '¸Þ¼¼Áö');
function fnOnlyNumCharChk(objNum, szAlertMsg){
  var objNum = eval(objNum);
  var szValue = objNum.value;
  
  szValue = szValue.toUpperCase();
  
  for(var i=0; i < szValue.length; i++){
    if(szValue.charAt(i)==' '){
      alert(szAlertMsg+'      ');
      objNum.focus();
      return false;
    }else if(('0' <= szValue.charAt(i) && '9' >= szValue.charAt(i)) || ('A' <= szValue.charAt(i) && 'Z' >= szValue.charAt(i)) || ('a' <= szValue.charAt(i) && 'z' >= szValue.charAt(i)))  {
    }else{
      alert(szAlertMsg+'      ');
      objNum.value = '';
      objNum.focus();
      return false;
    }
  }
}
//*----------------------------------------------------------------------------*
// ÇÊµå ±æÀÌ Ã¼Å© : fnMsgLenChk(ÇÊµå¸í, ±æÀÌ, '¸Þ¼¼Áö');
function fnMsgLenChk(objMessage, nLimitLen, szAlertMsg){
  var nbytes = 0;
  var objMessage = eval(objMessage);
  var szMessage = objMessage.value;
  
  for(var i=0; i < szMessage.length; i++){
    var szChr = szMessage.charAt(i);
    
    if(escape(szChr).length > 4){
      nbytes += 2;
    }else if(szChr == '\n'){
      if(szMessage.charAt(i-1) != '\r') nbytes += 1;
    }else if(szChr == '<' || szChr == '>'){
      nbytes += 4;
    }else if(szChr == "'"){
      nbytes += 2;
    }else{
      nbytes += 1;
    }
  }
  
  if(nbytes > nLimitLen){
    alert(szAlertMsg+'      ');
    objMessage.value = '';
    objMessage.focus();
    return false;
  }
}
//*----------------------------------------------------------------------------*
// È®ÀÎÈÄ Æ÷Ä¿½º ÀÌµ¿ : fnAlertFocus('À¯Çü[select-one/radio/checkbox/text/file/hidden/textarea/password]', ÇÊµå¸í, '¸Þ¼¼Áö');
function fnAlertFocus(szInputType, szInputName, szAlertMsg){
  if(fnTrim(szAlertMsg)!=''){alert(szAlertMsg);}
  
  var objName = eval(szInputName);
  if((szInputType=='checkbox' || szInputType=='radio') && (objName.length > 0)){
    objName[0].focus();
  }else{
    objName.focus();
  }
}
//*----------------------------------------------------------------------------*
// °ø¹é ÅØ½ºÆ® Ã¼Å© : fnTrim('ÅØ½ºÆ®');
function fnTrim(szValue){
  var szRetVal = '';
  
  if(szValue == '') return false;
  for(var i=0; i<szValue.length; i++){if(szValue.charAt(i) != ' ') szRetVal = szRetVal + szValue.charAt(i);}
  return szRetVal;
}
//*----------------------------------------------------------------------------*
// ÄÞ¸¶ »ðÀÔ : fnInsertComma(ÇÊµå¸í);
function fnInsertComma(money){
  var str = money.value;
  var Re = /[^-0-9]/g;
  var ReN = /(-?[0-9]+)([0-9]{3})/;
  str = str.replace(Re,'');
  while(ReN.test(str)){str = str.replace(ReN, "$1,$2");}
  money.value = str;
}
//*----------------------------------------------------------------------------*
// ÄÞ¸¶ »ðÀÔ2 : fnInsertComma(°ªÇÊµå, Àû¿ëÇÊµå¸í);
function fnInsertComma2(money, view){
  var str = money.value;
  var Re = /[^-0-9]/g;
  var ReN = /(-?[0-9]+)([0-9]{3})/;
  str = str.replace(Re,'');
  while(ReN.test(str)){str = str.replace(ReN, "$1,$2");}
  view.value = str + '¿ø';
}
//*----------------------------------------------------------------------------*
// ³¯Â¥(³âµµ) À¯È¿¼º Ã¼Å© : fnValidYearCheck(³âµµ);
function fnValidYearCheck(yy){
  if(fnNullChk('text', yy, '³âÀ» ÀÔ·ÂÇÏ¼¼¿ä.') == false){return false;}
  if(fnOnlyNumChk(yy, '³âÀº ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.') == false){yy.value = "";return false;}
  if(yy.value < 1900 || yy.value > 2100){alert('³âÀ» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.');yy.value = "";yy.focus();return false;}
  return true;
}
//*----------------------------------------------------------------------------*
// ³¯Â¥(¿ù) À¯È¿¼º Ã¼Å© : fnValidMonthCheck(¿ù);
function fnValidMonthCheck(mm){
  if(fnNullChk('text', mm, '¿ùÀ» ÀÔ·ÂÇÏ¼¼¿ä.') == false){return false;}
  if(fnOnlyNumChk(mm, '¿ùÀº ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.') == false){mm.value = "";return false;}
  if(mm.value < 1 || mm.value > 12){alert('¿ùÀ» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.');mm.value = "";mm.focus();return false;}
  return true;
}
//*----------------------------------------------------------------------------*
// ³¯Â¥(ÀÏ) À¯È¿¼º Ã¼Å© : fnValidDayCheck(³â, ¿ù, ÀÏ);
function fnValidDayCheck(yy, mm, dd){
  var m = parseInt(mm.value,10) - 1;
  var d = parseInt(dd.value,10);
  var end = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
  if(fnNullChk('text', dd, 'ÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä.') == false){return false;}
  if(fnOnlyNumChk(dd, 'ÀÏÀº ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.') == false){dd.value = "";return false;}
  if((yy.value % 4 == 0 && yy.value % 100 != 0) || yy.value % 400 == 0){end[1] = 29;}
  if(d > end[m] || d < 1){alert('ÀÏÀ» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. ÇØ´ç¿ùÀÇ ¸¶Áö¸· ³¯Àº ' + end[m] + 'ÀÏÀÔ´Ï´Ù.');dd.value = "";dd.focus();return false;}
  return true;
}
//*----------------------------------------------------------------------------*
// ³¯Â¥(¾ç½Ä) À¯È¿¼º Ã¼Å© : fnValidDateTypeCheck(³¯Â¥);
function fnValidDateTypeCheck(fnDateValue){
  var regMust = /^[\d]{4}[-][\d]{2}[-][\d]{2}$/;
  if(regMust.test(fnDateValue.value)){
    var chkDateValueDim = fnDateValue.value.split('-');
    var yy = parseInt(chkDateValueDim[0],10);
    var m = parseInt(chkDateValueDim[1],10) - 1;
    var d = parseInt(chkDateValueDim[2],10);
    var end = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
    if(yy > 2100 || yy < 1900){alert('³âµµ¸¦ Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù  ');fnDateValue.focus();return false;}
    if(m > 11 || m < 0){alert('¿ùÀ» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù  ');fnDateValue.focus();return false;}
    if((chkDateValueDim[0].value % 4 == 0 && chkDateValueDim[0].value % 100 != 0) || chkDateValueDim[0].value % 400 == 0){end[1] = 29;}
    if(d > end[m] || d < 1){alert('ÀÏÀ» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. ÇØ´ç¿ùÀÇ ¸¶Áö¸· ³¯Àº ' + end[m] + 'ÀÏÀÔ´Ï´Ù.');fnDateValue.focus();return false;}
    return true;
  }else{
    alert('³¯Â¥ ¾ç½ÄÀÌ Æ²¸³´Ï´Ù. ÀÔ·Â¿¹) 2008-01-21  ');fnDateValue.value='';fnDateValue.focus();return false;
  }
}
//*----------------------------------------------------------------------------*
// ½Ã°£(½Ã) À¯È¿¼º Ã¼Å© : fnValidHourCheck(½Ã);
function fnValidHourCheck(hh){
  if(fnNullChk('text', hh, '½Ã°£À» ÀÔ·ÂÇÏ¼¼¿ä.') == false){return false;}
  if(fnOnlyNumChk(hh, '½Ã°£Àº ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.') == false){hh.value = "";return false;}
  if(hh.value < 0 || hh.value > 23){alert('½Ã°£À» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.');hh.value = "";hh.focus();return false;}
  return true;
}
//*----------------------------------------------------------------------------*
// ½Ã°£(ºÐ) À¯È¿¼º Ã¼Å© : fnValidMinuteCheck(ºÐ);
function fnValidMinuteCheck(mi){
  if(fnNullChk('text', mi, 'ºÐÀ» ÀÔ·ÂÇÏ¼¼¿ä.') == false){return false;}
  if(fnOnlyNumChk(mi, 'ºÐÀº ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.') == false){mi.value = "";return false;}
  if(mi.value < 0 || mi.value > 59){alert('ºÐÀ» Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.');mi.value = "";mi.focus();return false;}
  return true;
}
//*----------------------------------------------------------------------------*
// ÇÊµå°ª ÃæÁ·½Ã ´ÙÀ½ÇÊµå ÀÚµ¿ÀÌµ¿ Á¦¾î : fnKeyDownLimitChk(ÇÊµå¸í, ÀÌµ¿µÉ ÇÊµå¸í, ÀÌµ¿µÉ ÇÑ°è°ª);
function fnKeyDownLimitChk(objText, objNextText, objLimit){
  if(objText.value.length >= objLimit){objNextText.focus();}
}
//*----------------------------------------------------------------------------*
// IPÁÖ¼Ò À¯È¿¼º Ã¼Å© : fnIPChk(ÇÊµå¸í);
function fnIPChk(objIP){
  var objIP = eval(objIP);
  var szIP = objIP.value;
  var regMust = /^([0-9]{1,3})+\.+([0-9]{1,3})+\.+([0-9]{1,3})+\.+([0-9]{1,3})$/;
  if(regMust.test(szIP)){
    return true;
  }else{
    alert('IP ¾ç½ÄÀÌ Æ²¸³´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.     ');
    objIP.focus();
    return false;
  }
}


//*----------------------------------------------------------------------------*
//* ÀÀ¿ë ÇÔ¼ö
//*----------------------------------------------------------------------------*
// »õÃ¢¿­±â : new_win('¸®ÅÏURL', '»õÃ¢ÀÌ¸§', '°¡·ÎÆø', '¼¼·ÎÆø', '½ºÅ©·ÑÁ¦¾î[yes/no/auto]');
function new_win(filename, p_name, s_width, s_height, s_scrol){
  var x = screen.width;
  var y = screen.height;
  var wid = (x / 2) - (s_width / 2);
  var hei = (y / 2) - (s_height / 2);
  
  var pop = window.open(filename, p_name, "toolbar=0, location=0, directories=0, status=0, menubar=0, resizable=0, scrollbars=" + s_scrol + ", width=" + s_width + ", height=" + s_height + ", top=" + hei + ", left=" + wid);
  pop.focus();
}
//*----------------------------------------------------------------------------*
// ·¹ÀÌ¾î ºä or È÷µç Ã³¸®(´ÜÀÏ Div) : div_hidden(º¯°æÇÒdivÀÌ¸§);
function div_hidden(div){
  var divNm = div;
  
  if(divNm.style.display == 'none'){
    divNm.style.display = '';
  }else{
    divNm.style.display = 'none';
  }
}
//*----------------------------------------------------------------------------*
// ·¹ÀÌ¾î ºä or È÷µç Ã³¸®(´ÙÁß Div) : div_hidden2(º¸ÀÏdivÀÌ¸§, ¼û±ædivÀÌ¸§);
function div_hidden2(div, divh){
  var divNm = div;
  var divhNm = divh;
  
  divNm.style.display = '';
  divhNm.style.display = 'none';
}
//*----------------------------------------------------------------------------*
// IFrame »çÀÌÁî Á¦¾î : fnIFrameAutoSize(ÇÁ·¹ÀÓ¸í);
function fnIFrameAutoSize(arg){
  arg.height = eval(arg.name + ".document.body.scrollHeight");
}
//*----------------------------------------------------------------------------*
// °æ°í¹®±¸ Á¦¾î : fnConfirmPopup(¸ÇÆ®, ÁÖ¼Ò);
function fnConfirmPopup(fnMent, fnURL){
  var ment = confirm(fnMent);
  if(ment){window.location.href = fnURL;}
}
//*----------------------------------------------------------------------------*
// °æ°í¹®±¸ Á¦¾î2 : fnConfirmPopup2(¸ÇÆ®, ÁÖ¼Ò, °¡·ÎÆø, ¼¼·ÎÆø, ½ºÅ©·ÑÁ¦¾î[yes/no/auto]);
function fnConfirmPopup2(fnMent, fnURL, fnWidth, fnHeignt, fnScroll){
  var ment = confirm(fnMent);
  if(ment){new_win(fnURL, 'new_win', fnWidth, fnHeignt, fnScroll);}
}
//*----------------------------------------------------------------------------*
// °æ°í¹®±¸ Á¦¾î3 : fnConfirmPopup3(¸ÇÆ®, ÁÖ¼Ò, Å¸ÄÏÀ©µµ¿ì);
function fnConfirmPopup3(fnMent, fnURL, fnTarget){
  var ment = confirm(fnMent);
  if(ment){fnTarget.location.href=fnURL;fnTarget.focus();}
}
//*----------------------------------------------------------------------------*
//ÆË¾÷Ã¢ ¼³Á¤ (ÄíÅ°Ã³¸® Æ÷ÇÔ)
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() + ";" 
} 
function openMsgBox(chkName, chkUrl, chkWidth, chkHeight, chkScroll){
   var eventCookie=getCookie(chkName);
   var screenWidth = screen.availWidth;
   var screenHeight = screen.availHeight;
   var intLeft = (screenWidth - chkWidth) / 2;
   var intTop = (screenHeight - chkHeight) / 2;
   if (eventCookie != "no")
      window.open(chkUrl, chkName, 'toolbar=no, status=no, resizeable=yes, scrollbars='+chkScroll+', left='+intLeft+', top='+intTop+', width='+chkWidth+', height='+chkHeight+'');
}
function closeWin(chkName){
   setCookie(chkName, "no" , 1); // 1ÀÏ °£ ÄíÅ°Àû¿ë 
   self.close();
} 
//*----------------------------------------------------------------------------*
//ÅÇ ºä Ã³¸®
function fnTabView(num, tabcount){
  for (i=1; i<=tabcount; i++) {
    var view_up = document.getElementById("ntab0" + i);
    if (i == num) {
      view_up.style.display="";
    } else {
      view_up.style.display="none";
    }
  }
}
//*----------------------------------------------------------------------------*
//»ç¿ëÀÚ ¾ð¾îº° ±¹¿µ¹® ºÐ»ê Ã³¸® (IE¸¸ Àû¿ëµÊ, ÃßÈÄ Àû¿ë½Ã Å¸ºê¶ó¿ìÁ® Àû¿ë ÇÊ¼ö)
//function fnUserLanguageInfo(fnURL){
//	var strLanguage = (navigator.language || navigator.systemLanguage || navigator.userLanguage).toLowerCase().split(/-/);
//	
//	if(strLanguage == "ko"){
//		//±¹¹® Ã³¸®
//	}else{
//		//±×¿Ü Ã³¸®
//		document.location.href=fnURL;
//	}
//}

