  //ÄíÅ°°ª °¡Á®¿À±â
  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;
    }
    return ""; 
  }

  // ÄíÅ°°ª ¼³Á¤
  function setCookie(name, value, expiredays) {
    var today = new Date();
    today.setDate( today.getDate() + expiredays );
    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + today.toGMTString() + ";" 
  }

  //ÀÌ¸ÞÀÏ Çü½Ä ¼³Á¤
  function l_checkEMAIL(obj) {
     /* checkFormat */
	 var str = obj.value;
     var isEmail = /[-!#$%&'*+\/^_~{}|0-9a-zA-Z]+(\.[-!#$%&'*+\/^_~{}|0-9a-zA-Z]+)*@[-!#$%&'*+\/^_~{}|0-9a-zA-Z]+(\.[-!#$%&'*+\/^_~{}|0-9a-zA-Z]+)*/;
     if( !isEmail.test(str) ) { 
    	 alert("ÀÌ¸ÞÀÏ Çü½ÄÀÌ Àß¸ø µÇ¾ú½À´Ï´Ù. ");
    	 return false;
     }
     return true;
  }
  
  // ÀÔ·ÂÇÊµå°ª¿¡ ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkNumber(obj) {
    var str = obj.value;
    var number="0123456789";

    for (ii=0; ii<str.length; ii++) {
      if (number.indexOf(str.substring(ii, ii+1)) < 0) {
        alert("¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ");
        obj.value = "";
        obj.focus();
        return false;
      }
    }
    return true;
  }
  
// ¹Ýµå½Ã ÀÔ·ÂÇØ¾ßÇÏ´Â ÇÊµå°ªÀ» Ã¼Å©ÇÏ´Â ÇÔ¼ö(°ø¹é¹®ÀÚ ºñÇã¿ë)
  function l_checkMust(obj, title, num) {
    var str = obj.value;

    if (str.indexOf(" ") >= 0) {
      alert("°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (str.indexOf("¡¡") >= 0) {
      alert("Æ¯¼ö°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (str.length <= 0) {
      alert(title+" ÀÔ·ÂÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
    }
    else if (str.length < num) {
      alert(title+" "+num+"ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
    }
    return true;
  }

  // ¹Ýµå½Ã ÀÔ·ÂÇØ¾ßÇÏ´Â ÇÊµå°ªÀ» Ã¼Å©ÇÏ´Â ÇÔ¼ö(°ø¹é¹®ÀÚ Çã¿ë)
  function l_checkMustAllowSpace(obj, title, num) {
    var str = obj.value;

    if (num == 0) num = 1;
    
    if (str.indexOf(" ") == 0) {
      alert("Ã¹¹®ÀÚ´Â °ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    
    if (str.indexOf("¡¡") == 0) {
      alert("Ã¹¹®ÀÚ·Î Æ¯¼ö°ø¹é¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    
    if (str.length <= 0) {
      alert(title+" ÀÔ·ÂÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
      
    } else if (obj.type=="text" && str.indexOf("\"")>=0) {
      alert(title.slice(0, -1)+"¿¡´Â [ \" ]¸¦ ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
      
    } else if (str.length < num) {
      alert(title+" "+num+"ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
    }
    return true;
  }

  // ÀÔ·ÂÇÊµå°ª¿¡ ¹®ÀÚ ¿Í ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkAlphaNumber(obj) {
    var str = obj.value;
    var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
    var numeric = '1234567890';
    var nonkorean = alpha+numeric;
    for (i=0; i<str.length; i++) {
      if (nonkorean.indexOf(str.substring(i, i+1)) < 0) {
        alert("¿µ¹®/¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ");
        obj.focus();
        return false;
      }
    }
    return true;
  }
  
  // ÀÔ·ÂÇÊµå°ª¿¡ ¼Ò¹®ÀÚ¿Í ¼ýÀÚ¿ÜÀÇ °ªÀÌ Æ÷ÇÔµÇ¾îÀÖ´ÂÁö¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkSmallAlphaNumber(obj) {
    var str = obj.value;
    var alpha = 'abcdefghijklmnopqrstuvwxyz';
    var numeric = '1234567890';
    var nonkorean = alpha+numeric;
    for (i=0; i<str.length; i++) {
      if (nonkorean.indexOf(str.substring(i, i+1)) < 0) {
        alert("¿µ¹® ¼Ò¹®ÀÚ/¼ýÀÚ¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ");
        obj.focus();
        return false;
      }
    }
    return true;
  }
  
  //Æ¯¼ö¹®ÀÚ ÀÔ·Â ±ÝÁö
  function l_checkSpecialChar(obj) {
    var str = obj.value;

    var special = '!@#$%^&*<>?/';
    var special2 = '¡×¡Ù¡Ú¡Û¡Ü¡Ý¡Þ¡ß¡à¡á¡â¡ã¢·¢¸¢¹¢º¢»¢¼¢½¢¾¢¿¢À¢Á¢Â¢Ã¢Ä¢Å¢Ç¢Æ¢È¢É¢Ê¢Ë¢Ì¢Í¢Î¢Ï¢Ð¢Ñ¢Ò¢Ó¢Ô¢Õ¢Ö¢×¢Ø¢Û¢Ü¢Ý¢Þ¢ß¢à¢á¢â¢ã¢ä¢å?¡¡';
    for (i=0; i<special.length; i++) {
      if (str.indexOf(special.substring(i, i+1)) >= 0) {
        alert("Æ¯¼ö¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ");
        obj.focus();
        return false;
      }
    }
    for (i=0; i<special2.length; i++) {
      if (str.indexOf(special2.substring(i, i+1)) >= 0) {
        alert("Æ¯¼ö¹®ÀÚ´Â »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù. ");
        obj.focus();
        return false;
      }
    }
    return true;
  }

  // ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸¥Áö ¿©ºÎ¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkJuminID(obj1, obj2) {
    var manid1 = obj1.value;
    var manid2 = obj2.value;

    var jumin = manid1 + manid2;
    var weight = '234567892345';
    var sum = 0;
    var isvalid = true;

    for (i=0; i<12; i++)
      sum = sum + (eval(jumin.substr(i,1)) * eval(weight.substr(i,1)));
    remain = sum % 11;
    result = 11- remain;
    if(result == 10)
      result = 0;
    else if (result == 11)
      result = 1;
    if (result != eval(jumin.substr(12,1)))
      isvalid = false;

    if (!isvalid) {
      alert("ÁÖ¹Îµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù. ");
      obj1.focus();
      return false;
    }
    return true;
  }

  // ÀÔ·ÂÇÑ E-mailÀÌ ¿Ã¹Ù¸¥Áö ¿©ºÎ¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkEmail(obj) {
    var email = obj.value;

    var email_1 = "";
    var email_2 = "";
    var check_point = 0;

    if (email.indexOf("@") < 0) {
      alert("E-mail¿¡ @ °¡ ºüÁ®ÀÖ½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email.indexOf(".") < 0) {
      alert("E-mail¿¡ . °¡ ºüÁ®ÀÖ½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email.indexOf("|") >= 0) {
      alert("E-mail¿¡ | ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù");
      obj.focus();
      return false;
    }
    if (email.indexOf(">") >= 0) {
      alert("E-mail¿¡ > ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email.indexOf("<") >= 0) {
      alert("E-mail¿¡ < ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email.indexOf(" ") >= 0) {
      alert("E-mail¿¡ °ø¹é¹®ÀÚ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email.indexOf("¡¡") >= 0) {
      alert("E-mail¿¡ Æ¯¼ö°ø¹é¹®ÀÚ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }

    // emailÀº email_1@email_2·Î ³ª´©´Â ºÎºÐ
    for (var j=0; j < email.length; j++) {
      if (email.substring(j, j+1)!="@" && check_point==0)
        email_1 = email_1 + email.substring(j, j + 1);
      else if (email.substring(j, j+1) == "@")
        check_point = check_point + 1;
      else
        email_2 = email_2 + email.substring(j, j+1);
    }
    if (email_1.length < 3) {
      alert("E-mail¿¡ @ ¾ÕÀÚ¸®´Â 3ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
    }
    if (email_2.length < 2) {
      alert("E-mail¿¡ @ µÞÀÚ¸®´Â 2ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
    }
    if (check_point > 1) {
      alert("E-mail¿¡ @ ´Â 1¹øÀÌ»ó µé¾î°¥ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("(") >= 0) {
      alert("E-mail¿¡ ( ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("(") >= 0) {
      alert("E-mail¿¡ ( ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(")") >= 0) {
      alert("E-mail¿¡ ) ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(",") >= 0) {
      alert("E-mail¿¡ , ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(";") >= 0) {
      alert("E-mail¿¡ ; ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(":") >= 0) {
      alert("E-mail¿¡ : ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("/") >= 0) {
      alert("E-mail¿¡ / ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("[") >= 0) {
      alert("E-mail¿¡ [ ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("]") >= 0) {
      alert("E-mail¿¡ ] ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("{") >= 0) {
      alert("E-mail¿¡ { ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("}") >= 0) {
      alert("E-mail¿¡ } ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf(" ") >= 0) {
      alert("E-mail¿¡ °ø¹é¹®ÀÚ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    if (email_2.indexOf("¡¡") >= 0) {
      alert("E-mail¿¡ Æ¯¼ö°ø¹é¹®ÀÚ´Â Æ÷ÇÔÇÒ ¼ö ¾ø½À´Ï´Ù. ");
      obj.focus();
      return false;
    }
    return true;
  }

  // ÀÛÀº µû¿ÈÇ¥ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_checkQuotation(obj, title) {
    for(i=0; i<obj.value.length; i++) {
      if (escape(obj.value.charAt(i))=="%27") {
        alert(title+"[ ' ]¸¦ ¾µ¼ö ¾ø½À´Ï´Ù. ");
        obj.focus();
        return false;
      }
    }
    return true;
  }

  // ÀÌ¹ÌÁö »çÀÌÁî Á¶Àý °¡·Î, ¼¼·Î
  function l_imageResize(name, max_width, max_height) {
    name.onLoad = l_imageResize2(name, max_width, max_height);
  }

  // ÆË¾÷
  function l_commonPopup(link, pagename, width, height, isscroll, isresizable, iscenter) {
    var wd = width;
    var ht = height;
    var sx = 0; // default
    var sy = 0;

    if (iscenter=='yes') {
      sx = (screen.width/2) - (wd/2);
      sy = (screen.height/2) - (ht/2);
    }

    popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", left="+sx+", top="+sy+", scrollbars="+isscroll+", resizable="+isresizable);
    popup_box.focus();
    return popup_box;

  }

  function l_commonPopup2(link, pagename, width, height, left, top, isscroll, isresizable) {
    var wd = width;
    var ht = height

    var sx = 0; // default
    var sy = 0;

    popup_box = window.open(link, pagename, "width="+wd+", height="+ht+", left="+left+", top="+top+", scrollbars="+isscroll+", resizable="+isresizable);
    popup_box.focus();
    return popup_box;

  }

  //¼¿·ºÆ® ¹Ú½º ¼±ÅÃÇÑ °ª ¹ÝÈ¯ (oumgun)
  // Çü½Ä if (l_checkedSelect(f.type) == " ") {}
  function l_checkedSelect(obj) {
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx < obj.length; inx++) {
        if (obj[inx].selected)
          return obj[inx].value;
      }
    } else if (obj!=null && obj.length == 1) {
      return obj.value;
    } else if (obj!=null) {
      if (obj.selected)
        return obj.value;
    }
    return "";
  }

  // ¼¿·ºÆ® ¹Ú½º ±âº»°ª ¼ÂÆÃÇÏ±â
  // Çü½Ä (l_setDefaultSelect(f.type, val) {}
  function l_setDefaultSelect(obj, val) {
    for (i=0; obj!=null && i<obj.length; i++)
      if (obj.options[i].value==val) {
        obj.options[i].selected = true;
        break;
      }
  }

  // ¹Ýµå½Ã ¼±ÅÃÇØ¾ßÇÏ´Â ¼¿·ºÆ® ¹Ú½º¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
  function l_selectCheckMust(obj, title) {
    var str = obj.value;

    if (str==null || str=='') {
      alert(title+" ¼±ÅÃÇÏ¼¼¿ä. ");
      obj.focus();
      return false;
    }
    return true;
  }

  // Ã¼Å©¹Ú½º, ¶óµð¿À ±âº»°ª ¼ÂÆÃÇÏ±â
  // Çü½Ä (l_setDefaultRadio(f.type, val) {}
  function l_setDefaultRadio(obj, val) {
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx<obj.length; inx++) {
        if (obj[inx].value==val)
          obj[inx].checked = true;
      }
    } else if (obj!=null) {
      if (obj.value==val)
        obj.checked = true;
    }
  }

  // Ã¼Å©¹Ú½º, ¶óµð¿À ¼±ÅÃÇÑ °ª ¹ÝÈ¯ 
  // Çü½Ä if (l_checkedRadio(f.type) == " ") {}
  function l_checkedRadio(obj) {
    if (obj!=null && obj.length > 1) {
      for (var inx = 0; inx < obj.length; inx++) {
        if (obj[inx].checked)
          return obj[inx].value;
      }
    } else if (obj!=null) {
      if (obj.checked)
        return obj.value;
    }
    return " ";
  }

  // Ã¼Å©¹Ú½º, ¶óµð¿À ¹öÆ° ¼±ÅÃÀ¯¹« °Ë»çÇÏ±â
  // Çü½Ä if (!l_checkMustButton(f.type, "Å¸ÀÔÀ»")) return false;
  function l_checkMustButton(obj, title) {
    if (obj==null) {
      alert(title+" ¼±ÅÃÇÏ¼¼¿ä. ");
      return false;
      
    } else if (l_checkedRadio(obj) == " ") {
      alert(title+" ¼±ÅÃÇÏ¼¼¿ä. ");
      if (obj.length > 1) {
        if (!obj[0].disabled) obj[0].focus();
        
      } else if (!obj.disabled)
        obj.focus();
      return false;
    }
    return true;
  }

  function l_checkMustButton2(obj) {
    if (obj==null) {
      return false;
      
    } else if (l_checkedRadio(obj) == " ") {
      return false;
    }
    return true;
  }

  // ÀÌ¸§ÀÌ °°Àº Ã¼Å©¹Ú½º ¸ðµÎ ¹ÝÀü
  function l_checkAll(obj) {
    if (obj.length != null) {
      for (i=0; i<obj.length; i++) {
        obj[i].checked = !obj[i].checked
      }
    } else {
      if (obj != null)
        obj.checked = !obj.checked
    }
  }

  // ÀÌ¸§À¸·Î ½ÃÀÛÇÏ´Â Ã¼Å©¹Ú½º ¸ðµÎ ¹ÝÀü
  function l_checkAll2(form, name, isCheck) {
    var len = form.elements.length;
    for (i=0; i<len; i++) {
      if ((form.elements[i].name).substring(0,name.length) == name) {
        if (isCheck=="T") form.elements[i].checked = true;
        else form.elements[i].checked = false;
      }
    }
  }

  // ÀÌ¸§ÀÌ °°Àº Ã¼Å©¹Ú½º ¸ðµÎ ¼±ÅÃ/Ãë¼Ò, isCheck : T/F
  function l_selectAll(obj,isCheck) {
    for (i=0; obj!=null && i<obj.length; i++) {
      if (isCheck=="T") obj[i].checked = true;
      else obj[i].checked = false;
    }
  }
  
  // obj1 : ÀüÃ¼¼±ÅÃ checkbox, obj2 : ¼±ÅÃµÇ¾îÁö´Â checkbox
  function l_selectAll2(obj1, obj2) {
    var f = document.sendForm;
    if(obj1.checked) {
      l_selectAll(obj2, "T");
    } else {
      l_selectAll(obj2, "F");
    }
  }
  
  // ÇöÀç³¯Â¥ ¹ÝÈ¯ YYYY-MM-DD
  function l_getDate(term) {
    var today = new Date();
    if (term != null) {
      var termtime = today.getTime() + (term*24*60*60*1000);
      today.setTime(termtime);
    }
    return (today.getYear()+'-'+l_cipherNum((today.getMonth()+1), 2)+'-'+l_cipherNum(today.getDate(), 2));
  }
  
  // ÇöÀç ½Ã°£ ¹ÝÈ¯ hh:mm:ss
  function l_getTime() {
    var today = new Date();
    return (l_cipherNum(today.getHours(), 2)+':'+l_cipherNum(today.getMinutes(), 2)+':'+l_cipherNum(today.getSeconds(), 2));
  }

  function getObjLeft(obj) {
	var nid=obj;
	var s=0;
	while(nid.offsetParent) {
		s +=nid.offsetLeft;
		nid=nid.offsetParent;
	}
	return s;
  }

  function getObjTop(obj) {
	var nid=obj;
	var s=0;
	while(nid.offsetParent) {
		s +=nid.offsetTop;
		nid=nid.offsetParent;
	}
	return s;
  }

  function getObjBottom(obj) {
	var nid=obj;
	var s=0;
	while(nid.offsetParent) {
		s +=nid.offsetTop;
		nid=nid.offsetParent;
	}
	s = s + obj.offsetHeight;
	return s;
  }
	
  function l_layerPopupFix(popupid, position) {
	var popup = document.getElementById(popupid);
	popup.style.pixelLeft = getObjLeft(position);
	popup.style.pixelTop = getObjBottom(position)-2;
	new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
	new Effect.Move(popup, {x: 0, y: 3, mode: 'relative', duration: 0.2});
	//new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }
  
  function l_layerPopupFixT(popupid, position, l_left, l_top) {
	var popup = document.getElementById(popupid);
	popup.style.pixelLeft = getObjLeft(position) - l_left;
	popup.style.pixelTop = getObjBottom(position) - l_top;
	new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
	new Effect.Move(popup, {x: 0, y: 3, mode: 'relative', duration: 0.2});
	//new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }  
  
  function l_layerPopupFixR(popupid, position) {
    var popup = document.getElementById(popupid);
    popup.style.pixelLeft = (getObjLeft(position) + position.offsetWidth) - popup.style.pixelWidth;
	popup.style.pixelTop = getObjBottom(position)-2;
	new Effect.Grow(popup, {direction: 'top-left', duration: 0.02});
	new Effect.Move(popup, {x: 0, y: 3, mode: 'relative', duration: 0.2});
	//new Effect.Opacity(popup, { duration: 0.2, from: 1.0, to: 0.9 });
  }
  
  function l_layerPopupClose(popupid) {
	var popup = document.getElementById(popupid);
	new Effect.DropOut(popup);
	//if(popup != null) popup.style.display = "none";
  } 
  
  // ÇÃ·¡½¬ ÆÄÀÏ È°¼ºÈ­ ¾øÀÌ º¸¿©ÁÖ´Â ÇÔ¼ö
  function viewFlash(flashname, width, height) {
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
    document.write("<param name='movie' value='"+flashname+"'>");
    document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='quality' value='high'>");
    document.write("<embed src='"+flashname+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");
  }
  
  // µ¿¿µ»ó ÆÄÀÏ È°¼ºÈ­ ¾øÀÌ º¸¿©ÁÖ´Â ÇÔ¼ö
  function viewMovie(moviename, width, height) {
    document.write("<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' width='"+width+"' height='"+height+"' standby='Loading Microsoft Windows Media Player components...'>");
    document.write("<param name='ShowCaptioning' VALUE='0'>");
    document.write("<param name='AutoStart' VALUE='1'>");
    document.write("<param name='AllowScriptAccess' VALUE='never'>");
    document.write("<param name='EnablePositionControls' value='0'>");
    document.write("<param name='AutoRewind' VALUE='0'>");
    document.write("<param name='Showcontrols' VALUE='0'>");
    document.write("<param name='CurrentPosition' VALUE='1'>");
    document.write("<param name='AutoRestart' VALUE='0'>");
    document.write("<param name='ShowDisplay' VALUE='0'>");
    document.write("<param name='EnableContextMenu' VALUE='0'>");
    document.write("<param name='ShowPositionControls' VALUE='0'>");
    document.write("<param name='ShowStatusBar' VALUE='0'>");
    document.write("<param name='ShowGotoBar' value='0'>");
    document.write("<param name='TransparentAtStart' VALUE='1'>");
    document.write("<param name='ShowTracker' value='0'>");
    document.write("<param name='SelectionEnd' VALUE='1'>");
    document.write("<param name='SendMouseClickEvents' value='1'>");    
	document.write("<param name='AutoSize' value='0'>"); 
	document.write("<param name='ClickToPlay' value='1'>");
	document.write("<param name='Enabled' value='1'>"); 
	document.write("<param name='ShowAudioControls' value='1'>"); 
	document.write("<param name='ShowStatusBar' value='0'>");
	document.write("<param name='VideoBorderWidth' value='0'>"); 
	document.write("<param name='Filename' value='mms://www.hanuricampus.com/"+moviename+"'>"); 
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='quality' value='high'>");
	document.write("</object>");
  }

  function movie_popup(filename, width, height) {
	movie = window.open("/utilities/movie_popup.han?filename="+filename+"&width="+width+"&height="+height,"","toolbar=no,resizable=no,scrollbars=no,width="+width+",height="+height);
	movie.focus();
  }
	
  function l_formatMoney(str) {
    var money = "";
    str = new String(str);
    var fgminus	= false;
    
    if(str.substring(0,1)=='-'){
    	fgminus	= true;
    	str	= str.substring(1,str.length);
    }
    
    var len = str.length;
    if (len <= 3)
      money = str;
    else if (len <= 6)
      money = str.substring(0,len-3)+","+str.substring(len-3,len);
    else if (len <= 9)
      money = str.substring(0,len-6)+","+str.substring(len-6,len-3)+","+str.substring(len-3,len);

	if(fgminus) money	='-'+money;
		
    return money;
    
  }  

  // <input name="isbn1" type="text" class="inputttext" size="2" maxlength="2" onKeyup="l_nextFocus(isbn1, isbn2, 2);"> 

  function l_nextFocus(obj, obj2, len) {
  	if (obj != null && obj2 != null) {
  		if (obj.value.length == len) obj2.focus();
  	}
  }

  function clrImg(obj) {
    obj.style.backgroundImage="";
    obj.onkeydown=obj.onmousedown=null;
  }
  
  function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		  document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  }
  MM_reloadPage(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_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.0
	  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 && document.getElementById) x=document.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 MM_showHideLayers() { //v3.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
      if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
      obj.visibility=v; }
  }
  
// ¿òÁ÷ÀÌ´Â top ¾ÆÀÌÄÜ
/*  
  var min = 500;      // ·¹ÀÌ¾î top ÃÊ±â °ª (·¹ÀÌ¾î top °ª°ú ÀÏÄ¡½ÃÅ´)
  var max = 0;
  var moving_speed = 10  // ¼Óµµ(³·À» ¼ö·Ï ºü¸§)
  var moving_amount = 10  // ¿òÁ÷ÀÓ (³·À» ¼ö·Ï ºÎµå·¯¿ò)
  var action_time = 500   // ¹ÝÀÀ½Ã°£ (1000 ÃÊ ÈÄ¿¡ ¹ÝÀÀ)
  function left_move_init() {
    itm = document.getElementById('quick_menu');
    itm.set_pos = function(y){itm.style.top=y;};
    itm.y = min;
    itm.set_pos(itm.y);
    max = document.body.scrollHeight - itm.scrollHeight - min;
    setTimeout('left_move_func()', moving_amount);
  }
  function left_move_func() {
    tmp = document.body.scrollTop + min;
    itm.y += Math.floor((tmp-itm.y)/moving_speed);
    if( itm.y>max ) itm.y = max;
    if( itm.y<min ) itm.y = min;
    itm.set_pos(itm.y);
    setTimeout('left_move_func()', moving_amount);
  }
  setTimeout('left_move_init()', action_time);
*/  
  
 
