<!--
  function not_login(rtn_page){
    var msg = "·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ¼­ºñ½ºÀÔ´Ï´Ù."
    if(confirm(msg)){
      document.location.href = "/member/login.asp?rtn_page=" + rtn_page;
    }else{
      return;
    }
  }


  function win_open(winname,strlink,width,height,scroll){
    window.open(strlink,winname,'width=' + width + ',height=' + height + ',scrollbars=' + scroll + ',resizable=no');
    return;
  }

  function goBoard(board_link,bc_seq,method,page,b_seq,search_key,search_word){
    document.location.href = board_link + "?bc_seq=" + bc_seq + "&method=" + method + "&page=" + page + "&b_seq=" + b_seq + "&search_key=" + search_key + "&search_word=" + search_word;
  }

  var img_view = null;
  function openImage(img){
    var newImg = new Image();
    newImg.src = (img);
    imgw = newImg.width;
    imgh = newImg.height;

    var maxWidth = screen.width;
    var maxHeight = screen.height;

    if(imgw > maxWidth || imgh > maxHeight){
      if(imgw > imgh){
        if(imgw > maxWidth)
          newWidth = maxWidth;
        else
          newWidth = imgw;
          newHeight = Math.round((imgh * newWidth) / imgw);
      }else{
        if(imgh > maxHeight)
          newHeight = maxHeight;
        else
          newHeight = imgh;
          newWidth = Math.round((imgw * newHeight) / imgh);
      }
    }else{
      newWidth = imgw;
      newHeight = imgh;
    }

    var window_left = (maxWidth - newWidth)/2;
    var window_top = (maxHeight - newHeight)/2;

    img_view = window.open('', '', 'width=' + newWidth + ', height=' + newHeight + ', scrollbars=no,top=' + window_top + ',left=' + window_left + '');

    img_view.document.open();
    img_view.document.writeln('<body topmargin=0 leftmargin=0 marginheight=0 marwidth=0>');
    img_view.document.writeln('<a href=javascript:window.close() title=Ã¢´Ý±â>');
    img_view.document.writeln('<img src=\"' + newImg.src + '\" width=' + newWidth + ', height=' + newHeight + ' border=0></a></body>');
    img_view.focus();
  }

  // ±×¸² ÀÌ¹ÌÁö ºñ·Ê Á¶Á¤
  function resizeImg(target_img,s_width,s_height){
    var newX;
    var newY;
    var newHeight;
    var newWidth;
    var maxWidth = s_width;
    var maxHeight = s_height;
    var newImg = new Image();
    newImg.src = target_img.src;
    imgw = newImg.width;
    imgh = newImg.height;

    if(imgw > maxWidth || imgh > maxHeight){
      if(imgw > imgh){
        if(imgw > maxWidth)
          newWidth = maxWidth;
        else
          newWidth = imgw;
          newHeight = Math.round((imgh * newWidth) / imgw);
      }else{
        if(imgh > maxHeight)
          newHeight = maxHeight;
        else
          newHeight = imgh;
          newWidth = Math.round((imgw * newHeight) / imgh);
      }
    }else{
      newWidth = imgw;
      newHeight = imgh;
    }
    newX = maxWidth / 2 - newWidth / 2;
    newY = maxHeight / 2 - newHeight / 2;
    target_img.onload = null;
    target_img.src = newImg.src;
    target_img.width = newWidth;
    target_img.height = newHeight;
  }

  function image_resize(objImg,max_width){
    if(objImg != null){
      if(objImg.width > max_width){
        objImg.width = max_width;
      }
    }
  }

  /*** ºÎ¸ð iframe »çÀÌÁî º¯°æÇÏ´Â  function */
  function resizeParentIframe(iframeObj, w, h){
    if(iframeObj) {
      iframeObj.width=w;
      iframeObj.height=h;
    }
  }

  // ±âº» ½ºÅ©¸³Æ®
  function chkNull(obj, msg){
    if(obj.value.split(" ").join("") == ""){
      alert(msg);
      if(obj.type != "hidden"){
        obj.focus();
      }
      return false;
    }else{
      return true;
    }
  }

  function chkLen(obj, minSize, maxSize, msg){
    if(minSize > maxSize){
      alert(obj.name + '¿¡ ´ëÇÑ ±æÀÌ Ã¼Å©¿¡ Àß¸øµÈ ¹üÀ§¸¦ »ç¿ëÇß½À´Ï´Ù.');
      return false;
    }

    var objval_len = obj.value.length;
    var temp;

    for(i = 0; i < objval_len; i++){
      temp = obj.value.charAt(i);
      if(escape(temp).length > 4)
      objval_len++;
    }

    if((objval_len < minSize) || (objval_len > maxSize)){
      alert(msg);
      obj.focus();
      return false;
    }else{
      return true;
    }
  }

  function chkByte(obj, minSize, maxSize, msg){
    var curText;
    var strLen;
    var byteIs;
    var lastByte;
    var thisChar;
    var escChar;
    var curTotalMsg;
    var okMsg;

    curText = new String(obj.value);
    strLen = curText.length;
    byteIs = 0;

    for(i=0; i<strLen; i++) {
      thisChar = curText.charAt(i);
      escChar = escape(thisChar);

      // ¢¥,¡§, ¢¬ : 2byte ÀÓ¿¡µµ ºê¶ó¿ìÁ®¿¡¼­ 1byte·Î °è»ê
      if(thisChar == "¢¥" || thisChar == "¡§" || thisChar == "¢¬" || thisChar == "¡×" ){
        byteIs++;
      }

      if (escChar.length > 4) {
        byteIs += 2;  //Æ¯¼ö¹®ÀÚ ÇÑ±ÛÀÎ °æ¿ì.
      }else if(thisChar != '\r') {  //°³ÇàÀ» Á¦¿ÜÇÑ ÀÌ¿ÜÀÇ °æ¿ì
        byteIs += 1;
      }

      lastByte = byteIs;
    }

    if((byteIs < minSize) || (byteIs > maxSize)){
      alert(msg);
//      obj.focus();
      return false;
    }else{
      return true;
    }
  }

  function number_validate(theForm){
    if(theForm.value != ""){
      var str=theForm.value;
      for(var i = 0; i< str.length; i++){
        var ch = str.substring(i, i + 1);
        if((ch<"0" || ch>"9")){
          alert("¼ýÀÚ ¸¸À» ÀÔ·ÂÇÒ¼ö ÀÖÀ¾´Ï´Ù.");
          tye = 1;
          theForm.value="";
          theForm.focus();
          return false;
        }else{
          tye=0;
        }
      }
    }else{
      tye=0;
    }
    return true;
  }

  function chkCheck(obj, msg){
    var cnt = 0;
    if(obj.length > 1){
      for(var i = 0; i < obj.length; i++){
        if(obj[i].checked){
          cnt++;
        }
      }
    }else{
      if(obj.checked){
        cnt++;
      }
    }

    if(cnt == 0){
      alert(msg);
//      obj.focus();
      return false;
    }else{
      return true;
    }
  }

  function chkRadio(obj, msg){
    var rchk = "0";
    if(obj.length > 1){
      for(var i = 0; i < obj.length; i++){
        if(obj[i].checked){
          rchk = "1";
          break;
        }
      }
    }else{
      if(obj.checked){
        rchk = "1";
      }
    }

    if(rchk == "0"){
      alert(msg);
      return false;
    }else{
      return true;
    }
  }

  function chkEmail(obj){
    var val = obj.value;

    if(val != ""){
      if(val.indexOf(" ") != -1){
        alert("°ø¹éÇã¿ë µÇÁö ¾Ê½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.indexOf("@") < 1){
        alert("'@' ´©¶ôµÇ¾ú½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.indexOf(".") == -1){
        alert("'.' ´©¶ôµÇ¾ú½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.indexOf(".") - val.indexOf("@") == 1){
        alert("'@' ´ÙÀ½¿¡ ¹Ù·Î '.'ÀÌ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.charAt(val.length-1) == '.'){
        alert("'.'Àº EMAILÁÖ¼Ò ³¡¿¡ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
      if(val.charAt(val.length-1) == '@'){
        alert("'@'Àº EMAILÁÖ¼Ò ³¡¿¡ ¿Ã ¼ö ¾ø½À´Ï´Ù.");
        obj.focus();
        return false;
      }
    }

    return true;
  }

  //¿µ¹®+¼ýÀÚ Ã¼Å©
  function isAlphanumeric(s){
    var i;
    if (isEmpty(s))
      if (isAlphanumeric.arguments.length == 1) return defaultEmptyOK;
      else return (isAlphanumeric.arguments[1] == true);

    for (i = 0; i < s.length; i++) {
      var c = s.charAt(i);

    if (!(isLetter(c) || isDigit(c)))
      return false;
    }
    return true;
  }

  function isDigit(c){
    return ((c >= "0") && (c <= "9"))
  }
  function isEmpty(s){
    return ((s == null) || (s.length == 0))
  }
  function isLetter(c){
    return ( ((c >= "a") && (c <= "z")) || ((c >= "A") && (c <= "Z")) || c=="_")
  }

  // SET_VALUE
  function set_value(object, value){
    if(object!='[object]'||object=='undefined') return
    if(object.type=='hidden' || object.type=='text' || object.type=='password' || object.type=='textarea'){
      object.value=value
    }else if(object.type=='checkbox'){
      if(object.value.toUpperCase()==value.toUpperCase()) object.checked = true
    }else if(!isNaN(object.length)){
      for(i=0; i<object.length; i++){
        if(object(i).value.toUpperCase()==value.toUpperCase()){
          if(object.type=='select-one') object.value=value
          if(object(0).type=='radio') object(i).checked = true
        }
      }
    }
  }

  // Ã¼Å©¹Ú½º ¹è¿­·ÎÃ¼Å©
  function set_checkarr(object, value){
    if(object!='[object]'||object=='undefined') return;

    var vcnt = value.indexOf(",");

    if(vcnt < 1){
      set_checkbox(object, value);
    }else{
      var szvalue = value.split(",");

      for(var i = 0; i < szvalue.length; i++){
        set_checkbox(object, szvalue[i]);
      }
    }
  }

  // Ã¼Å©¹Ú½ºÃ¼Å©
  function set_checkbox(object, value){
    if(object!='[object]'||object=='undefined') return;

    if(object.length > 1){
      for(var i = 0; i < object.length; i++){
        if(object[i].value.toUpperCase() == value.toUpperCase()) object[i].checked = true;
      }
    }else{
      if(object.value.toUpperCase() == value.toUpperCase()) object.checked = true;
    }
  }

  // ÄÞ¸¶ ³ª´©´Â ºÎºÐ
  function commaSplit(srcNumber){
    var txtNumber = '' + srcNumber;
    var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
    var arrNumber = txtNumber.split('.');
    arrNumber[0] += '.';

    do{
      arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
    }
    while(rxSplit.test(arrNumber[0]));

    if(arrNumber.length > 1){
      return arrNumber.join('');
    }else{
      return arrNumber[0].split('.')[0];
    }
  }

  function f_comma(str_number) {
    var t_align = "right"; // ÅØ½ºÆ® ÇÊµå Á¤·Ä
    var t_num = str_number.value.substring(0,1); // Ã¹±ÛÀÚ È®ÀÎ º¯¼ö
    var num = /^[/,/,0,1,2,3,4,5,6,7,8,9,/]/; // ¼ýÀÚ¿Í , ¸¸ °¡´É
    var cnjValue = "";
    var cnjValue2 = "";
    if(!num.test(str_number.value)) {
      alert('¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
      str_number.value="";
      str_number.focus();
      return false;
    }

    if ((t_num < "0" || "9" < t_num)){
      alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.");
      str_number.value="";
      str_number.focus();
      return false;
    }

    for(i=0; i<str_number.value.length; i++) {
      if(str_number.value.charAt(str_number.value.length - i -1) != ",") {
        cnjValue2 = str_number.value.charAt(str_number.value.length - i -1) + cnjValue2;
      }
    }

    for(i=0; i<cnjValue2.length; i++) {
      if(i > 0 && (i%3)==0) {
        cnjValue = cnjValue2.charAt(cnjValue2.length - i -1) + "," + cnjValue;
      } else {
        cnjValue = cnjValue2.charAt(cnjValue2.length - i -1) + cnjValue;
      }
    }

    str_number.value = cnjValue;
    str_number.style.textAlign = t_align;
  }

  //ÁÖ¹Î¹øÈ£Ã¼Å©
  function chkRegNo(RegNo1,RegNo2){
    var chk =0;
    var yy = RegNo1.value.substring(0,2);
    var mm = RegNo1.value.substring(2,4);
    var dd = RegNo2.value.substring(4,6);
    var sex = RegNo2.value.substring(0,1);

    if ((RegNo1.value.length!=6)||(mm <1||mm>12||dd<1)){
      RegNo1.value = ""
      alert ('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕÀÚ¸®°¡ Àß¸øµÇ¾ú½À´Ï´Ù.');
      RegNo1.focus();
      return false;
    }

    if ((sex != 1 && sex !=2 )||(RegNo2.value.length != 7 )){
      RegNo2.value = ""
      alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®°¡ Àß¸øµÇ¾ú½À´Ï´Ù.');
      RegNo2.focus();
      return false;
    }

    for(var i = 0; i <=5 ; i++){
      chk = chk + ((i%8+2) * parseInt(RegNo1.value.substring(i,i+1)))
    }

    for(var i = 6; i <=11 ; i++){
      chk = chk + ((i%8+2) * parseInt(RegNo2.value.substring(i-6,i-5)))
    }

    chk = 11 - (chk %11)
    chk = chk % 10
    if (chk != RegNo2.value.substring(6,7)){
      RegNo1.value = ""
      RegNo2.value = ""
      alert ('Çü½Ä¿¡ ¸ÂÁö ¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.');
      RegNo1.focus();
      return false;
    }
    return true;
  }

  //·Ñ¿À¹öÀÌ¹ÌÁö
  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_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_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 showmenu(menuname,status){
    var layer_name = eval("document.all."+menuname);
    layer_name.style.pixel = Math.ceil(document.body);

    if (status == 'show') { layer_name.style.visibility='visible'; }
    else if (status == 'show2') { layer_name.style.visibility='visible'; }
    else { layer_name.style.visibility='hidden'; }
  }

  //ÇÃ·¹½¬µî ¶óÀÎ¾ø¾Ö±â
  function ObjectEmbed(str){
    document.write(str);
  }

  function flash(url,w,h,bg,wmode,vars){
    var s=
    "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' align='middle'>"+
    "<param name='movie' value='"+url+"' />"+
    "<param name='wmode' value='"+wmode+"' />"+
    "<param name='quality' value='high' />"+
    "<param name='flashvars' value='"+vars+"' />"+
    "<param name='bgcolor' value='"+bg+"' />"+
    "<embed src='"+url+"' quality='high' wmode='"+wmode+"' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
    "</object>";
    document.write(s);
  }

  //Äü¸Þ´º ÀÌµ¿
  function scrollLayer(p_obj_name, p_gap_point){
    var start_point, end_point, timer;
    var obj_layer  = document.getElementById(p_obj_name);  // ·¹ÀÌ¾î ¿ÀºêÁ§Æ®
    start_point = parseInt(obj_layer.style.top, 10);
    if(start_point < p_gap_point) start_point = p_gap_point;
    end_point = document.body.scrollTop + p_gap_point;
    limit_point = parseInt(window.document.body.scrollHeight) - parseInt(obj_layer.offsetHeight) -10;
    if(end_point > limit_point) end_point = limit_point;

    if(start_point != end_point){
      scroll_amount = Math.ceil(Math.abs(end_point - start_point) / 15);
      obj_layer.style.top = parseInt(start_point, 10) + ((end_point < start_point) ? -scroll_amount : scroll_amount);
    }

    timer = window.setTimeout("scrollLayer('" + p_obj_name + "', " + p_gap_point + ");", 1);
  }

//-->


