<!--
  function open_send_print() {

    fm = document.fmlist;
    fme = fm.elements;

    group = fm.group.value;
    board = fm.board.value;

    found = false;

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].checked == true) {
        found = true; break;
      }
    }

    if(!found) {
      alert('Ãâ·ÂÇÒ °Ô½Ã¹°À» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
      return;
    }
    
    newwin = window.open('send_print.php', 'sendprint', 'width=690,height=600,scrollbars=yes');

    newwin.document.write('<form name=printid action=send_print.php method=post>');
    newwin.document.write('<input type=\"hidden\" name=\"group\" value=\"' + group + '\">');
    newwin.document.write('<input type=\"hidden\" name=\"board\" value=\"' + board + '\">');

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].name == 'ids[]' &&
         fme[i].checked == true) {
        newwin.document.write('<input type=hidden name=\"ids[]\" value=\"' + fme[i].value + '\">');
      }
    }

    newwin.document.write('</form>');

    newwin.document.printid.submit();

    return;
  }

  function open_send_mail() {

    fm = document.fmlist;
    fme = fm.elements;

    group = fm.group.value;
    board = fm.board.value;

    found = false;

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].checked == true) {
        found = true; break;
      }
    }

    if(!found) {
      alert('¸ÞÀÏ·Î ¹ß¼ÛÇÒ °Ô½Ã¹°À» ¸ñ·Ï¿¡¼­ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
      return;
    }

    newwin = window.open('_send_mail.php', 'sendmail', 'width=618,height=600,scrollbars=yes');

    newwin.document.write('<form name=printid action=send_mail.php method=post>');
    newwin.document.write('<input type=\"hidden\" name=\"group\" value=\"' + group + '\">');
    newwin.document.write('<input type=\"hidden\" name=\"board\" value=\"' + board + '\">');

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].name == 'ids[]' &&
         fme[i].checked == true) {
        newwin.document.write('<input type=hidden name=\"ids[]\" value=\"' + fme[i].value + '\">');
      }
    }

    newwin.document.write('</form>');

    newwin.document.printid.submit();

    return;
  }

  function open_notify() {
    fme = document.fmlist.elements;

    found = false;

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].checked == true) {
        found = true; break;
      }
    }

    if(!found) {
      alert('¾Ë¸²À¸·Î ¼³Á¤ÇÒ °Ô½Ã¹°À» ¸ñ·Ï¿¡¼­ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.');
      return;
    }

    window.open('notify.php', 'notifyarticles', 'width=345,height=190');

    return;
  }

  function multiread() {
    alert('¼±ÅÃÇÑ °Ô½Ã¹°ÀÇ ³»¿ëÀ» È®ÀÎÇÕ´Ï´Ù.');
  }

  function open_help() {
    url = 'help.php?#b';

    window.open(url, 'bbshelp', 'width=616,height=370,scrollbars=yes');

    return;
  }

  function checkall() {
    var fme = document.fmlist.elements;

    var checkval = true;

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].checked == true) {
        checkval = false; break;
      }
    }

    for(i = 0; i < fme.length; i++) {
      if(fme[i].type == 'checkbox') {
        fme[i].checked = checkval;
      }
    }
  }

  function del() {
     
    var fme = document.fmlist.elements;
    j = 0;
   
    for(i = 0; i<fme.length; i++) {
      if(fme[i].type == 'checkbox' && fme[i].checked == true) {
        j = 1; break;
      }
    }

    if(j == 1) {
      if(!window.confirm("¼±ÅÃÇÏ½Å °Ô½Ã¹°À» Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")) {
        return;
      }
    } else {
      window.alert('°Ô½Ã¹°À» ¼±ÅÂÇØ ÁÖ½Ê½Ã¿ä.')
      return;
    }

    document.fmlist.action = '_delete.php';
    document.fmlist.submit();

    return;
  }

  function gotoPage() {
    fm = document.fmsearch; 

    if(fm.curr_pg.value == fm.select_pg.value) {
      return;
    }

    url = 'list.php';
    url += '?group=' + fm.group.value;
    url += '&board=' + fm.board.value;
    url += '&curr_pg=' + fm.select_pg.value; 
    url += '&condition=' + fm.condition.value; 

    document.location.href = url;
   
  }

  function gotoBoard() {
    fm = document.fmlist; 

    bi = fm.select_board.value.split(':');

    if(fm.board.value == bi[0]) {
      return;
    }

    if(bi[1] == '9') {
      url = 'glist.php';
    } else {
      url = 'list.php';
    }

    url += '?group=' + fm.group.value + '&board=' + bi[0];

    document.location.href = url;
  }

  function open_search() {
    fm = document.fmsearch;

    url = 'search.php';
    url += '?group=' + fm.group.value;
    url += '&board=' + fm.board.value;
    url += '&curr_pg' + fm.curr_pg.value;

    window.open(url, 'search', 'width=580,height=380');

    return;
  }

  function open_admin_login() {
    fm = document.fmlist;

    group = fm.group.value;
    board = fm.board.value;

    url = 'admin_login.php?group=' + group + '&board=' + board;

    window.open(url, 'adminlogin', 'width=500,height=260');

    return;
  }

  function open_admin() {
    fm = document.fmlist;

    group = fm.group.value;
    board = fm.board.value;

    url = 'admin/basic_option.php?group=' + group + '&board=' + board;
    window.open(url, 'admintool', 'width=818,height=750,scrollbars=yes,resizable=yes');

    return;
  }

  function OnOff(me) {

    var fm = document.fmsearch;

    var imgbw = document.bw;
    var imgbs = document.bs;
    var imgbc = document.bc;

    if(me == 'bw') {

      if(imgbw.src.indexOf('_off') != -1) {
        imgbw.src = imgbw.src.replace('_off', '_on');
        fm.bywriter.value = 1;
      } else {
        imgbw.src = imgbw.src.replace('_on', '_off');
        fm.bywriter.value = 0;
      }

    } else if(me == 'bs') {

      if(imgbs.src.indexOf('_off') != -1) {
        imgbs.src = imgbs.src.replace('_off', '_on');
        fm.bysubject.value = 1;
      } else {
        imgbs.src = imgbs.src.replace('_on', '_off');
        fm.bysubject.value = 0;
      }

    } else if(me == 'bc') {

      if(imgbc.src.indexOf('_off') != -1) {
        imgbc.src = imgbc.src.replace('_off', '_on');
        fm.bycontent.value = 1;
      } else {
        imgbc.src = imgbc.src.replace('_on', '_off');
        fm.bycontent.value = 0;
      }
    }

    return;
  }

  function open_contact() {
    group = document.forms[0].group.value;
    board = document.forms[0].board.value;

    url = 'mailtoadmin.php?group=' + group + '&board=' + board;

    window.open(url, 'mailtoadmin', 'width=609,height=500');

    return;
  }
//-->
