function open_club(lclubid, clubsrl, aseq)/*{{{*/
{
top.location.href = 'http://cafe.sayclub.com/cb_rout.nwz?lclubid='+lclubid+'&clubsrl='+clubsrl+'&aseq='+aseq;
}/*}}}*/
function prepare_mood_change(aseq)/*{{{*/
{
var face = document.getElementById("div_face_"+aseq);
face.style.display= "block";
//face.style.top = window.event.y - 20;
//face.style.left = window.event.x + 10;
document.all.v_aseq.value = aseq;
}/*}}}*/
function change_mood(mood)/*{{{*/
{
var aseq = document.all.v_aseq.value;
var face = document.getElementById("div_face_"+aseq);
var td_face = document.getElementById("td_face_" + aseq);
var v_fo_tail = document.getElementById("fo_tail_"+aseq);
face.style.display = "none";
v_fo_tail.mood.value = mood;
td_face.innerHTML = icon[mood];
}/*}}}*/
function deleteComment(clubsrl, aseq)/*{{{*/
{
if(confirm('정말 삭제하시겠습니까'))
{
bd_virtual.location.href = 'http://boardw.sayclub.com/board/cb_comment_delete.nwz?clubsrl='+clubsrl+'&aseq='+aseq;
}
}/*}}}*/
function modifyComment(clubsrl, aseq)/*{{{*/
{
window.open('http://boardw.sayclub.com/board/cb_modify_comment.nwz?clubsrl='+clubsrl+'&aseq='+aseq, 'modifyComment', "width=430,height=205, toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no");
}/*}}}*/
function pump(aseq)/*{{{*/
{
window.open("http://cafe.sayclub.com/cb_pump.nwz?org_lclubid=nak&to=club&org_clubsrl=6559566&org_aseq=" + aseq, "pump_pop", "width=430, height=330, toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no, resizable=no");
}/*}}}*/
function copy(aseq)/*{{{*/
{
window.open("http://cafe.sayclub.com/cb_copy.nwz?org_lclubid=nak&to=club&org_clubsrl=6559566&org_bsrl=10010&org_aseq=" + aseq, "pump_pop", "width=430, height=330, toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no, resizable=no");
}/*}}}*/
/*{{{*/
var sec = 60000;
var stat = true;
function check_time() {
clearTimeout(tid);
stat = true;
}/*}}}*/
function post_tail(aseq)/*{{{*/
{
var v_fo_tail = document.getElementById("fo_tail_"+aseq);
if(v_fo_tail.tail.value.length == 0)
{
alert("답글을 입력해주세요");
return;
}
if(v_fo_tail.tail.value.length >500)
{
alert("답글은 500자까지 입력가능합니다.");
return;
}
if(!stat) {
alert("60초에 한 개만 등록하실 수 있습니다.");
clearTimeout(tid);
tid = window.setTimeout("check_time();", sec);
stat = false;
return;
}
tid = window.setTimeout("check_time();", sec);
stat = false;
v_fo_tail.submit();
}/*}}}*/
function delete_tail(aseq, tsrl)/*{{{*/
{
var v_fo_tail = document.getElementById("fo_tail_"+aseq);
if(confirm('정말 삭제하시겠습니까?')) {
v_fo_tail.tsrl.value = tsrl;
v_fo_tail.act.value = 'delete';
v_fo_tail.submit();
}
}/*}}}*/
function open_modify_popup(id, lclubid, clubsrl, aseq, tsrl)/*{{{*/
{
window.open("http://cafe.sayclub.com/cb_modify_tail_pop.nwz?lclubid=" + lclubid + "&clubsrl=" + clubsrl + "&aseq=" + aseq + "&tsrl=" + tsrl +"&id="+ id, "modify_pop", "width=500, height=160, toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no, resizable=no");
}/*}}}*/
function accuse(msrl, aseq, wmsrl)/*{{{*/
{
var isLogged = true;
if(wmsrl == 0)
alert('세이클럽의 ID확인이 되지 않아 신고할 수 없습니다.');
else if(!isLogged)
parent.open_login_page('','10010', aseq);
else
{
bd_virtual.location.href = "cb_board_police.nwz?clubsrl="+clubsrl+"&aseq="+aseq;
}
}/*}}}*/
function view_photo(img_url)/*{{{*/
{
window.open("http://hompy.sayclub.com/board/photo_view.nwz?img_url=" + img_url, "photo", "toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=yes, resizable=no");
}
/*}}}*/
function move(clubsrl, bsrl, aseq)/*{{{*/
{
window.open("./cb_article_move.nwz?lclubid=nak&act=move&clubsrl="+clubsrl+"&bsrl="+bsrl+"&aseq="+aseq, "move", "width=348,height=195, toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no");
}/*}}}*/
function cfm_delete()/*{{{*/
{
if(cfm = confirm('게시물을 삭제하시겠습니까?'))
{
location.href ="http://boardw.sayclub.com/cafe/cb_board.nwz?tbtype=&act=delete&clubsrl=6559566&bsrl=10010&aseq=39901440&page=6"; }
}/*}}}*/
function viewTail()/*{{{*/
{
document.all.tail_div.style.display = 'block';
document.all.pump_div.style.display = 'none';
}/*}}}*/
function viewPump()/*{{{*/
{
if(document.all.pump_div.innerHTML == '')
{
bd_virtual.location.href = "cb_pump_list.nwz?clubsrl=6559566&aseq=39901440&id=pump_div";
}
document.all.tail_div.style.display = 'none';
document.all.pump_div.style.display = 'block';
}/*}}}*/
function openConfig()/*{{{*/
{
window.open("http://cafe.sayclub.com/cb_board_config.nwz?csrl=6559566&bsrl=10010", "config_pop", "width=445, height=450, toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=no, resizable=no");
}/*}}}*/