function xbbs_div_show(divname) { document.getElementById(divname).style.display = ""; } function xbbs_div_hide(divname) { document.getElementById(divname).style.display = "none"; } //list 관련 function xbbs_list_show() { xbbs_div_show('xbbslist') ; } function xbbs_list_hide() { xbbs_div_hide('xbbslist') ; } function xbbs_list_load() { var params = form_param( document.xbbsform) ; setDivText('xbbslist' , params , "POST" , "/xbbs//list.jsp" , false , true) ; xbbs_list_show() ; } function xbbs_list_go(pnum) { // pnum 으로 이동한다. document.xbbsform.pnum.value = pnum ; // 그 페이지를 설정하고. xbbs_list_load() ; } function xbbs_read_show() { xbbs_div_show('xbbsread') ; } function xbbs_read_hide() { xbbs_div_hide('xbbsread') ; } function xbbs_read_load( bbsseq) { document.xbbsform.BBSSEQ.value = bbsseq ; var params = form_param( document.xbbsform) ; setDivText('xbbsread' , params , "POST" , "/xbbs//read.jsp" , false , true) ; xbbs_read_show() ; scrollTo(0,0); } function xbbs_write_show() { xbbs_div_show('xbbswrite') ; } function xbbs_write_hide() { xbbs_div_hide('xbbswrite') ; } function xbbs_write_load() { /* var params = form_param( document.xbbsform) ; setDivText('xbbswrite' , params , "POST" , "/xbbs//write.jsp" , false , true) ; */ xbbs_list_hide() ; xbbs_read_hide() ; xbbs_write_show() ; /* var sBasePath = "./FCKeditor/" ; oFCKeditor = new FCKeditor( 'CONTENT','100%' , '600' ) ; oFCKeditor.BasePath = sBasePath ; oFCKeditor.ReplaceTextarea() ; //oFCKeditor.setHeight('600') ; //xbbs_write_iframe */ //xbbs_write_iframe.location.href="write.jsp?BBSID=test" ; var theForm = document.xbbsform; theForm.BBSSEQ.value = "" ; theForm.MODE.value = "new" ; theForm.action="/xbbs//write.jsp" ; theForm.target="xbbs_write_iframe" ; theForm.submit() ; theForm.action="javascript:void(0)"; } function xbbs_write_edit(bbsseq) { xbbs_list_hide() ; xbbs_read_hide() ; xbbs_write_show() ; var theForm = document.xbbsform; theForm.BBSSEQ.value = bbsseq ; theForm.MODE.value = "edit" ; theForm.action="/xbbs//write.jsp" ; theForm.target="xbbs_write_iframe" ; theForm.submit() ; theForm.action="javascript:void(0)"; } function xbbs_write_reply(bbsseq) { xbbs_list_hide() ; xbbs_read_hide() ; xbbs_write_show() ; var theForm = document.xbbsform; // theForm.BBSSEQ.value = ''; theForm.BBSSEQ.value = bbsseq; //theForm.RSEQ.value = bbsseq ; theForm.MODE.value = "reply" ; theForm.action="/xbbs//write.jsp" ; theForm.target="xbbs_write_iframe" ; theForm.submit() ; theForm.action="javascript:void(0)"; } function xbbs_write_submit() { /* var params = form_param( document.xbbswrite_form) ; alert (" 값 : " + params ) ; setDivText('xbbsdebug' , params , "POST" , "write_submit.jsp" , false , true) ; */ var theForm = xbbs_write_iframe.xbbswrite_form ; theForm.action="/xbbs//write_submit.jsp" ; theForm.submit() ; } function xbbs_write_submit_ok() { } function xbbs_delete(bbsseq) { if ( confirm('정말 삭제하시겠습니까?') ) { } else { return ; } document.xbbsform.BBSSEQ.value = bbsseq ; var params = form_param( document.xbbsform) ; setDivText('xbbsread' , params , "POST" , "/xbbs//delete.jsp" , false , true) ; //xbbs_read_show() ; xbbs_read_hide() ; xbbs_list_load() ; scrollTo(0,0); } function xbbs_edit_delete(bbsseq) { if ( confirm('정말 삭제하시겠습니까?') ) { } else { return ; } parent.document.xbbsform.BBSSEQ.value = bbsseq ; var params = parent.form_param( document.xbbsform) ; parent.setDivText('xbbsread' , params , "POST" , "/xbbs//delete.jsp" , false , true) ; //xbbs_read_show() ; xbbs_read_hide() ; xbbs_write_hide() ; xbbs_list_load() ; scrollTo(0,0); } //패스워드 받기 function xbbs_delete_pwd(bbsseq) { document.xbbsform.BBSSEQ.value = bbsseq ; document.xbbsform.cmd.value = "delete" ; setDivText('xbbsread' , '' , 'POST' , "/xbbs//skin/common/password.jsp" , false , true ) ; } function xbbs_write_edit_pwd(bbsseq) { document.xbbsform.BBSSEQ.value = bbsseq ; document.xbbsform.cmd.value = "edit" ; setDivText('xbbsread' , '' , 'POST' , "/xbbs//skin/common/password.jsp" , false , true ) ; } function xbbs_pwd_action(pwd ) { document.xbbsform.RPWD.value = pwd ; bbsseq = document.xbbsform.BBSSEQ.value ; if ( document.xbbsform.cmd.value == "delete") { xbbs_delete(bbsseq) ; } if ( document.xbbsform.cmd.value == "edit") { xbbs_write_edit(bbsseq) ; } } function view_image(image){ divmainpic.style.display=""; try { mainmov.stop() ; } catch (e) {} divmov.style.display="none"; mainpic.filters[0].Apply(); mainpic.src=image; mainpic.filters[0].Play(); } function view_mov(){ divmainpic.style.display="none"; divmov.style.display=""; try { mainmov.play() ; } catch (e) {} } function popup_image(image){ window.open("/xbbs/popup_full_img.jsp?src="+escape(image) , "_pic" , "width=100,height=100,toolbar=0,scrollbars=0,status=0,resizable=1") ; }