jQuery(function($){ var file_leng = 1; $("#addfile").click(function() { file_leng = document.getElementsByName("upload[]").length; var file_length = document.getElementById("file_length").value; if(file_length!=0 && file_leng >= file_length) { alert('You can not add any more.'); }else { $(".file_Add_div").append("
  • "); file_leng++; } }); $("#removefile").click(function() { file_leng = document.getElementsByName("upload[]").length; var file_length = document.getElementById("file_length").value; if(file_leng==1) { return; }else { $(".file_Add_div li").last().remove(); file_leng--; } }); $(".re_list_rows").mouseover(function() { var thisid = $(this).attr("id"); var cbid = thisid.split("_"); document.getElementById("re_del_btn_"+cbid[1]).style.display=""; }); $(".re_list_rows").mouseout(function() { var thisid = $(this).attr("id"); var cbid = thisid.split("_"); document.getElementById("re_del_btn_"+cbid[1]).style.display="none"; }); }); function del_chk(fn,chkn) { var f=document.forms[fn]; var chk=document.getElementsByName(chkn); var len = chk.length; var n=0; var i; for(i=1;i'); //Add the fade layer to bottom of the body tag. $('#bbs_fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer } function del_form_fadeout() { document.re_form2.CBID.value=""; document.re_form2.CPasswd.value=''; $('#bbs_fade, #re_password_form').fadeOut(); } function chk_re_form2(form) { if(form.CBID.value=="") { alert('Wrong access!'); return false; }else if(form.mode.value=="re_del" && form.CPasswd.value=='') { alert('Please enter a password'); form.CPasswd.focus(); return false; }else { return true; } } function del_mine(cbid) { document.re_form2.mode.value="re_del_ok"; document.re_form2.CBID.value=cbid; if(confirm('Are you sure you want to delete?')) { document.re_form2.submit(); } } /***********************************************/ /* 리스트 모두 체크 /***********************************************/ function bbs_check_all(fn,chkn) { f=document.forms[fn]; chk=document.getElementsByName(chkn); len = chk.length; if (chk[0].checked==true){ for (var i=1; i < len; i++){ chk[i].checked=true; } }else{ for (var i=1; i