    // ¶óµð¿À¹Ú½º Ã¼Å© °Ë»ç.
    function radiocheck(obj){
        var chk = 0;
        for (var i=0; i<obj.length; i++) {
            if(obj[i].checked) chk++;
        }if(chk != 1) {
            alert("ÅõÇ¥Ç×¸ñÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
            obj[0].focus();
            return false;
        }
        return true;
    }

    // location change
    function go_url(jumpurl) {
        location.href = jumpurl;
    }

    // change back ground color
    function change_bg(obj_name,bg_value) {
        obj_name.style.backgroundColor=bg_value;
    }

    // popup
    function popup(winname,wid,hei,popurl,popresize) {
        return window.open(popurl,winname,"width="+wid+",height="+hei+",resizable="+popresize+",scrollbars=auto,dependent=yes");
    }

    // popup
    function OpenWindow(url) {
        open(url,"noticewindow","menubar=no,toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=no,width=620,height=500");
    }

    // input tag¿¡ »ç¿ë onkeyup = autojump(this,6) 6ÀÚ¸®±îÁö ÀÔ·ÂÇÏ¸é ´Ù¸§ input tag·Î ÀÌµ¿ÇÑ´Ù.
    function autojump(obj, sizeofstr){
        var kk;
        kk = obj.value.length;
        if (kk==sizeofstr){
            var tt,j;
            tt = obj.form.length;
            j=tt;
            for (var i=0;i<tt;i++){
                if (obj.form.elements[i].name == obj.name) {
                    j=i+1;i=tt;
                    if (j==tt) {j--;}
                    obj.form.elements[j].focus();
                }
            }
        }
    }

    // ¼ýÀÚ¸¸
    function digit_confirm(a) {
        var allowchar="0123456789";
        for (i=0; b<a.length; b++) if (-1 == allowchar.indexOf(a.charAt(b))) return false;
        return true;
    }
    // ¾ËÆÄ“Ê ¼ýÀÚ¸¸
    function alphadigit_confirm(a) {
        var allowchar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
        for (b=0; b<a.length; b++) if (-1 == allowchar.indexOf(a.charAt(b))) return false;
        return true;
    }
    // ¿µ¹®ÀÌ³ª ÇÑ±Û¸¸ ½ºÆäÀÌ½º ±×¸®°í ¼ýÀÚ.
    function hanalpha_confirm(a) {
    with(Math) {
           for (b = 0; b < a.length; b++) {
                 c = a.charCodeAt(b);
                 if((c >= 48  && c <= 57) || (c >= 97 && c <= 122) || (c >= 65 && c <= 90) || (c == 32) || (c >= 0xAC00 && c <= 0xD7A3)) continue;
                 else return false;
             }
         }
         return true;
    }
    // ÀÌ¸ÞÀÏ ±ÔÄ¢
    function email_confirm(a) {
        var allowchar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@._-";
        b = 0;c = 0;d = 0; e=0;
        if (a.length == 0) return false;
        for (b=0; b<a.length; b++) {
                if ( -1 == allowchar.indexOf(a.charAt(b)) ) return false;
                else if ('@' == a.charAt(b)) {c++; d=b;}
                else if ('.' == a.charAt(b)) e++;
        }
        if (c!=1 || e==0 || d==0 || d==(a.length-1)) return false;
        return true;
    }
    // ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
    function social_confirm(a) {
        if( a.charAt(6) == 1 || a.charAt(6) == 2 || a.charAt(6) == 3 || a.charAt(6) == 4)
            if( a.charAt(12) == (( 11 - ((a.charAt(0)*2+a.charAt(1)*3+a.charAt(2)*4+a.charAt(3)*5+a.charAt(4)*6+a.charAt(5)*7+a.charAt(6)*8+a.charAt(7)*9+a.charAt(8)*2+a.charAt(9)*3+a.charAt(10)*4+a.charAt(11)*5)% 11)))%10) return true;
        return false;
    }

    // ÀÔ·Â¾øÀ½ Ã¼Å© & ¾È³»
    function empty_chk(obj,lable) {
        if( obj.value == '' ) {
            alert(lable + ' ÀÔ·ÂÇÏ½Ê½Ã¿À.');
       obj.focus();
       return true;
        }
        return false;
    }

    // ÃÖ¼Ò±æÀÌ & ¾È³»
    function len_chk(obj,lable, num) {
        if( obj.value.length < num) {
            alert(lable + ' ' + num + ' ±ÛÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¿©¾ß ÇÕ´Ï´Ù.');
            obj.focus();
            return false;
        }
        return true;
    }
    // ¼ýÀÚ¸¸ & ¾È³»
    function num_chk(obj,lable) {
        if (digit_confirm(obj.value)) return true;
        else {
            alert(lable + ' ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
            obj.focus();
            return false;
        }
    }
    // ¾ËÆÄ“Ê ¼ýÀÚ¸¸ & ¾È³»
    function alphadigit_chk(obj,lable) {
        if (alphadigit_confirm(obj.value)) return true;
        alert(lable + ' ¿µ¹®°ú ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
        obj.focus();
        return false;
    }
    // ÇÑ±Û ¿µ¹®¸¸ & ¾È³»
    function hanalpha_chk(obj,lable) {
        if (hanalpha_confirm(obj.value)) return true;
        alert(lable + ' ÇÑ±Û°ú ¿µ¹® ±×¸®°í ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ê½Ã¿À.');
        obj.focus();
        return false;
    }
    // ÁÖ¹Îµî·Ï ¹øÈ£ & ¾È³»
    function soc_chk(obj1,obj2) {
        if (obj1.value.length!=6 || !digit_confirm(obj1.value)) {
            alert("ÁÖ¹Îµî·Ï¹øÈ£´Â '6ÀÚ¸®¼ýÀÚ'-'7ÀÚ¸®¼ýÀÚ' ÀÔ´Ï´Ù.");
            obj1.focus();
            return false;
        }else if(obj2.value.length!=7 || !digit_confirm(obj2.value)) {
            alert("ÁÖ¹Îµî·Ï¹øÈ£´Â '6ÀÚ¸®¼ýÀÚ'-'7ÀÚ¸®¼ýÀÚ' ÀÔ´Ï´Ù.");
            obj2.focus();
            return false;
        }else if(!social_confirm(obj1.value + obj2.value)) {
            alert("ÁÖ¹Îµî·Ï¹øÈ£¿¡ ¿À·ù°¡ ÀÖ½À´Ï´Ù. ´Ù½Ã È®ÀÎÇÏ¿© ÁÖ½Ê½Ã¿À.");
            obj1.focus();
            return false;
        }
        return true;
    }
    function trim(objV) {
        return objV.replace(/(^\s*)|(\s*$)/g, "");
    }
    function clearspace(objV) {
        return objV.replace(/(\s)/g, "");
    }
    function getvalue(objURL){
        if (objURL=='') objURL="../library/inputbox.php";
        var tmp = window.showModalDialog(objURL,'objURLS','dialogHeight:100px;dialogWidth:300px;status:no;scroll:no');
        if (tmp==undefined) return '';
        else return tmp;
    }
    function hm_size(val){
        var valx=0;
        var valy;
        with(Math){
            valx = round(val);
            if (valx < 1024) {valy = valx + ' B';
            }else if (1024*1024>valx) {valy = round(valx/1024) + ' KB';
            }else if (1024*1024*1024>valx) {valy = round(valx/1024/1024) + ' MB';
            }else {valy = round(valx/1024/1024/1024) + ' GB';
            }
        }
        return valy;
    }
    function optionselect(obj,val){
        var n = obj.length;
        var i = 0;
        while(n>i){
            if (obj.options[i].value==val) {
                obj.selectedIndex = i;
                return true;
            }
            i++;
        }
    }
    function tipmsg_hide(n){
        var tipmsg = eval("tipmsg_" + n);
        tipmsg.style.visibility = "hidden";
        return true;
    }
    function tipmsg_view(n){
        var tipmsg = eval("tipmsg_" + n);

        if (event.y > (document.body.offsetHeight/2)){
            tipmsg.style.top = event.y + document.body.scrollTop - (tipmsg.offsetHeight/4*3);
        }else{
            tipmsg.style.top = event.y + document.body.scrollTop - (tipmsg.offsetHeight/4);
        }
        if (event.x >(document.body.offsetWidth/2)){
            tipmsg.style.left = event.x + document.body.scrollLeft - tipmsg.offsetWidth;
        }else{
            tipmsg.style.left = event.x + document.body.scrollLeft ;
        }
        tipmsg.style.visibility = "visible"
        return true;
    }
    function tipmsg_on(n){
        var tipmsg = eval("tipmsg_" + n);
        tipmsg.style.visibility = "visible";
        return true;
    }
    function abspos(){
        this.x = event.screenX - window.screenLeft - document.body.leftMargin + document.body.scrollLeft  - event.offsetX;
        this.y = event.screenY - window.screenTop - document.body.topMargin + document.body.scrollTop  - event.offsetY;
        return this;
    }
