function printTitle(s)
{
    var str = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#e6e6e6" style="padding-top:10 " height=10></td></tr>';
    str += '<tr><td height="27" bgcolor="#000000" style="padding-left:10px; color:white; ">' + s + '</td></tr></table><br />';
    document.writeln(str);
}

function subPrintTitle(s)
{
    var str = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    str += '<tr><td height="27" bgcolor="#eeeeee" style="padding-left:10px; color:black; font-weight:bold;"><img src="/web/images/admin/bu_red.gif" align="absmiddle">&nbsp;' + s + '</td></tr></table><br />';
    document.writeln(str);
}

function tacTopNaviLink(index){
    var url = "";

    if(index == "0") url = "";
    else if(index == "1") url = "info/tac/";
    else if(index == "1_1") url = "info/tac/";
    else if(index == "1_2") url = "?mid=noti";
    else if(index == "1_3") url = "?mid=faq";
    else if(index == "1_4") url = "?mid=qa";
    else if(index == "1_4_1") url = "?mid=qa&category=3842";
    else if(index == "1_4_2") url = "?mid=qa&category=3844";

    else if(index == "1_5") url = "?mid=lib";
    else if(index == "1_6") url = "?mid=fund";
    
    else if(index == "2") url = "talk/";
    else if(index == "2_1") url = "talk/";

    else if(index == "3") url = "challenge/submit";
    //else if(index == "3_1") url = "challenge/join";
    else if(index == "3_2") url = "challenge/submit";
    
    else if(index == "4"){
        window.open("http://dev.tstore.co.kr/devpoc/main/main.omp", null);
        return;
    }
    else if(index == "5"){
        window.open("http://www.tstore.co.kr/userpoc/main/main.omp", null);
        return;
    }


    if(url == "" && index != "0"){
        alert("준비중입니다.");
        return;
    }
    else{
        location.href = "/" + url;
    }
}

function tacBottomNaviLink(index){
    var url = "";
    if(index == "1"){
        window.open("http://www.sktelecom.com/", null);
        return;
    }
    else if(index == "2"){
        window.open("http://dev.tstore.co.kr/devpoc/footer/agreement.omp", null);
        return;
    }
    else if(index == "3"){
        window.open("http://dev.tstore.co.kr/devpoc/footer/info_policy.omp", null);
        return;
    }
    else if(index == "4"){
        window.open("http://dev.tstore.co.kr/devpoc/footer/protect_teenagers.omp", null);
        return;
    }
    else if(index == "5"){
        window.open("http://dev.tstore.co.kr/devpoc/iprCenter/iprCenterInfo.omp", null);
        return;
    }
}


