// 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 imgPopUp(img){ 
	imgWin=window.open("","","width=100, height=100, resizable=yes, scrollbars=yes"); 
	imgWin.document.write("<html><head> <meta http-equiv='content-type' content='text/html; charset=utf-8' /><title>archerylove</title></head>");
	imgWin.document.write("<script>");
	imgWin.document.write("function resizeWin() {");
	imgWin.document.write("var obj = document.getElementById('img');");
	imgWin.document.write("var w = obj.width;");
	imgWin.document.write("var h = (obj.height < 800) ? obj.height:800;");
	imgWin.document.write("window.resizeTo(w + 30, h + 80);");
	imgWin.document.write("}");
	imgWin.document.write("</script>");
    imgWin.document.write("<body topmargin=0 leftmargin=0 onLoad='resizeWin();'>");
    imgWin.document.write("<img src='"+img+"' onclick='self.close()' style=cursor:hand id='img'>");
    imgWin.document.close();
}