// JavaScript Document
<!-- ¸®Æ÷Æ®2.0 ·Î±×ºÐ¼®ÄÚµå ½ÃÀÛ -->
var JsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://");
var uname = escape("ÇÑ±¹¼ø±³º¹ÀÚ¼ö³àÈ¸");
document.write(unescape("%3Cscript id='log_script' src='" + JsHost + "sbkm.weblog.cafe24.com/weblog.js?uid=sbkm&uname="+uname+"' type='text/javascript'%3E%3C/script%3E"));
<!-- ¸®Æ÷Æ®2.0  ·Î±×ºÐ¼®ÄÚµå ¿Ï·á -->

function list(gubun, page) {
  location.href = '/board/index.asp?g_id=' + gubun +'&PageNo=' + page;
}

function read(gubun, idx, page) {
  location.href = '/board/read.asp?g_id=' + gubun  + '&c_id=' + idx + '&PageNo=' + page
}

function sr_read(gubun, idx, page) {
  location.href = '/sister/board/read.asp?g_id=' + gubun  + '&c_id=' + idx + '&PageNo=' + page
}

function search() {
  if (document.search.word.value == "") {
    alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!');
    document.search.word.focus();
    return;
  }    
  document.search.submit();
  return true;
}

function search_list(gubun,search,word,page) {
  location.href = '/board/index.asp?g_id=' + gubun + '&s_id=' + search + '&word=' + word + '&PageNo=' + page;
}

function search_read(gubun,idx,search,word,page) {
  location.href = '/board/read.asp?g_id=' + gubun  + '&c_id=' + idx + '&s_id=' + search + '&word=' + word + '&PageNo=' + page;
}

function send_reply() {
  document.board.action = 'write.asp';
  document.board.submit();
}

function n_list(n_id, page) {
  location.href = '/notice/index.asp?n_id=' + n_id + "&PageNo=" + page;
}

function p_list(p_id, page) {
  location.href = '/pray/index.asp?p_id=' + p_id + "&PageNo=" + page;
}

function p_read(p_id, idx, subject, page) {
  var x_pos;
  var y_pos;
  var Url;
  
  x_pos = (window.screen.width / 2) - 170;
  y_pos = (window.screen.height / 2) - 105;
  Url = '/pray/read_chk.asp?p_id=' + p_id + '&c_id=' + idx + '&subject=' + subject + '&PageNo=' + page;
  var NewWindow96 = window.open(Url,'NewWindow96','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=330, height=200');
  NewWindow96.moveTo(x_pos, y_pos);
}

function new_pray(p_id, page) {
  location.href = '/pray/write.asp?p_id=' + p_id + "&PageNo=" + page;
}

function View(num) {
  var x_pos;
  var y_pos;
  var Url;
  
  x_pos = (window.screen.width / 2) - 175;
  y_pos = (window.screen.height / 2) - 200;
  Url = '/notice/popup.asp?c_id=' + num;
  var NoticeWin = window.open(Url,'NoticeWin','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=350, height=400');
  NoticeWin.moveTo(x_pos,y_pos);
}
/*
function photo(album) {
  location.href = "/photo/index.asp?theme=" + album;
}
*/
function AutoResize(MaxWidth) {
  for(var i = 0; i < document.images.length; i++) {
    if(document.images[i].width > MaxWidth) {
      document.images[i].width = MaxWidth;
      document.images[i].height -= document.images[i].height * (document.images[i].width-MaxWidth) / document.images[i].width;
    }
  }
}

function click() {
if ((event.button == 2) || (event.button == 3) || (event.keyCode == 93)) {
  alert('¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ°Àº »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.');
  }
else {
  if((event.ctrlKey) && (event.keyCode == 67)) {
    alert('³»¿ëÀ» ¹«´Üº¹Á¦ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.');
    }
  }
}
document.onmousedown=click
document.onkeydown=click

/*
function SendMail(email) {
  var x_pos;
  var y_pos;
  var Url;
  
  x_pos = (window.screen.width / 2) - 275;
  y_pos = (window.screen.height / 2) - 200;
  Url = '/sendmail/sendmail.asp?to_email=' + email;
  var NewWindow = window.open(Url,'NewWindow','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=550, height=400');
  NewWindow.moveTo(x_pos,y_pos);
}
*/
function room_move(f_id) {
  if (f_id != "") {
    if (f_id == 1) {
	  location.href = "/sister/room_main.asp";
	} else {
	  location.href = "/family/room_main.asp?f_id=" + f_id;
	}
  }		 
}

function cafe_link(Url) {
  var NewWindow78 = window.open(Url, 'NewWindow','toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=1024, height=768');
}