function sbar (st,color)
{
    st.style.backgroundColor = color;
}
function cbar (st)
{
    st.style.backgroundColor = '';
}

function infoWin(id)
{
    window.open('/kb/info.php?id='+id,'','width=600, height=480, resize=no, scrollbars=yes');
}
function mailWin(id)
{
    window.open('/kb/mail.php?id='+id,'','width=500, height=250, resize=no, scrollbars=yes');
}
function mailWin2(receiver)
{
    
    window.open('/kb/mail.php?receiver='+receiver,'','width=500, height=250, resize=no, scrollbars=yes');
}
function clearField(field){
    if (field.value == field.defaultValue) {
        field.value = "";
    }
}
function checkField(field){
    if (field.value == "") {
        field.value = field.defaultValue;
    }
}
function ImgView(imgsrc,title)
{
    new_window = window.open("/kb/preview.php?img="+imgsrc+"&title="+title,"displayWindow","width=120,height=120, resize=no, scrollbars=yes");
}

function img_check(main_table_width)
{
    
    if(document.all.target_resize) {
        if(document.all.target_resize.width > main_table_width) {
            document.all.target_resize.width = main_table_width;
        }
    }
    
}

function FileBox() {
    // window.open("filebox.php","filebox","width=300,height=300, resize=no, scrollbars=yes");
    writes.filebox.value="ÆÄÀÏÃ¢°í ±â´ÉÀº ¾ÆÁ÷ Áö¿øÇÏÁö ¾Ê½À´Ï´Ù.";
}

