var m_sLocalUrl = "";
/*
function navi() {*/
/*¸ÞÀÎ_»ó´Ü³×ºñ*/
/*

    drawFlash("GNB", "/frame/flash/navi/navi.swf", 927, 84, 1, "#ffffff");


    var result = "";
    var strHref = top.body.main_url.top02.location.href;

    if (strHref.indexOf("?") > -1) {
        var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
        var aQueryString = strQueryString.split("&");
        for (var param = 0; param < aQueryString.length; param++) {
            if (
                aQueryString[param].indexOf("menu12=") > -1) {
                var aParam = aQueryString[param].split("=");
                result = aParam[1];
                break;
            }
        }
    } else {
        result = strHref.substr(strHref.indexOf("index")).toLowerCase();
    }

    getMovieName("GNB").setFlashMenu(result);
}
*/

/* ÇÃ·¡½¬¿¡ ¸Þ´ºÀÇ À§Ä¡¸¦ ³ªÅ¸³»±â À§ÇØ¼­ »ç¿ë*/
//var gMenuPos


function getMenuPos(){
    var result = "";
        var strHref = top.body.main_url.top02.location.href;

        if (strHref.indexOf("?") > -1) {
            var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
            var aQueryString = strQueryString.split("&");
            for (var param = 0; param < aQueryString.length; param++) {
                if (
                    aQueryString[param].indexOf("menu12=") > -1) {
                    var aParam = aQueryString[param].split("=");
                    result = aParam[1];
                    break;
                }
            }
        } else {
            result = strHref.substr(strHref.indexOf("index")).toLowerCase();
            if (result =='index_main_sub01.html'){
                result ='0100' ;
            } else if (result =='index_main_sub02.html'){
                result ='0200' ;
            } else if (result =='index_main_sub03.html'){
                result ='0300' ;
            } else if (result =='index_main_sub04.jsp'){
                result ='0400' ;
            } else {
                result = '' ;
            }
        }
    return result ;
}


function navi(sub) {/*¸ÞÀÎ_»ó´Ü³×ºñ*/
    if (sub =='sub') {
        drawFlash("GNB", "/frame/flash/navi/navi_sub.swf", 927, 207, 1, "#ffffff");
    } else {
        drawFlash("GNB", "/frame/flash/navi/navi.swf", 927, 84, 1, "#ffffff");
    }
}

function getMovieName(movieName) {

    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    } else {

        return document[movieName]
    }

}


/********************************************************************************************************
 ÇÃ·¡½Ã¹«ºñ »ðÀÔ Á¤ÀÇ
 * @info                :    ActivX °ü·Ã IE ¼öÁ¤
 * @param wmode    :    wmode value(null,0 - ¸ðµå¼±ÅÃ ¾ÈÇÔ, 1 - ¸ðµå¼±ÅÃ)
 * @param bgClr    :    background color(null - ¼³Á¤¾ÈÇÔ, value - °ª¼³Á¤)
 * @param lstate    :    loop value(null,0 - °ª¼±ÅÃ ¾ÈÇÔ, 2 - loop false)
 ********************************************************************************************************/
function drawFlash(fID, fURL, w, h, wmode, bgClr, lstate) {
    var tmpStr = "";
    tmpStr += "<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 + "' id='" + fID + "' align='middle'>";
    tmpStr += "<param name='allowScriptAccess' value='always' />";
    tmpStr += "<param name='movie' value='" + fURL + "' />";
    tmpStr += "<param name='quality' value='high' />";
    tmpStr += "<param name='menu' value='false' />";

    if (lstate == 2) tmpStr += "<param name='loop' value='false' />";

    if (wmode == 1) tmpStr += "<param name='wmode' value='transparent' />";
    if (wmode == 2) tmpStr += "<param name='wmode' value='opaque' />";
    if (bgClr != null && bgClr != "undefined") tmpStr += "<param name='bgcolor' value='" + bgClr + "' />";

    tmpStr += "<embed src='" + fURL + "' quality='high' ";
    if (lstate == 2) tmpStr += "loop='false' ";
    if (wmode == 1) tmpStr += "wmode='transparent' ";
    if (wmode == 2) tmpStr += "wmode='opaque' ";
    if (bgClr != null && bgClr != "undefined") tmpStr += "bgcolor='" + bgClr + "' ";

    tmpStr += "width='" + w + "' height='" + h + "' name='" + fID + "' menu='false' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'  />";
    tmpStr += "</object>";
//alert(tmpStr);
    document.write(tmpStr);
    //alert(tmpStr);
}

/********************************************************************************************************
 µ¿¿µ»óÆÄÀÏ »ðÀÔ Á¤ÀÇ
 ********************************************************************************************************/
function showVod(vID, vURL, ww, hh) {
    document.write("<embed src='" + vURL + "' width='" + ww + "' height='" + hh + "' name='" + vID + "' autostart='true'>");
    document.write("</embed>");
}


/********************************************************************************************************
 ·¹ÀÌ¾î show/hide Åä±Û±â´É
 ********************************************************************************************************/
function chgState(oID, oState) {
    if (isNull(oID)) return;
    var tObj = document.getElementById(oID);
    if (isNull(tObj)) return;
    if (isNull(oState)) {
        tObj.style.display = (tObj.style.display == "none") ? "" : "none";
    } else {
        tObj.style.display = oState;
    }
}

var currOID;
function chgView(oID) {
    if (currOID != oID && !isNull(currOID)) chgState(currOID, "none");
    chgState(oID, "");
    currOID = oID;
}

function isNull(cObj) {
    if (cObj == null || cObj == "undefined") return true;
    return false;
}


/********************************************************************************************************
    ¸®½ºÆ®³» Æ¯Á¤¼±ÅÃ¶óÀÎ Ç¥½Ã
********************************************************************************************************/
var curr_tr;
function sel_tr(tObj) {
    if (curr_tr == tObj) return;
    if (curr_tr != null && curr_tr != "undefined") {
        curr_tr.style.backgroundColor = "";
//        curr_tr.style.color = "#333333";
    }
    tObj.style.backgroundColor = "#e8f2d1";
//    tObj.style.color = "#000000";
    curr_tr = tObj;
}



/********************************************************************************************************
 Popup Á¤ÀÇ
 º¯¼ö Á¤ÀÇ : pop - ÆÄÀÏ¸í, width - °¡·Î»çÀÌÁî, height - ¼¼·Î»çÀÌÁî, flag - 0:½ºÅ©·Ñ¾øÀ½, 1:½ºÅ©·ÑÀÖÀ½
 ********************************************************************************************************/
function pop(pop, width, height, flag) {
    var url = pop;
    var wd = width;
    var he = height;
    var topposition = (screen.height) ? (screen.height - he) / 2 : 0;
    var leftposition = (screen.width) ? (screen.width - wd) / 2 : 0;

    if (flag == "0") {
        window.open(url, "", "toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd + ",height=" + he);
    }
    else {
        window.open(url, "", "toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd + ",height=" + he);
    }
}


/********************************************************************************************************
 ¸µÅ©½Ã ¶óÀÎ ¾ø¾Ö±â Á¤ÀÇ
 ********************************************************************************************************/
function allblur() {
    for (i = 0; i < document.links.length; i++)
        document.links[i].onfocus = document.links[i].blur;
}
//window.onload=allblur


/********************************************************************************************************
 ·¹ÀÌ¾î ¶ç¿ì±â
 ********************************************************************************************************/
// Å¬¸¯ À§Ä¡ ÂüÁ¶
document.onclick = function(){
    ex=event.x + document.body.scrollLeft + 10;
    ey=event.y + document.body.scrollTop + 10;
}

// Æ÷Ä¿½º À§Ä¡ ÂüÁ¶
document.onmouseover = function(){
    ex=event.x + document.body.scrollLeft + 10;
    ey=event.y + document.body.scrollTop + 10;
}

var bLayer = false;

// Layer Popup Å¬¸¯ À§Ä¡ ¸ÂÃß±â
//popLayer(layer_qmenu,5,5,'<%= sKeyNo %>','<%= URLEncoder.encode(sTitle) %>', '<%= sDvs %>', 1,1,0)
//popLayer(layer_qmenu,5,5,'<%= sKeyNo %>','<%= URLEncoder.encode(sTitle) %>', '<%= sDvs %>', 1,1,0);
function popLayer(obj, l, t, sKeyNo, sReqTitle, sDvs, arg1, arg2, arg3) {
    var html = "";
    if (arg1 == undefined){arg1 = 0};
    if (arg2 == undefined){arg2 = 0};
    if (arg3 == undefined){arg3 = 0};

    if( bLayer == false ){
        bLayer = true;
        html = "            <div class='cont'> \n";
        html += "                <table cellpadding='0' cellspacing='0' border='0' width='100%' class=''> \n";
        if(arg1 == 1){
        html += "                <tr> \n";
        html += "                    <td class='td01'><a href='#' onclick=\"pop('/common/pop/jsp/pop_report_foward.jsp?sKeyNo="+sKeyNo+"&sReqTitle="+sReqTitle+"',400,297,0);\">Àü´ÞÇÏ±â</a></td> \n";
        html += "                </tr> \n";
        }

        if(arg2 == 1){
        html += "                <tr> \n";
        html += "                    <td class='td01'><a href='#' onclick=\"onScrap('"+ sKeyNo +"', '"+ sReqTitle +"', "+ sDvs +");\">½ºÅ©·¦</a></td> \n";
        html += "                </tr> \n";
        }else if(arg2 == 9){
        html += "                <tr> \n";
        html += "                    <td class='td01'><a href='#' onclick='onLogin();'>½ºÅ©·¦</a></td> \n";
        html += "                </tr> \n";
        }
        if(arg3 == 1){
        html += "                <tr> \n";
        html += "                    <td class='td02'><a href='#'>ÀÛ¼ºÀÚÀÇ<br />´Ù¸¥±Û º¸±â</a></td> \n";
        html += "                </tr> \n";
        }
        html += "                </table> \n";
        html += "            </div> \n";
        obj.innerHTML = html;
        obj.style.display = "block";
        obj.style.left = ex - l;
        obj.style.top = ey - t;
    }else{
        bLayer = false;

        html = "\n";
        obj.innerHTML = html;

        obj.style.display = "none";
    }
    //alert(html);

}

/*****************************************
 /* ¿À´ÃÀÇ ³¯Â¥¸¦ ³â¿ùÇüÅÂ·Î °¡Áö°í ¿À´Â ¸Þ¼­µå
 ****************************************/
function getYYYYMM()
{
    var return_value = '';

    var today = new Date();
    var ty = today.getFullYear() + '';
    var tm = today.getMonth() + 1;

    if (tm < 10)
        tm = "0" + tm;

    return_value = ty + tm;

    return return_value;
}

/*****************************************
 /* ¿À´ÃÀÇ ³¯Â¥ °®°í ¿À´Â ¸Þ¼­µå
 ****************************************/
function getToday(str_format)
{
    var return_value = '';

    var today = new Date();
    var ty = today.getFullYear() + '';
    var tm = today.getMonth() + 1;
    var td = today.getDate();

    if (tm < 10)
        tm = "0" + tm;
    if (td < 10)
        td = "0" + td;

    return_value = ty + tm + td;

    if (typeof(str_format) != 'undefined' && str_format != '')
        return_value = dateFormatting(return_value, str_format);

    //alert(return_value);
    return return_value;
}

/*****************************************
 /* ¿À´ÃÀÇ ³¯Â¥ + 1 À»°®°í ¿À´Â ¸Þ¼­µå ÀÚµ¿ÀÌÃ¼¿¡¼­ »ç¿ë
 ********************************************/
function getTodayTranEnd(str_format)
{
    var return_value = '';

    var today = new Date();
    var ty = today.getFullYear() + '';
    var tm = today.getMonth() + 1;
    var td = today.getDate() + 1;

    if (tm < 10)
        tm = "0" + tm;
    if (td < 10)
        td = "0" + td;

    return_value = ty + tm + td;

    if (typeof(str_format) != 'undefined' && str_format != '')
        return_value = dateFormatting(return_value, str_format);

    return return_value;
}

/*****************************************
 /* ¿À´ÃÀÇ ³âµµ + 1 À»°®°í ¿À´Â ¸Þ¼­µå ÀÚµ¿ÀÌÃ¼¿¡¼­ »ç¿ë
 ****************************************/
function getTodayTranStart(str_format)
{
    var return_value = '';

    var today = new Date();
    var ty = today.getFullYear() + 1 + '';
    var tm = today.getMonth() + 1;
    var td = today.getDate()  ;

    if (tm < 10)
        tm = "0" + tm;
    if (td < 10)
        td = "0" + td;

    return_value = ty + tm + td;

    if (typeof(str_format) != 'undefined' && str_format != '')
        return_value = dateFormatting(return_value, str_format);

    return return_value;
}

/*****************************
 /* date¸¦ Æ÷¸ËÆÃ ÇØÁÜ
 *****************************/
function dateFormatting(str_date, str_format)
{
    if (str_date.length == 8) {
        str_format = str_format.replace('yyyy', str_date.substring(0, 4));
        str_format = str_format.replace('yy', str_date.substring(2, 4));
        str_format = str_format.replace('mm', str_date.substring(4, 6));
        str_format = str_format.replace('dd', str_date.substring(6, 8));
    }
    return str_format;
}


/*****************************
 /* trim
 *****************************/
function trim(str) {
    return str.replace(/(^ *)|( *$)/g, "");
}

String.prototype.trim = function() {
    return this.replace(/(^ *)|( *$)/g, "");
}

function isEmpty(a) {
    if (Trim(a) == '') return true;
    return false;
}

function Trim(a) {
    return(LTrim(RTrim(a)));
}

function LTrim(a) {
    var i ;
    i = 0;
    while (a.substring(i, i + 1) == ' ')  i = i + 1;
    return a.substring(i);
}

function RTrim(a) {
    var b ;
    var i = a.length - 1 ;
    while (i >= 0 && a.substring(i, i + 1) == ' ') i = i - 1;
    return a.substring(0, i + 1);
}



/**
 *    comma Á¦°Å
 */
function unFormatComma(str) {
    return str.replace(/[,]/g, "");
}

function unFormatSlash(str)
{
    return str.replace(/[\/]/g, "");
}

function unFormatDot(str) {
    return str.replace(/[.]/g, "");
}

function unFormatAccNo(str) {
    return str.replace(/[-]/g, "");
}

function addSlashSingleQuot(str) {
    return str.replace(/[']/g, "\'");
}

function addSlashDoubleQuot(str) {
    return str.replace(/["]/g, "\\\"");
}

/**
 *    comma »ðÀÔ-"
 */
function formatComma(num) {
    idx = num.length - 3;
    while (idx > 0) {
        num = num.substr(0, idx) + "," + num.substr(idx);
        idx -= 3;
    }
    return num;
}

function formatAccNo(str) {

    var index = 0;
    var formatStr = "";

    if (str.length > 3) {
        index = 3;
        formatStr = str.substr(0, 3) + "-";
    }

    if (str.length > 5) {
        index = 5;
        formatStr += str.substr(3, 2) + "-";
    }

    formatStr += str.substr(index);

    return formatStr;
}

function formatChdAccNo(str) {
    var index = 0;
    var formatStr = "";

    if (str.length > 3) {
        index = 3;
        formatStr = str.substr(0, 3) + "-";
    }

    formatStr += str.substr(index);

    return formatStr;
}

function openSearch(findKeyword, name){
    window.open('/web/trading/power/jsp/trpw_st_code_popup.jsp?gubun=0&findKeyword='+findKeyword, name,'width=280,height=420,scrollbars=no');
}


/*****************************************
 /* º¸¾ÈÄ«µå»ç¿ë¹æ¹ý ÆË¾÷
 ****************************************/
function pop_scard() {
    var Url = "/web/Common/pop/pop_securitycard.html";
    (Url, "secu", "no", "660", "647");
}

/*
 * Change Image Rollover, Rollout & Layer State
 * @info : ÀÌ¹ÌÁö¿Í ·¹ÀÌ¾îÀÇ °ªÀ» ¹Þ¾Æ¼­ »óÅÂ¸¦ º¯°æÇØÁÖ´Â ÇÔ¼ö
 * ÀÌ¹ÌÁö ¸íÀº ²À Á¦ÀÏ ¸¶Áö¸·ÀÌ o.gif(Rollover Image), x.gif(Rollout Image)À¸·Î ÁöÁ¤ÇÑ´Ù.
 */

function chgTab(tObj, dID, dState) {
    if (tObj == null) return;
    var tmpImg, tmpDiv, imgState, tmpState;
    tmpImg = tObj.getAttribute("src");
    if (tmpImg) tmpImg = tmpImg.substring(0,tmpImg.length-5); // ÀÌ¹ÌÁö ¸íµÚ¿¡ o, x.gif·Î ÁöÁ¤ÇÑ´Ù.
    imgState = (dState == "o")?"o.gif":"x.gif";
    tmpState = (dState == "o")?"block":"none";
    tObj.setAttribute("src",tmpImg+imgState);
    tmpDiv = document.getElementById(dID);
    if (tmpDiv) tmpDiv.style.display = tmpState;
}

function loadWindow(msg){

}

/* ---------------------------------------------------------------------------- */
/* ±â´É : ¿ìÆí¹øÈ£°Ë»öÆË¾÷                         */
/* ÀÛ¼ºÀÚ : Á¤ÀÚÇü 2008-01-31 5:22¿ÀÈÄ ±âÁ¸ ÆÝµå¿¡ ÀÖ´Â ³»¿ëÀ» ¸®´º¾óÈ­¸é¿¡ ¸ÂÃç ¼öÁ¤ */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                              */
/*                                                                              */
/* ---------------------------------------------------------------------------- */
function zipCodeFind() {
    var w_width = 500 ;
    var w_height = 421 ;
    //var targetHTML = "/web/finance/info/jsp/fnin_acntreal01_pop-up03.jsp" ;
    var targetHTML = "/common/pop/jsp/pop_zipcode.jsp?Gubun=1";
    openWindow(targetHTML, w_width, w_height, "no", "yes", "zipCodeFind");
}

/* -------------------------------------------------------------------------- */
/* ±â´É : ¼ýÀÚ¿¡¼­ Comma ¼³Á¤                                                 */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                            */
/*        -  input : ÀÔ·Â°ª                                                   */
/* -------------------------------------------------------------------------- */

function Comma(input) {

    var inputString = new String;
    var outputString = new String;
    var counter = 0;
    var decimalPoint = 0;
    var end = 0;
    var modval = 0;

    inputString = input.toString();
    outputString = '';
    decimalPoint = inputString.indexOf('.', 1);

    if (decimalPoint == -1) {
        end = inputString.length - (inputString.charAt(0) == '0' ? 1:0);
        for (counter = 1; counter <= inputString.length; counter++)
        {
            var modval = counter - Math.floor(counter / 3) * 3;
            outputString = (modval == 0 && counter < end ? ',' : '') + inputString.charAt(inputString.length - counter) + outputString;
        }
    }
    else {
        end = decimalPoint - ( inputString.charAt(0) == '-' ? 1 :0);
        for (counter = 1; counter <= decimalPoint; counter++)
        {
            outputString = (counter == 0 && counter < end ? ',' : '') + inputString.charAt(decimalPoint - counter) + outputString;
        }
        for (counter = decimalPoint; counter < decimalPoint + 3; counter++)
        {
            outputString += inputString.charAt(counter);
        }
    }
    return (outputString);
}


/* -------------------------------------------------------------------------- */
/* ±â´É : input type text ¿¡ ¼ýÀÚ¸¸ »ðÀÔ                                                  */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                            */
/*        -  input : ÀÔ·Â°ª                                                   */
/* -------------------------------------------------------------------------- */
function currency(obj)
{
    if (event.keyCode >= 48 && event.keyCode <= 57) {

    } else {
        event.returnValue = false
    }
}


/* -------------------------------------------------------------------------- */
/* ±â´É : input type text ¿¡ commma »ðÀÔ                                                  */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                            */
/*        -  input : ÀÔ·Â°ª                                                   */
/* -------------------------------------------------------------------------- */
function com(obj)
{
    obj.value = unComma(obj.value);
    obj.value = Comma(obj.value);
}

/* -------------------------------------------------------------------------- */
/* ±â´É : ¼ýÀÚ¿¡¼­ Comma Á¦°Å                                                 */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                            */
/*        -  input : ÀÔ·Â°ª                                                   */
/* -------------------------------------------------------------------------- */
function unComma(input) {
    var inputString = new String;
    var outputString = new String;
    var outputNumber = new Number;
    var counter = 0;
    if (input == '')
    {
        return 0
    }
    inputString = input;
    outputString = '';
    for (counter = 0; counter < inputString.length; counter++)
    {
        outputString += (inputString.charAt(counter) != ',' ?inputString.charAt(counter) : '');
    }
    outputNumber = parseFloat(outputString);
    return (outputNumber);
}


/* ---------------------------------------------------------------------------- */
/* ±â´É : Radio ¹öÆ° Value get                                                  */
/* ÀÛ¼ºÀÚ : ±èÁ¾¹Î 2008-01-31 1:36¿ÀÈÄ ÅõÀÚ¸ñÀû±âÀç¼­¿¡ »ç¿ëÇÔ ±âÁ¸ ÆÝµå¿¡ ÀÖÀ½ */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                              */
/*        -  input : ÀÔ·Â°ª                                                     */
/* ---------------------------------------------------------------------------- */
function getRadioCheckedValue(_oRadio) {
    for (var i = 0; i < _oRadio.length; i++)
    {
        if (_oRadio[i].checked == true) {
            return true;
        }
    }
    return false;
}

function getRadioValue(obj)
{
    for (i = 0; i < obj.length; i++)
    {
        if (obj[i].checked == true)
            return obj[i].value;
    }
    return '';
}
/* ---------------------------------------------------------------------------- */
/* ±â´É : ¹®ÀÚ±æÀÌ ¸¦ ¹ÙÀÌÆ®¼ö·Î Ã¼Å©                                           */
/* ÀÛ¼ºÀÚ : ±èÁ¾¹Î 2008-01-31 1:36¿ÀÈÄ ÅõÀÚ¸ñÀû±âÀç¼­¿¡ »ç¿ëÇÔ ±âÁ¸ ÆÝµå¿¡ ÀÖÀ½ */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                              */
/*        -  input : ÀÔ·Â°ª                                                     */
/* ---------------------------------------------------------------------------- */
function getByteLength(input) {
    var len = input.value.length;
    for (i = 0; i < input.value.length; i++)
        if (input.value.charCodeAt(i) > 127 && navigator.appVersion.indexOf("MSIE") != -1)
            len++;
    return len;
}

// ÄíÅ°¿¡¼­ »óÇ°¸íÀ» ²¨³»¿À´Â ÇÔ¼ö
function getLineNamesFromCookie() {
    var result = new Array();
    for (var index = 1; index <= 10; index ++) {
        var cookie = getCookie("recent" + index);
        if (cookie != undefined && cookie != null) {
            var values = cookie.split("|");
            result[index - 1] = values[0];
        }
    }
    return result;
}

// ÇØ´ç ÀÌ¸§À» °¡Áø Á¾¸ñÀÌ ÄíÅ°¿¡ ÀÖ´ÂÁö È®ÀÎÇÑ´Ù. true¸é Á¾¸ñÀÌ ÀÖ´Ù´Â ÀÇ¹ÌÀÌ´Ù.
function isAddableLine(linename) {
    var result = getLineNamesFromCookie();
    for (index = 0; index < result.length; index ++) {
        var value = result[index];
        // alert('value : ' + value + '  /  linename : ' + linename);
        if (value == linename) {
            return false;
        }
    }
    return true;
}


// ÇÁ·¹ÀÓ¿¡ ´ëÇÑ URL ÆÄ¶ó¹ÌÅÍ °ªÀ» °¡Á®¿Â´Ù.
function getURLParamOfFrame(frame, parameterName) {
    var result = "";
    var strHref = frame.location.href;
    // alert(strHref);
    if (strHref.indexOf("?") > -1) {
        var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
        var aQueryString = strQueryString.split("&");
        for (var param = 0; param < aQueryString.length; param++) {
            if (
                aQueryString[param].indexOf(parameterName + "=") > -1) {
                var aParam = aQueryString[param].split("=");
                result = aParam[1];
                break;
            }
        }
    }
    return result;
}

// »óÇ°Á¤º¸¸¦ ÄíÅ°¿¡ ³Ö´Â´Ù.
function addLineInfoToCookie(linename, menu12, menu34, pageurl) {

    var product = linename + "|" + menu12 + "|" + menu34 + "|" + pageurl;

    var index = getCookie("recentindex");

    if (index == "" || index == null || index == undefined) {

        setCookie("recentindex", "1");
    } else {

        var intIndex = parseInt(index);

        if (intIndex >= 10) {
            intIndex = 0;
        }
        intIndex ++;
        setCookie("recentindex", intIndex);

    }
    var cookieIndex = getCookie("recentindex");

    setCookie("recent" + cookieIndex, product);



}

/* ---------------------------------------------------------------------------- */
/* ±â´É :  »óÇ°Á¤º¸¸¦ ÄíÅ°¿¡ ³Ö´Â´Ù. ºÎ¸ð ÇÁ·¹ÀÓ¿¡¼­ URL Á¤º¸¸¦ °¡Á®¿Â´Ù.                                      */
/* ---------------------------------------------------------------------------- */
function addCart(linename, pageurl) {

    var menu1 = getURLParamOfFrame(top.body.main_url.top02, "menu12")
    var menu2 = getURLParamOfFrame(top.body.main_url.top02, "menu34")


    // µ¿ÀÏÇÑ ÀÌ¸§ÀÇ »óÇ°ÀÌ ÀÖ´ÂÁö È®ÀÎÇÏ°í ÀÖ´Ù¸é Ãß°¡ÇÏÁö ¾Ê´Â´Ù.
    if (isAddableLine(linename)) {
        addLineInfoToCookie(linename, menu1, menu2, pageurl);
    }

    // Flash·Î ÄíÅ°ÀÇ °ªÀ» ³Ñ°ÜÁÖ´Â ÇÔ¼ö¸¦ È£ÃâÇÑ´Ù. Flash´Â sub.html¿¡ Á¸Àç
     top.body.main_url.top02.callExternalInterface2();

}

function callBest(queryString) {
  var url = "/mall/best/bestGoods.jsp?" + queryString;
  xmlHttp.open("GET", url, false);
  xmlHttp.onreadystatechange = updatePage;
  xmlHttp.send("");
  //alert(url);
}

function updatePage() {
  if (xmlHttp.readyState == 4) {
    //alert(xmlHttp.responseText);
    //var response = xmlHttp.responseText;
    //alert("response : " + response);
  }
}



//ajax °ü·Ã ÇÔ¼ö

/* XMLHttpRequest °´Ã¼ »ý¼º */
var xmlHttp = false;

function createHttpRequest(){
    try {
      xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
        xmlHttp = false;
      }
    }

    if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
      xmlHttp = new XMLHttpRequest();
    }

    return xmlHttp;
}

/* ---------------------------------------------------------------------------- */
/* ±â´É : À©µµ¿ìÃ¢ »çÀÌÁî,½ºÅ©·Ñ¹Ù À¯¹«,µîµî..ÇüÅÂ ÁöÁ¤                         */
/* ÀÛ¼ºÀÚ : Á¤ÀÚÇü 2008-01-31 4:53¿ÀÈÄ ¿ìÆí¹øÈ£°Ë»öÆË¾÷Ã¢¿¡ »ç¿ëÇÔ ±âÁ¸ ÆÝµå¿¡ ÀÖÀ½ */
/* ÆÄ¶ó¸ÞÅÍ ¼³¸í :                                                              */
/*        - uri=ÁÖ¼Ò, w=³Êºñ, h=³ôÀÌ, sc=½ºÅ©·Ñ¹ÙÀ¯¹«, rs=³»¿ë¿¡µû¸¥ Å©±âº¯°æ, windowname =À©µµ¿ìÃ¢name¼Ó¼º  */
/* ---------------------------------------------------------------------------- */

function openWindow(uri, w, h, sc, rs, windowname) {
    var wct = (screen.width - w) / 2;
    var hct = (screen.height - h) / 2;
    window.open(uri, windowname, ('scrollbars=' + sc + ',resizable=' + rs + ', width=' + w + ',height=' + h + ',top=' + hct + ',left=' + wct));
}



function isYYYYMMDD(argYYYYMMDD, argGubun) {
    var sDate = (argYYYYMMDD != null) && (argYYYYMMDD.length != 0)?trim(argYYYYMMDD):"" ;
    var aDaysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) ;
    if ((argYYYYMMDD == null) || (argYYYYMMDD.length == 0) || (argYYYYMMDD.length < 8)) {
        return false;
    } else {
        if ((argGubun == null) || (argGubun.length == 0)) {
            sDate = argYYYYMMDD;
        } else {
            if ((argGubun.length == 1)) {
                sDate = argYYYYMMDD.replace(/(\+argGubun+\/)/g, "");
            } else {
                sDate = argYYYYMMDD;
            }
        }

        if (sDate.length != 8) {
            return false;
        } else if (!isNumber(sDate.substr(0, 4)) || !isNumber(sDate.substr(4, 2)) || !isNumber(sDate.substr(6, 2))) {
            return false;
        } else {
            iYear = eval(sDate.substr(0, 4));
            iMonth = eval(sDate.substr(4, 2));
            iDay = eval(sDate.substr(6, 2));

            var iDaysInMonth = (iMonth != 2)?aDaysInMonth[iMonth - 1]:((iYear % 4 == 0 && iYear % 100 != 0 || iYear % 400 == 0)?29:28) ;

            if ((iDay != null && iMonth != null && iYear != null && iMonth < 13 && iMonth > 0 && iDay > 0 && iDay <= iDaysInMonth) == false) {
                return false;
            } else {
                return true;
            }
        }
    }
}

//    ½Ã°£ÀÎÁö È®ÀÎ
function isHHMM(argHHMM) {
    if (!isNumber(argHHMM)) {
        return false;
    } else if (argHHMM.length != 4) {
        return false;
    } else {
        var hh = parseInt(trimZero(argHHMM.substring(0, 2))) ;
        var mm = parseInt(trimZero(argHHMM.substring(2, 4))) ;

        if ((hh < 0) || (hh > 23)) {
            return false;
        } else if ((mm < 0) || (mm > 59)) {
            return false;
        } else {
            return true;
        }
    }
}







/*
 * Á¤¼ö°ªÀÎÁö Ã¼Å©
 * ±âÁ¸ ÆÝµå¿¡¼­ °¡Á®¿Í¼­ »ç¿ë
*/
function isNumber(numval) {
    for (i = 0; i < numval.length; i++) {
        str = numval.charCodeAt(i);
        if (str < 48 || str > 57)
            return false;
    }
    return true;
}

function isRegNo(reg) {
    reg = Trim(reg);
    if (reg.length != 13 || !isNumber(reg)) {
        return false;
    }

    hap = 0;
    for (i = 0; i < 8; i++) {
        hap = hap + (i + 2) * reg.substring(i, i + 1);
    }

    for (i = 8; i < 12; i++) {
        hap = hap + (i - 6) * reg.substring(i, i + 1);
    }
    hap = hap % 11;
    hap = 11 - hap;
    hap = hap % 10;

    if (hap != reg.substring(12, 13)) {
        return false;
    }
    return true;
}


function isAlpha(val) {
    var comp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ;

    var len = val.length ;
    for (i = 0; i < len; i++) {
        if (comp.indexOf(val.substring(i, i + 1).toUpperCase()) < 0) {
            return false;
        }
    }
    return true;
}


function isAlphaNumeric(val) {
    var comp = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ;

    var len = val.length ;
    for (i = 0; i < len; i++) {
        if (comp.indexOf(val.substring(i, i + 1).toUpperCase()) < 0) {
            return false;
        }
    }
    return true;
}

function unFormatSlash(str)
{
    return str.replace(/[\/]/g,"");
}


function unFormatComma(str) {
    return str.replace(/[,]/g, "");
}

/********************************************************************************************************
 ½ºÅ©·¦ ÇÏ±â (°Ô½ÃÆÇ)
 ********************************************************************************************************/

function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    } else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}
function onScrap(sKeyNo, sReqTitle, sDvs) {
    doScrap(sKeyNo, sReqTitle, sDvs, '', '', '');
}

function doScrap(sKeyNo, sReqTitle, sDvs, sWriteDay, sWriter, sFile) {
    if ( confirm("½ºÅ©·¦ ÇÏ½Ã°Ú½À´Ï±î?") ) {
        var xmlUrl = "/common/jsp/sendBoardParam.jsp?sKeyNo="+sKeyNo+"&sReqTitle="+sReqTitle+"&sDvs="+sDvs+"&sWriteDay="+sWriteDay+"&sWriter="+sWriter+"&sFile="+sFile+"&boardno=455";
        createXMLHttpRequest();

        xmlHttp.onreadystatechange = handleStateChange;
        xmlHttp.open("GET", xmlUrl, true);

        xmlHttp.send(null);
    }
}
function handleStateChange() {

    if(xmlHttp.readyState == 4) {
        if(xmlHttp.status == 200) {
            alert("½ºÅ©·¦ µÇ¾ú½À´Ï´Ù.");

            bLayer = false;

            html = "\n";
            layer_qmenu.innerHTML = html;

            layer_qmenu.style.display = "none";
        }
    }
}

/********************************************************************************************************
 ÇÁ¸°ÅÍ Ãâ·Â.
 ********************************************************************************************************/
function doPrint(){
    pop('/common/pop/jsp/pop_printPage.jsp',600,700,1);
}
/*
    ´Ð³×ÀÓÀÌ µî·Ï¾ÈµÈ À¯Àúµé¿¡°Ô ¶ç¿ì´Â ´Ð³×ÀÓ µî·ÏÃ¢
    2008-02-26 ¿ÀÈÄ 2:55:20
    ±èÁ¾¹Î µî·Ï
*/
function onNickNameWin(){
    var win = window.open('/common/pop/jsp/pop_nickoverlap.jsp', 'nickWindow', 'width=600,height=368,scrollbars=no');
    win.focus();
}

/********************************************************************************************************
 ¿ÜºÎ ÇÃ·¡½Ã ·Îµå
 ********************************************************************************************************/
function externalJS2(id) {
    document.write(id.innerHTML);
    id.id = "";
}
/*
    °øÁö»çÇ×, .ÆÝµå°ø½ÃÁ¤º¸ °Ô½ÃÆÇÀÇ ÆäÀÌÁö »ó¼¼Á¤º¸¸¦ º¸¿©ÁÖ´Â ÆË¾÷Ã¢
    2008-03-21 ¿ÀÀü 10:14:21
    ±èÁ¾¹Î µî·Ï
*/
function onNotice(arg1, arg2, arg3, arg4){
    if(arg4 == 0){
        pop("/common/pop/jsp/pop_notice_view.jsp?pageNo=" + arg1 + arg2 + "&bidx=" + arg3  + "",700,700,0);
    }else{
        parent.changeMenu('0306','0100','/community/notice/jsp/notice_view.jsp%3FpageNo%3D'+ arg1 +'%26boardNo%3D'+ arg2 +'%26bidx%3D'+ arg3 );
        //pop("/common/pop/jsp/pop_notice_view.jsp?pageNo=" + arg1 + "&boardNo="+ arg2 + "&bidx=" + arg3  + "",700,700,0);
    }
}
function onEventNot(arg){
    changeMenu('0306','0100','/community/notice/jsp/notice_view.jsp%3FpageNo%3D1%26boardNo%3D12%26_srchWd%3D%26_srchSort%3D1%26bidx%3D'+arg);
}
/********************************************************************************************************
 °´Ã¼¸¦ ´ÙÀ½ °´Ã¼·Î Æ÷Ä¿¸¦ ÀÌµ¿ ½ÃÄÑ ÁØ´Ù.
 obj    : ÇöÀç °´Ã¼
 len    : Ã¼Å©ÇÒ ÀÚ¸´¼ö
 mobj   : ÀÌµ¿ÇÒ ´ÙÀ½ °´Ã¼
 Ãß°¡ÀÚ : 2008-04-29 ¿ÀÀü 10:46:00 ±èÁ¾¹Î
 ********************************************************************************************************/
function onMoveNext(obj, len, mobj){
    if(obj.value.length >= len){
        mobj.focus();
    }
}
/********************************************************************************************************
 °´Ã¼°ªÀ» ¼ýÀÚ·Î¸¸ ÀÔ·ÂÇÏ°Ô ÇÑ´Ù.
 obj    : ÇöÀç °´Ã¼
 Ãß°¡ÀÚ : 2008-05-09 ¿ÀÈÄ 4:59:54 ±èÁ¾¹Î
 ********************************************************************************************************/
function chkOnlyNum(obj){
    val=obj.value;
    re=/[^0-9]/gi;
    obj.value=val.replace(re,"");
}
/********************************************************************************************************
 * HTML °³Ã¼¸¦ º¸ÀÌ°Ô/¾Èº¸ÀÌ°Ô ÇÏ´Â ±â´ÉÀ» ¼öÇàÇÔ.
 * history.js ¿¡ ÀÖ´ø ±â´ÉÀ» °øÅëÀ¸·Î º¯°æ
 * 2008-10-06 ¿ÀÈÄ 2:08:58 ±èÁ¾¹Î
 ********************************************************************************************************/
function HideElement(_id, _animation){
	var _el = document.getElementById(_id);
	var _gap = 30;

	if (_animation)
		_el.style.overflow = "hidden";
	else
		_el.style.overflow = "visible";

	this.hide = function(_ani){
		if (_ani){
			if (parseInt(_el.style.height, 10) - _gap > 0){
				_el.style.height = (parseInt(_el.style.height, 10) - _gap) + "px";
				setTimeout("this.hide(" + _ani + ")", 1);
			}else{
				_el.style.display = "none";
				_el.style.height = "";
			}
		}else{
		    _el.style.display = "none";
		}
	}

	this.show = function(_ani){
		if (_ani){
			if (parseInt(_el.style.height, 10) + _gap < _el.scrollHeight){
				_el.style.height = (parseInt(_el.style.height, 10) + _gap) + "px";
				setTimeout("this.show(" + _ani + ")", 1);
			}else{
				_el.style.height = "";
			}
		}

	}

	if (_el.style.display == "none"){
		_el.style.display = "";
		_el.style.height = 0 + "px";
		this.show(_animation);
	}else{
		_el.style.height = _el.scrollHeight + "px";
		this.hide(_animation);

	}
}
/********************************************************************************************************
 * °Å·¡³»¿ª¿¡¼­ Á¶È¸±â°£ ³¯ÀÚ ¼¼ÆÃ±â´É
 * history.js ¿¡ ÀÖ´ø ±â´ÉÀ» °øÅëÀ¸·Î º¯°æ
 * 2008-10-06 ¿ÀÈÄ 2:08:58 ±èÁ¾¹Î
 ********************************************************************************************************/
function setDate(argGubun, argValue){
	var form = document.forms[0] ;
	var ls_date = form.txtEnd.value ;

	while (ls_date.indexOf("/") >= 0) {
		ls_date = ls_date.replace("/", "");
	}

        var ld_ToDate = new Date(ls_date.substring(0, 4), ls_date.substring(4, 6) - 1, ls_date.substring(6, 8)) ;
	var ld_NewDate = new Date() ;

	if (argGubun == "day"){
		ld_NewDate.setDate(ld_ToDate.getDate() + parseInt(argValue, 10));
	}else if (argGubun == "month"){
            ld_NewDate.setMonth(ld_ToDate.getMonth()  + parseInt(argValue, 10));
	}else if (argGubun == "year"){
		ld_NewDate.setYear(ld_ToDate.getYear() + parseInt(argValue, 10));
	}

	form.txtStart.value = ld_NewDate.getYear() + "/" +
	                      ((ld_NewDate.getMonth() + 1 < 10) ? "0" + (ld_NewDate.getMonth() + 1) : ld_NewDate.getMonth() + 1) + "/" +
	                      ((ld_NewDate.getDate() < 10) ? "0" + ld_NewDate.getDate() : ld_NewDate.getDate());
}

/********************************************************************************************************
 * ½Å°èÁÂ·Î ÀÎÇÑ ±¸°èÁÂ¹øÈ£, °èÁÂÀÏ·Ã¹øÈ£, °èÁÂ±×·ì, °èÁÂ»ç¿ë±¸ºÐÀ» °ª¿¡ ¹ÙÀÎµù ÇÑ´Ù.
 * 2008-10-06 ¿ÀÈÄ 2:08:58 ±èÁ¾¹Î
 ********************************************************************************************************/
function alertShowAccount(frm, isel){

//    alert("½ÇÁ¦°ª : ½Å°èÁÂ : " + frm.selAcNo[isel].value + "\n" +
//          "±¸°èÁÂ : " + frm.selAcNo[isel].hbasic + "\n" +
//          "»óÇ°À¯Çü : " + frm.selAcNo[isel].htype + "\n" +
//          "»óÇ°±×·ì : " + frm.selAcNo[isel].hgroup + "\n" +
//          "°èÁÂ»ç¿ë±¸ºÐ : " + frm.selAcNo[isel].haccgb);

    frm.hbasic.value    = frm.selAcNo[isel].hbasic;
    frm.htype.value     = frm.selAcNo[isel].htype;
    frm.hgroup.value    = frm.selAcNo[isel].hgroup;
    frm.haccgb.value    = frm.selAcNo[isel].haccgb;

}

/********************************************************************************************************
 * °èÁÂ¹øÈ£À» ½Å°èÁÂ ±¸°èÁÂ Æ÷¸ËÀ¸·Î º¸¿©ÁØ´Ù.
 * ±¸°èÁÂ           : 01101123456   => 011-01-123456
 * ½Å°èÁÂ 9ÀÚ¸®     : 211011234     => 211-011-234
 * ½Å°èÁÂ 11ÀÚ¸®    : 21101123456   => 211-011-234-56
 * 2008-12-30 ¿ÀÈÄ 4:06:56 ±èÁ¾¹Î
 ********************************************************************************************************/
function onConvertAccOut(arg){
    var sRetVal = "";
    var sAccGb = arg.substring(0,1);

    if(sAccGb == "0" || sAccGb == "1" || sAccGb == "7" || sAccGb == "9"){//±¸°èÁÂÆ÷¸Ë
        sRetVal = arg.replace(/([0-9]{3})([0-9]{2})([0-9]{6}$)/,"$1-$2-$3");
    }else{//½Å°èÁÂÆ÷¸Ë
        if(arg.length < 10){
            sRetVal = arg.replace(/([0-9]{3})([0-9]{3})([0-9]+)/,"$1-$2-$3");
        }else{
            sRetVal = arg.replace(/([0-9]{3})([0-9]{3})([0-9]{3})([0-9]+)/,"$1-$2-$3-$4");
        }
    }

    return sRetVal;
}


/********************************************************************************************************
 * ¼Û±Ý°¡´É ±â°ü¸ÅÃ¼ÄÚµå ¼³Á¤
 * 2009-06-29 ¿ÀÈÄ 3:02:54 ±èÁ¾¹Î
 ********************************************************************************************************/
function onOptionBankCd(arg){

    document.write("<option value='039' " + (("039" == arg) ? "selected" : "") + " >°æ³²ÀºÇà            [039]</option>");
    document.write("<option value='261' " + (("261" == arg) ? "selected" : "") + " >±³º¸Áõ±Ç            [261]</option>");
    document.write("<option value='034' " + (("034" == arg) ? "selected" : "") + " >±¤ÁÖÀºÇà            [034]</option>");
    document.write("<option value='004' " + (("004" == arg) ? "selected" : "") + " >±¹¹ÎÀºÇà            [004]</option>");
    document.write("<option value='003' " + (("003" == arg) ? "selected" : "") + " >±â¾÷ÀºÇà            [003]</option>");
    document.write("<option value='011' " + (("011" == arg) ? "selected" : "") + " >³óÇùÁß¾ÓÈ¸          [011]</option>");
    document.write("<option value='012' " + (("012" == arg) ? "selected" : "") + " >³óÇùÈ¸¿øÁ¶ÇÕ        [012]</option>");
    document.write("<option value='031' " + (("031" == arg) ? "selected" : "") + " >´ë±¸ÀºÇà            [031]</option>");
    document.write("<option value='267' " + (("267" == arg) ? "selected" : "") + " >´ë½ÅÁõ±Ç            [267]</option>");
    document.write("<option value='238' " + (("238" == arg) ? "selected" : "") + " >´ë¿ìÁõ±Ç            [238]</option>");
    document.write("<option value='055' " + (("055" == arg) ? "selected" : "") + " >µµÀÌÄ¡ÀºÇà          [055]</option>");
    document.write("<option value='279' " + (("279" == arg) ? "selected" : "") + " >µ¿ºÎÁõ±Ç            [279]</option>");
    document.write("<option value='209' " + (("209" == arg) ? "selected" : "") + " >µ¿¾çÁ¾±Ý            [209]</option>");
    document.write("<option value='287' " + (("287" == arg) ? "selected" : "") + " >¸Þ¸®Ã÷Áõ±Ç          [287]</option>");
    document.write("<option value='230' " + (("230" == arg) ? "selected" : "") + " >¹Ì·¡¿¡¼ÂÁõ±Ç        [230]</option>");
    document.write("<option value='059' " + (("059" == arg) ? "selected" : "") + " >¹Ì¾²ºñ½ÃµµÄìUFJÀºÇà [059]</option>");
    document.write("<option value='058' " + (("058" == arg) ? "selected" : "") + " >¹ÌÁîÈ£ÄÚÆÛ·¹ÀÌÆ®ÀºÇà[058]</option>");
    document.write("<option value='060' " + (("060" == arg) ? "selected" : "") + " >¹ðÅ©¿Àºê¾Æ¸Þ¸®Ä«    [060]</option>");
    document.write("<option value='032' " + (("032" == arg) ? "selected" : "") + " >ºÎ»êÀºÇà            [032]</option>");
    document.write("<option value='064' " + (("064" == arg) ? "selected" : "") + " >»ê¸²Á¶ÇÕ            [064]</option>");
    document.write("<option value='002' " + (("002" == arg) ? "selected" : "") + " >»ê¾÷ÀºÇà            [002]</option>");
    document.write("<option value='240' " + (("240" == arg) ? "selected" : "") + " >»ï¼ºÁõ±Ç            [240]</option>");
    document.write("<option value='050' " + (("050" == arg) ? "selected" : "") + " >»óÈ£ÀúÃàÀºÇàÁß¾ÓÈ¸  [050]</option>");
    document.write("<option value='045' " + (("045" == arg) ? "selected" : "") + " >»õ¸¶À»±Ý°í¿¬ÇÕÈ¸    [045]</option>");
    document.write("<option value='007' " + (("007" == arg) ? "selected" : "") + " >¼öÇùÁß¾ÓÈ¸          [007]</option>");
    document.write("<option value='291' " + (("291" == arg) ? "selected" : "") + " >½Å¿µÁõ±Ç            [291]</option>");
    document.write("<option value='048' " + (("048" == arg) ? "selected" : "") + " >½Å¿ëÇùµ¿Á¶ÇÕ        [048]</option>");
    document.write("<option value='278' " + (("278" == arg) ? "selected" : "") + " >½ÅÇÑ±ÝÀ¶ÅõÀÚ        [278]</option>");
    document.write("<option value='088' " + (("088" == arg) ? "selected" : "") + " >½ÅÇÑÀºÇà            [088]</option>");
    document.write("<option value='056' " + (("056" == arg) ? "selected" : "") + " >¾Ëºñ¿¡½º ÀºÇà       [056]</option>");
    document.write("<option value='005' " + (("005" == arg) ? "selected" : "") + " >¿ÜÈ¯ÀºÇà            [005]</option>");
    document.write("<option value='020' " + (("020" == arg) ? "selected" : "") + " >¿ì¸®ÀºÇà            [020]</option>");
    document.write("<option value='247' " + (("247" == arg) ? "selected" : "") + " >¿ì¸®ÅõÀÚÁõ±Ç        [247]</option>");
    document.write("<option value='280' " + (("280" == arg) ? "selected" : "") + " >À¯ÁøÅõÀÚÁõ±Ç        [280]</option>");//2009-09-03 ¿ÀÈÄ 2:14:51 Ãß°¡
    document.write("<option value='265' " + (("265" == arg) ? "selected" : "") + " >ÀÌÆ®·¹ÀÌµåÁõ±Ç      [265]</option>");//2009-12-01 ¿ÀÈÄ 3:33:45 Ãß°¡
    document.write("<option value='037' " + (("037" == arg) ? "selected" : "") + " >ÀüºÏÀºÇà            [037]</option>");
    document.write("<option value='035' " + (("035" == arg) ? "selected" : "") + " >Á¦ÁÖÀºÇà            [035]</option>");
    document.write("<option value='071' " + (("071" == arg) ? "selected" : "") + " >Áö½Ä°æÁ¦ºÎ(¿ìÃ¼±¹)  [071]</option>");
    document.write("<option value='264' " + (("264" == arg) ? "selected" : "") + " >Å°¿òÁõ±Ç            [264]</option>");//2009-12-01 ¿ÀÈÄ 3:33:52 Ãß°¡
    document.write("<option value='270' " + (("270" == arg) ? "selected" : "") + " >ÇÏ³ª´ëÅõÁõ±Ç        [270]</option>");
    document.write("<option value='081' " + (("081" == arg) ? "selected" : "") + " >ÇÏ³ªÀºÇà            [081]</option>");
    document.write("<option value='262' " + (("262" == arg) ? "selected" : "") + " >ÇÏÀÌÅõÀÚÁõ±Ç        [262]</option>");
    document.write("<option value='027' " + (("027" == arg) ? "selected" : "") + " >ÇÑ±¹¾¾Æ¼ÀºÇà        [027]</option>");
    document.write("<option value='243' " + (("243" == arg) ? "selected" : "") + " >ÇÑ±¹ÅõÀÚÁõ±Ç        [243]</option>");
    document.write("<option value='269' " + (("269" == arg) ? "selected" : "") + " >ÇÑÈ­Áõ±Ç            [269]</option>");
    //document.write("<option value='218' " + (("218" == arg) ? "selected" : "") + " >Çö´ëÁõ±Ç              [218]</option>");
    document.write("<option value='263' " + (("263" == arg) ? "selected" : "") + " >HMCÅõÀÚÁõ±Ç         [263]</option>");
    document.write("<option value='054' " + (("054" == arg) ? "selected" : "") + " >HSBCÀºÇà            [054]</option>");
    document.write("<option value='057' " + (("057" == arg) ? "selected" : "") + " >JP¸ð°Ç              [057]</option>");
    document.write("<option value='023' " + (("023" == arg) ? "selected" : "") + " >SCÁ¦ÀÏÀºÇà          [023]</option>");
    document.write("<option value='266' " + (("266" == arg) ? "selected" : "") + " >SKÁõ±Ç              [266]</option>");

//    document.write("<option value='002' "+ (("002" == arg) ? "selected" : "") +" >»ê¾÷ÀºÇà [2]</option>               ");
//    document.write("<option value='003' "+ (("003" == arg) ? "selected" : "") +" >±â¾÷ÀºÇà [3]</option>               ");
//    document.write("<option value='004' "+ (("004" == arg) ? "selected" : "") +" >±¹¹ÎÀºÇà [4]</option>               ");
//    document.write("<option value='005' "+ (("005" == arg) ? "selected" : "") +" >¿ÜÈ¯ÀºÇà [5]</option>               ");
//    document.write("<option value='007' "+ (("007" == arg) ? "selected" : "") +" >¼öÇùÁß¾ÓÈ¸ [7]</option>             ");
//    document.write("<option value='011' "+ (("011" == arg) ? "selected" : "") +" >³óÇùÁß¾ÓÈ¸ [11]</option>            ");
//    document.write("<option value='012' "+ (("012" == arg) ? "selected" : "") +" >³óÇùÈ¸¿øÁ¶ÇÕ [12]</option>          ");
//    document.write("<option value='020' "+ (("020" == arg) ? "selected" : "") +" >¿ì¸®ÀºÇà [20]</option>              ");
//    document.write("<option value='023' "+ (("023" == arg) ? "selected" : "") +" >SCÁ¦ÀÏÀºÇà [23]</option>            ");
//    document.write("<option value='027' "+ (("027" == arg) ? "selected" : "") +" >ÇÑ±¹¾¾Æ¼ÀºÇà [27]</option>          ");// 07.07.31 ÇÑ¹ÌÀºÇà=>½ÃÆ¼/ÇÑ¹Ì(27)
//    document.write("<option value='031' "+ (("031" == arg) ? "selected" : "") +" >´ë±¸ÀºÇà [31]</option>              ");
//    document.write("<option value='032' "+ (("032" == arg) ? "selected" : "") +" >ºÎ»êÀºÇà [32]</option>              ");
//    document.write("<option value='034' "+ (("034" == arg) ? "selected" : "") +" >±¤ÁÖÀºÇà [34]</option>              ");
//    document.write("<option value='035' "+ (("035" == arg) ? "selected" : "") +" >Á¦ÁÖÀºÇà [35]</option>              ");
//    document.write("<option value='037' "+ (("037" == arg) ? "selected" : "") +" >ÀüºÏÀºÇà [37]</option>              ");
//    document.write("<option value='039' "+ (("039" == arg) ? "selected" : "") +" >°æ³²ÀºÇà [39]</option>              ");
//    document.write("<option value='045' "+ (("045" == arg) ? "selected" : "") +" >»õ¸¶À»±Ý°í¿¬ÇÕÈ¸ [45]</option>      ");
//    document.write("<option value='048' "+ (("048" == arg) ? "selected" : "") +" >½Å¿ëÇùµ¿Á¶ÇÕ [48]</option>          ");
//    document.write("<option value='050' "+ (("050" == arg) ? "selected" : "") +" >»óÈ£ÀúÃàÀºÇàÁß¾ÓÈ¸ [50]</option>    ");
//    document.write("<option value='054' "+ (("054" == arg) ? "selected" : "") +" >HSBCÀºÇà [54]</option>              ");
//    document.write("<option value='055' "+ (("055" == arg) ? "selected" : "") +" >µµÀÌÄ¡ÀºÇà [55]</option>            ");
//    document.write("<option value='056' "+ (("056" == arg) ? "selected" : "") +" >ABN¾Ï·ÎÀºÇà [56]</option>           ");
//    document.write("<option value='057' "+ (("057" == arg) ? "selected" : "") +" >JP¸ð°Ç [57]</option>                ");
//    document.write("<option value='058' "+ (("058" == arg) ? "selected" : "") +" >¹ÌÁîÈ£ÄÚÆÛ·¹ÀÌÆ®ÀºÇà [58]</option>  ");
//    document.write("<option value='059' "+ (("059" == arg) ? "selected" : "") +" >¹Ì¾²ºñ½ÃµµÄìUFJÀºÇà [59]</option>   ");
//    document.write("<option value='060' "+ (("060" == arg) ? "selected" : "") +" >¹ðÅ©¿Àºê¾Æ¸Þ¸®Ä« [60]</option>      ");
//    document.write("<option value='064' "+ (("064" == arg) ? "selected" : "") +" >»ê¸²Á¶ÇÕ [64]</option>              ");
//    document.write("<option value='071' "+ (("071" == arg) ? "selected" : "") +" >Áö½Ä°æÁ¦ºÎ(¿ìÃ¼±¹) [71]</option>    ");
//    document.write("<option value='081' "+ (("081" == arg) ? "selected" : "") +" >ÇÏ³ªÀºÇà [81]</option>              ");
//    document.write("<option value='088' "+ (("088" == arg) ? "selected" : "") +" >½ÅÇÑÀºÇà [88]</option>              ");
//    document.write("<option value='209' "+ (("209" == arg) ? "selected" : "") +" >µ¿¾çÁ¾±Ý [209]</option>             ");
//    //document.write("<option value='218' "+ (("218" == arg) ? "selected" : "") +" >Çö´ëÁõ±Ç [218]</option>             ");
//    document.write("<option value='230' "+ (("230" == arg) ? "selected" : "") +" >¹Ì·¡¿¡¼ÂÁõ±Ç [230]</option>         ");
//    document.write("<option value='238' "+ (("238" == arg) ? "selected" : "") +" >´ë¿ìÁõ±Ç [238]</option>             ");
//    document.write("<option value='240' "+ (("240" == arg) ? "selected" : "") +" >»ï¼ºÁõ±Ç [240]</option>             ");
//    document.write("<option value='243' "+ (("243" == arg) ? "selected" : "") +" >ÇÑ±¹ÅõÀÚÁõ±Ç [243]</option>         ");
//    document.write("<option value='247' "+ (("247" == arg) ? "selected" : "") +" >¿ì¸®ÅõÀÚÁõ±Ç [247]</option>         ");
//    document.write("<option value='262' "+ (("262" == arg) ? "selected" : "") +" >ÇÏÀÌÅõÀÚÁõ±Ç [262]</option>         ");
//    document.write("<option value='263' "+ (("263" == arg) ? "selected" : "") +" >HMCÅõÀÚÁõ±Ç [263]</option>          ");
//    document.write("<option value='266' "+ (("266" == arg) ? "selected" : "") +" >SKÁõ±Ç [266]</option>               ");
//    document.write("<option value='269' "+ (("269" == arg) ? "selected" : "") +" >ÇÑÈ­Áõ±Ç [269]</option>             ");
//    document.write("<option value='270' "+ (("270" == arg) ? "selected" : "") +" >ÇÏ³ª´ëÅõÁõ±Ç [270]</option>         ");
//    document.write("<option value='278' "+ (("278" == arg) ? "selected" : "") +" >±Â¸ð´×½ÅÇÑÁõ±Ç [278]</option>       ");

}

/********************************************************************************************************
 * Ã³¸®Áß ¸Þ¼¼Áö ¼³Á¤
 * 2010-01-26 ¿ÀÈÄ 4:00:00 ¹ÚÈ¿ÁØ
 ********************************************************************************************************/
// ÆË¾÷À©µµ¿ì°´Ã¼
var pProgressWin01 = null ;

//	½ÇÇàÁßÀÎ ºê¶ó¿ìÀúÀÇ °¡¿îµ¥¿¡ 'Ã³¸®Áß' ¸Þ¼¼Áö¸¦ ÆË¾÷À©µµ¿ì°´Ã¼·Î ¶ç¿î´Ù.
function openProgress01() {
	var width = 142 ;
	var height = 115 ;
	var w_width, w_height ;
	if (navigator.appName == "Netscape")
	{
		w_width = window.innerWidth ;
		w_height = window.innerHeight ;
	}
	else
	{
		w_width = document.body.clientWidth ;
		w_height = document.body.clientHeight ;
	}
	var xpos = (w_width - width) / 2 ;
	var ypos = (w_height - height) / 2 ;
	pProgressWin01 = window.createPopup() ;
	pProgressWin01.document.body.innerHTML = "" +
																						"<table width=\"100%\" height=\"100%\" style=\"cursor:wait;\">" +
																						"	<tr>" +
																						"		<td width=\"100%\" height=\"100%\">" +
																						"			<img src=\"http://image.youfirst.co.kr/image/asset/loading.gif\" border=\"0\"/>" +
																						"		</td>" +
																						"	</tr>" +
																						"</table>" ;
	pProgressWin01.show(xpos, ypos, width, height, document.body) ;
}

function closeProgress01()
{
	if (pProgressWin01 != null)
	{
		pProgressWin01.hide() ;
		pProgressWin01 = null ;
	}
}





