function Draw_flexfileupload(action, code){ var str = " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; str += " "; document.write(str); } function menutip1(disply ,val_num, val_pwd) { var textstr; // var intextstr; var disply; var delmsg1 = document.getElementById("delmsg1"); delmsg1.style.display="block"; textstr = "
"; textstr += "
"; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += ""; textstr += "
비밀번호
확인 취소
"; textstr += "
"; delmsg1.innerHTML=textstr; if(disply=='visible'){ delmsg1.style.visibility='visible'; }else{ delmsg1.style.visibility='hidden'; } /* var _tmpx = event.clientX + parseInt(delmsg1.offsetWidth ); var _tmpy = event.clientY + parseInt(delmsg1.offsetHeight ); var _marginx = document.body.clientWidth - _tmpx; var _marginy = document.body.clientHeight - _tmpy ; if(_marginx < 0) _tmpx = event.clientX + document.documentElement.scrollLeft + _marginx ; else _tmpx = event.clientX + document.documentElement.scrollLeft ; if(_marginy < 0) _tmpy = event.clientY + document.documentElement.scrollTop + _marginy +10; else _tmpy = event.clientY + document.documentElement.scrollTop ; delmsg1.style.posLeft=_tmpx - 15; delmsg1.style.posTop=_tmpy - 10; */ //var _marginx = document.body.clientWidth; //var _marginy = document.body.clientHeight; var _marginx = document.body.clientWidth; var _marginy = 500; delmsg1.style.posLeft = ( parseInt(_marginx - 120)/2); delmsg1.style.posTop = ( parseInt(_marginy - 55)/2); location.href="#content"; document.delfrm1.p_pwd.focus(); } function hidetip1() { document.getElementById("delmsg1").style.visibility='hidden'; } function delok1(){ document.delfrm1.action= "/board/real_delete.asp"; document.delfrm1.method= "post"; document.delfrm1.submit(); document.delfrm1.btndel.disabled = true; return; } //이미지관련 function fwrapper(func, args) { this.invoke = function(){ func.apply(null, args); } } function getAvailSize(w, h, mw, mh) { if(w > mw || h > mh) { //width 기준 축소 if(h / w > mh / mw) { return [(mh * w) / h, mh]; } //height 기준 축소 else { return [mw, (mw * h) / w]; } } else return [w, h]; } function resizeImgEx(img, maxw, maxh) { if(img.width) { var avail = getAvailSize(img.width, img.height, maxw, maxh); if(avail[0] != 0 && avail[1] != 0 && !isNaN(avail[0]) && !isNaN(avail[1])) { img.width = avail[0]; img.height = avail[1]; } else { img.width = maxw; img.height = maxh; } } else { window.setTimeout(new fwrapper(resizeImgEx, [img, maxw, maxh]).invoke, 10); } } function resizeImg(img, max) { if(max){} else{max = 700;} if(img.width) { if(img.width > img.height) { if(img.width > max) img.width = max; } else { if(img.height > max) img.height = max; } } else { window.setTimeout(new fwrapper(resizeImg, [img, max]).invoke, 10); } } function saveok(){ var frm = document.getElementById("myform"); if (frm.name.value==""){ alert("작성자를 입력하세요."); frm.name.focus(); return; } if (frm.subject.value==""){ alert("제목을 입력하세요."); frm.subject.focus(); return; } frm.content.value = myeditor.outputBodyHTML(); if (frm.pwd.value==""){ alert("비밀번호를 입력하세요."); frm.pwd.focus(); return; } frm.submit(); } function updateok(){ var frm = document.getElementById("myform"); if (frm.tbl.value=="" || frm.idx.value==""){ alert("정상적인 접근이 아닙니다."); history.back(-1); return false; } if (frm.name.value==""){ alert("작성자를 입력하세요."); frm.name.focus(); return false; } if (frm.subject.value==""){ alert("제목을 입력하세요."); frm.subject.focus(); return false; } frm.content.value = myeditor.outputBodyHTML(); if (frm.pwd.value==""){ alert("비밀번호를 입력하세요."); frm.pwd.focus(); return false; } //frm.action = "/wz_board/real_modify_ok.html"; //frm.method = "post"; frm.submit(); } function appendok(){ var frm = document.getElementById("myform"); if (frm.tbl.value=="" || frm.idx.value==""){ alert("정상적인 접근이 아닙니다."); history.back(-1); return false; } if (frm.pwd.value==""){ alert("비밀번호를 입력하세요."); frm.pwd.focus(); return false; } frm.action = "/wz_board/real_append_ok.html"; frm.method = "post"; frm.submit(); } function replyok(){ var frm = document.getElementById("myform"); if(frm.tbl.value=="" || frm.idx.value=="" || frm.redepth.value=="" || frm.reidx.value=="" ){ alert("정상적인 접근이 아닙니다."); history.back(-1); return false; } if (frm.name.value==""){ alert("작성자를 입력하세요."); frm.name.focus(); return false; } if (frm.subject.value==""){ alert("제목을 입력하세요."); frm.subject.focus(); return false; } frm.content.value = myeditor.outputBodyHTML(); if (frm.pwd.value==""){ alert("비밀번호를 입력하세요."); frm.pwd.focus(); return false; } frm.action = "/wz_board/real_reply_ok.html"; frm.method = "post"; frm.submit(); } function img_open(imgpath, imgsize1, imgsize2){ var imgurl = imgpath; var imgoption = "'resizable=yes,scrollbars=no,width=" + imgsize1 + ",height=" + imgsize2; window.open(imgurl,"img",imgoption); } //이미지추가 function addcontent(val){ if( val != "" ){ var oEditor = FCKeditorAPI.GetInstance("content"); //수정 //oEditor.InsertHtml( " " ); oEditor.InsertHtml( "
" ); }else{ alert("존재하지 않는 이미지입니다."); } } function msg_alert(val1, val2, val3){ if(confirm( val1 )){ location.href= val2 +"?ref="+ val3; }else{ return; } } function privacyok(){ var frm = document.getElementById("secform"); if(frm.sec.value == "" ){ alert("비밀번호를 입력하세요."); frm.sec.focus(); return; } frm.method = "post"; frm.submit(); } function srch(){ var inputId = document.getElementById("srchfrm"); if (inputId.s.value=="") { alert("구분을 선택하세요."); inputId.s.focus(); return false; } //if (inputId.k.value.length < 2) //{ // alert("키워드를 입력하세요."); // inputId.k.focus(); // return false; //} }