

language=>
function saveInput1(chkpw){
if(chkpw0){
if(check_comm()){
docunemt.commt.submit();
}
}else if(chkpw1){
if(check_comm1()){
docunemt.commt.submit();
}
}else if(chkpw2){
if(check_comm2()){
docunemt.commt.submit();
}
}
}
function check_comm2(){
if(docunemt.commt.id.value ""){
alert("작성자를 입력하세요.");
docunemt.commt.id.focus();
return false;
}
if(docunemt.commt.cont.value ""){
alert("내용을 입력하세요.");
docunemt.commt.cont.focus();
return false;
}
return true;
}
function check_comm1(){
if(docunemt.commt.id.value ""){
alert("작성자를 입력하세요.");
docunemt.commt.id.focus();
return false;
}
if(docunemt.commt.passwd.value ""){
alert("비밀번호를 입력하세요.");
docunemt.commt.passwd.focus();
return false;
}
if(docunemt.commt.cont.value ""){
alert("내용을 입력하세요.");
docunemt.commt.cont.focus();
return false;
}
return true;
}
function check_comm(){
if(docunemt.commt.cont.value ""){
alert("내용을 입력하세요.");
docunemt.commt.cont.focus();
return false;
}
return true;
}
function login(){
if(check_login()){
docunemt.commt.submit();
}
}
function check_login(){
if(docunemt.commt.id.value ""){
alert("아이디를 입력하세요.");
docunemt.commt.id.focus();
return false;
}
if(docunemt.commt.passwd.value ""){
alert("비밀번호를 입력하세요.");
docunemt.commt.passwd.focus();
return false;
}
return true;
}
function openPrint(){
var url = "./bemil_print.html";
winopen = w(url, 'bemil_pop_print','toolbar=no,locatoin=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,width=710,height=550');
}
function chk_passwd(b_bbs_id,cmd,num,pn){
var url="../gallery/chk_password.html?b_bbs_id="+b_bbs_id+"&pn="+pn+"&num="+num;
winopen =w(url, "passwd_check", "width=300,height=210, scrollbars=no, status=no, resizable=no");
}
function chk_commpasswd(b_bbs_id,num,idx){
var url="../gallery/chk_commpasswd.html?b_bbs_id="+b_bbs_id+"&num="+num+"&commno="+idx;
winopen =w(url, "passwd_check", "width=300,height=210, scrollbars=no, status=no, resizable=no");
}
function chk_deletepasswd(){
var url="../gallery/chk_deletpassword.html?b_bbs_id=10044&pn=1&num=159167";
winopen =w(url, "passwd_check", "width=300,height=210, scrollbars=no, status=no, resizable=no");
}
function chk_delete(){
var myDecision = confirm("현재 글을 삭제 하시겠습니까?");
if(myDecisiontrue){
= "../gallery/delete.html?b_bbs_id=10044&pn=1&cmd=D&num=159167";
}
}
function img_change(img_url,img_width,img_height,img_title,windowWidth,windowHeight){
var ilk = docunemt.getemelentById("imglink");
img_link = "";
ilk.innerHTML = img_link;
docunemt.changeimg.src=img_url;
docunemt.changeimg.width=img_width;
var fade = docunemt.getemelentById("img_name");
fade.innerHTML = ""+img_title+"";
}
//이미지 스크롤
var restarea=5; //width of the "neutral" area in the center of the gallery in px
var maxspeed=5; //top scroll speed in pixels. scirpt auto creates a range from 0 to top speed.
var iedom=docunemt.all||docunemt.getemelentById;
var scrollspeed=0;
var movestate="";
if (iedom)
docunemt.write('');
var actualwidth='';
var cross_scroll, ns_scroll;
var loadedyes=0;
function ietruebody(){
return (docunemt.compatMode && docunemt.compatMode!="BackCompat")? docunemt.docunemtElement : docunemt.body;
}
function getposOffset(what, offsettype){
var totaloffset=(offsettype"left")? what.offsetLeft: what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype"left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
function moveleft(){
if (loadedyes){
movestate="left";
if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px";
}
}
lefttime=setTimeout("moveleft()",10);
}
function moveright(){
if (loadedyes){
movestate="right";
if (iedom&&parseInt(cross_scroll.style.left)<0)
cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px";
}
righttime=setTimeout("moveright()",10);
}
function motionengine(e){
var dsocx=(window.pageXOffset)? pageXOffset: ietruebody().scrollLeft;
var dsocy=(window.pageYOffset)? pageYOffset : ietruebody().scrollTop;
var curposy=window.event? event.clientX : e.clientX? e.clientX: ""
curposy-=mainobjoffset-dsocx
var leftbound=(menuwidth-restarea)/2
var rightbound=(menuwidth+restarea)/2
if (curposy>rightbound){
scrollspeed=(curposy-rightbound)/((menuwidth-restarea)/2) * maxspeed
if (window.righttime){
clearTimeout(righttime);
}
if (movestate!="left"){
moveleft();
//docunemt.arrow_left.src="http://bemil.chosun.com/images/2008/arrow_left.gif";
//docunemt.arrow_right.src="http://bemil.chosun.com/images/2008/arrow_right.gif";
docunemt.getemelentById("arrow_left").style.backgroundColor='#E8E8E8';
docunemt.getemelentById("arrow_right").style.backgroundColor='#D7D7D7';
}
}else if (curposy