// Hide And Show Toggle
var cc=0
function hideShow(id) {
    if (cc==0) {
        cc=1
        document.getElementById(id).style.display="none";
    } else {
        cc=0
        document.getElementById(id).style.display="block";
    }
}

// Show And Hide Toggle
var cc=0
function showHide(id) {
    if (cc==0) {
        cc=1
        document.getElementById(id).style.display="block";
    } else {
        cc=0
        document.getElementById(id).style.display="none";
    }
}

// Local Navigation Toggle
function lnbToggle(id) {
	for(num=1; num<=3; num++) document.getElementById('D3MG'+num).style.display='none'; //D4MG1~D4MG3 까지 숨긴 다음
	document.getElementById(id).style.display='block'; //해당 ID만 보임
}

// IS
function chkIsKind(key, value) {
    showHide('selectOrder');
    xGetElementById('search_target'+key).checked = true;
    xInnerHtml('search_target_label', value);
}


//팝업창
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 "";
}
/*
if (getCookie("no_pop") != "ok" )        //no_pop 이라는 이름의 쿠키값이 ok 가 아니라면 다음의 새창 띄우기를 실행
{
 window.open("/popup_nara.html","hi", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width = 440 height = 285");       
//파일 이름과 속성을 자신에 맞게 수정하면 됩니다.

}
*/
/*
if (getCookie("no_pop") != "ok" )
{
 window.open("/popup_mobile.html","hi", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width = 485 height = 339");
}
*/

