
// VMAN
function Wt_AxVMan() {
    document.write("\
        <object id='VMan' classid='CLSID:40B8C7BB-FD7C-44CA-BF70-5ADB0DC635CB' codebase='http://wisebiz.bccard.com/corp/program/VManAX.cab#version=3,2,0,3' width='0' height='0'></OBJECT>\
    ");
}

// ÇÑ±¹ÀüÀÚÀÎÁõ
function Wt_AxCrossCert() {
    document.write("\
        <object id='CC_Object_id' classid='CLSID:A099920B-630C-426B-91EC-737685CEEE17' codebase='http://wisebiz.bccard.com/corp/inc/js/AxCrossCert.cab#Version=2,5,1,21' width='Document.body.clientWidth' height='Document.body.clientHeight'/>\
    ");
}

function initAxCrossCert(clss) {
    var Ret, key;
    var keys = new Array();
    keys[0] =   "1.2.410.200004.5.2.1.2|1.2.410.200004.5.1.1.5|" +
                "1.2.410.200005.1.1.1|1.2.410.200004.5.3.1.4|" +
                "1.2.410.200004.5.4.1.1|1.2.410.200012.1.1.1|" +
                "1.2.410.200004.5.2.1.1|" +
                "1.2.410.200004.5.1.1.7|1.2.410.200005.1.1.5|" +
                "1.2.410.200004.5.3.1.1|1.2.410.200004.5.3.1.2|" +
                "1.2.410.200012.1.1.3|1.2.410.200004.2.1|" +
                "1.2.410.200004.5.4.1.4|1.2.410.200004.5.4.1.5|" +
                "1.2.410.200004.5.2.1.7.1|1.2.410.200004.5.2.1.7.2|" +
                "1.2.410.200004.5.2.1.7.3|1.2.410.200004.5.1.1.9|" +
                "1.2.410.200004.5.1.1.9.2|1.2.410.200005.1.1.4|" +
                "1.2.410.200005.1.1.6.2|1.2.410.200004.5.4.1.101|" +
                "1.2.410.200004.5.4.1.102|1.2.410.200004.5.4.1.103|" +
                "1.2.410.200004.5.4.1.104|1.2.410.200012.1.1.101|" +
                "1.2.410.200012.1.1.103|1.2.410.200012.1.1.105";
    keys[1]   = "1.2.410.200004.5.2.1.1|1.2.410.200004.5.1.1.7|" +
                "1.2.410.200005.1.1.5|1.2.410.200004.5.3.1.1|" +
                "1.2.410.200004.5.3.1.2|1.2.410.200004.5.4.1.2|" +
                "1.2.410.200012.1.1.3|1.2.410.200005.1.1.2";
    if (clss == 'all') {
        key = keys.join('');
    } else if (clss == 'user') {
        key = keys[0];
    } else if (clss == 'orgn') {
        key = keys[1];
    } else {
        alert( "ÀÎÁõ¼­ ±¸ºÐ(°³ÀÎ,¹ýÀÎ)ÀÌ ¿Ç¹Ù¸£Áö ¾Ê½À´Ï´Ù." );
        return false;
    }
    Ret =  document.CC_Object_id.SetCommonInfoFromVal(
                                            "211.192.169.70",4502,
                                            "211.192.169.180",389,
                                            "211.192.169.180",389,
                                            "CN=ROOT-RSA-CRL,OU=ROOTCA,O=KISA,C=KR",
                                            "no",key);
    if ( Ret != 0 ) {
        alert( "ÀÎÁõ ÃÊ±â ¼³Á¤¿¡ ½ÇÆÐÇÏ¿´½À´Ï´Ù." );
        return false;
    } else {
        return true;
    }
}
function INIpluginCheckHTML(locobj, contextpath, webroot){
    /*
    var host = location.host;
    var subdomain = host.substring(0, host.indexOf('.'));
    if ( subdomain == 'develop' ) {
        var search = location.search;
        if ( search.length == 0 ) {
            locobj.location.href= webroot+'/html/notfound/notfound_domain.html?webroot=' + webroot;
            return;
        } else {
            subdomain = search.substring(1);
        }
    }
    */
    var subdomain = 'inno';//´ÜÀÏ rnd_cd »çÀÌÆ®
    if ( typeof(webroot)=='undefined' || webroot==null ) {
        webroot = "";
    }
    var url = webroot + "/initech/plugin/check.html?access_rnd_cd=" + subdomain.toUpperCase()
            + "&context_path=" + contextpath
            + "&web_root=" + webroot
            + "&bcwafnocache=" + new Date().getTime();

    locobj.location.href = url;
}