<!--
function jumpMenu(selObj){
    if(selObj==""){
        alert("¼Ò¼Ó±â°ü ¹× ´ÜÃ¼¸¦ ¼±ÅÃÇÏ¼¼¿ä.")
        return false;
    }else{
        window.open(selObj,"","");
    }
}

function goView(id) {
    document.move.action = "notice/notice_view.jsp";
    document.move.id.value = id;
    document.move.submit();
}

function goView1(id) {
    document.move.action = "notice/news_view.jsp";
    document.move.id.value = id;
    document.move.submit();
}
function goView2(id) {
    document.move.action = "study_data/study_view.jsp";
    document.move.id.value = id;
    document.move.submit();
}

function displayNewButton(regdate, curdate) {
    var aryregdate = new Array();
    var arycurdate = new Array();

    aryregdate = regdate.split("-");
    arycurdate = curdate.split("-");

    var regday = new Date(aryregdate[0], aryregdate[1], aryregdate[2]);
    var today = new Date(arycurdate[0], arycurdate[1], arycurdate[2]);

    var lapse = today - regday;
    var lps = Math.round(lapse/(1000*60*60*24));

    if (lps < 1) {
        document.write("<img src=img/icon01.gif>");
    }
}

function  toggle_ok(aa) {
    if (1 == aa) {
        if (document.all.toggle_1.style.display=="") {
            document.all.toggle_1.style.display="none";
        } else {
            document.all.toggle_1.style.display="";
        }
    } else {
       document.all.toggle_1.style.display="none";
    }
    if (2 == aa) {
        if (document.all.toggle_2.style.display=="") {
            document.all.toggle_2.style.display="none";
        } else {
            document.all.toggle_2.style.display="";
        }
    } else {
        document.all.toggle_2.style.display="none";
    }
    aa.display="";
}

function hunjang(){
    window.open('pop/hunjang.jsp','hunjang','resizable=no,scrollbars=yes, width=604,height=500');
}

function search() {
    alert('ÁØºñÁßÀÔ´Ï´Ù');
}

function service(){
    window.open('/pop/service.jsp','service','resizable=no,scrollbars=yes, width=604,height=500');
}

//µ¿¿µ»óº¸±â
function showBcpMovie(media_url) {
    var left = (screen.width - 526) / 2
    var top = (screen.height - 473) / 2
    var url= media_url
    open(url, '', "left=" + left + ",top=" + top +",width=526,height=473,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no")
}

//È«º¸¿µ»óº¸±â
function showMovie(media_url) {
    var left = (screen.width - 526) / 2
    var top = (screen.height - 473) / 2
    var url= "/media/us.jsp?media_url=" + media_url
    open(url, '', "left=" + left + ",top=" + top +",width=526,height=473,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no")
}
//-->

// ´º À©µµ¿ì  -- »õ·Î ÀÛ¼ºÇÑ ÇÔ¼ö(ÇÑÁø)
function viewImage2(name,url,width,height,caption)
{
	if (caption == null) {
		caption = " "
	}
	width_str = width + 40
	height_str = height + 120
  	newWindow = window.open('',name,'left=0,top=0,width='+width_str+',height='+height_str+',toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no')
	if (newWindow != null && newWindow.opener == null)
		newWindow.opener = window;
		newWindow.document.write("<html><head><title>Image View</title>\n");
		//newWindow.document.write("</head><body>\n");
		newWindow.document.write("</head><body onload='resizeTo(document.images[0].width + 40,document.images[0].height + 160);moveTo((screen.width - (document.images[0].width + 40)) / 2, (screen.height - (document.images[0].height + 160)) / 2)'>\n");
		//newWindow.document.write("</head><body onload='resizeTo(document.images[0].width + 40,document.images[0].height + 130);'>\n");
		newWindow.document.write("<div align=center><Table border=0 cellpadding=0  cellspacing=0>\n");
		newWindow.document.write("<tr><td align=left>")
		newWindow.document.write("<img src='http://221.145.178.198/bch/L_image/"+url+"'><p align=center>");
		//newWindow.document.write("<input type=button value='Zoom In' onClick='javascript:ZoomIn()' id=button1 name=button1 style='font-family:Arial Black; font-size:9pt; color:rgb(93,93,93); background-color:gainsboro; border-width:1px; border-style:solid;'>&nbsp;\n");
		//newWindow.document.write("<input type=button value='Zoom Out' onClick='javascript:ZoomOut()' id=button2 name=button2 style='font-family:Arial Black; font-size:9pt; color:rgb(93,93,93); background-color:gainsboro; border-width:1px; border-style:solid;'>&nbsp;\n");
		newWindow.document.write("<p align=center ; style='font-family:±¼¸²; font-size:9pt; color:#333333;font-weight=bold;'>"+caption+"<p align=center ; style='font-family:±¼¸²; font-size:9pt; color:#333333;'>");
		newWindow.document.write("<input type=button value='´Ý±â' onClick='javascript:self.close()' id=button3 name=button3 style='font-family:Arial Black; font-size:9pt; color:rgb(93,93,93); background-color:gainsboro; border-width:1px; border-style:solid;'>\n");
		newWindow.document.write("</td></tr>")
		newWindow.document.write("</table></div></body></html>");
		newWindow.document.close()
}


//µ¿¿µ»óº¸±â


function privacy(){
    window.open('pop/privacy.jsp','privacy','resizable=no,scrollbars=yes, width=620,height=500'); 
}


function yakwan(){
    window.open('pop/yakwan.jsp','yakwan','resizable=no,scrollbars=yes, width=620,height=500'); 
}


function copyright(){
    window.open('pop/copyright.jsp','copyright','resizable=no,scrollbars=yes, width=620,height=500'); 
}

function hunjang(){  window.open('/pop/hunjang.jsp','hunjang','resizable=no,scrollbars=yes, width=604,height=500'); }
function law(){  window.open('/pop/law.jsp','law','resizable=no,scrollbars=yes, width=570,height=380'); }