if(typeof COMMON_JS=="undefined"){var COMMON_JS=true,errmsg="",errfld;function check_field(a,b){if((a.value=trim(a.value))=="")error_field(a,b);else clear_field(a);return}function error_field(a,b){if(b!="")errmsg+=b+"\n";if(!errfld)errfld=a;a.style.background="#BDDEF7"}function clear_field(a){a.style.background="#FFFFFF"}function trim(a){var c="",b=to_pos=0;for(i=0;i<a.length;i++)if(a.charAt(i)==" ")continue;else{b=i;break}for(i=a.length;i>=0;i--)if(a.charAt(i-1)==" ")continue;else{to_pos=i;break}c=a.substring(b,to_pos);return c}function number_format(c){var f="",a="",d=3,e=",",b;len=c.length;mod=len%d;k=d-mod;for(b=0;b<c.length;b++){a=a+c.charAt(b);if(b<c.length-1){k++;if(k%d==0){a=a+e;k=0}}}return a}function popup_window(c,a,b){window.open(c,a,b)}function popup_formmail(a){opt="scrollbars=yes,width=417,height=385,top=10,left=20";popup_window(a,"wformmail",opt)}function no_comma(b){for(var c="",d=",",a=0;a<b.length;a++)if(b.charAt(a)!=d)c+=b.charAt(a);return c}function del(a){if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?"))document.location.href=a}function del_admin(a){var b=window.open(a,"delete","left=50, top=50, width=500, height=550, scrollbars=1")}function set_cookie(e,d,c,b){var a=new Date;a.setTime(a.getTime()+36e5*c);document.cookie=e+"="+escape(d)+"; path=/; expires="+a.toGMTString()+";";if(b)document.cookie+="domain="+b+";"}function get_cookie(e){for(var d=false,a,b,c=0,c=0;c<=document.cookie.length;c++){a=c;b=a+e.length;if(document.cookie.substring(a,b)==e){d=true;break}}if(d==true){a=b+1;b=document.cookie.indexOf(";",a);if(b<a)b=document.cookie.length;return document.cookie.substring(a,b)}return""}function delete_cookie(c){var a=new Date;a.setTime(a.getTime()-1);var b=get_cookie(c);if(b!="")document.cookie=c+"="+b+"; path=/; expires="+a.toGMTString()}function image_window(i){var e=",",g="  } \n",j="    return false; \n",f="  { \n",c=i.width,b=i.height,k=(screen.width-c)/2,l=(screen.height-b)/3;if(c>=screen.width){k=0;b=parseInt(c*(b/c))}if(b>=screen.height){l=0;c=parseInt(b*(c/b))}var a="<script language='JavaScript1.2'> \n";a+="<!-- \n";a+="var ie=document.all; \n";a+="var nn6=document.getElementById&&!document.all; \n";a+="var isdrag=false; \n";a+="var x,y; \n";a+="var dobj; \n";a+="function movemouse(e) \n";a+="{ \n";a+="  if (isdrag) \n";a+=f;a+="    dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x; \n";a+="    dobj.style.top  = nn6 ? ty + e.clientY - y : ty + event.clientY - y; \n";a+=j;a+=g;a+="} \n";a+="function selectmouse(e) \n";a+="{ \n";a+="  var fobj      = nn6 ? e.target : event.srcElement; \n";a+="  var topelement = nn6 ? 'HTML' : 'BODY'; \n";a+="  while (fobj.tagName != topelement && fobj.className != 'dragme') \n";a+=f;a+="    fobj = nn6 ? fobj.parentNode : fobj.parentElement; \n";a+=g;a+="  if (fobj.className=='dragme') \n";a+=f;a+="    isdrag = true; \n";a+="    dobj = fobj; \n";a+="    tx = parseInt(dobj.style.left+0); \n";a+="    ty = parseInt(dobj.style.top+0); \n";a+="    x = nn6 ? e.clientX : event.clientX; \n";a+="    y = nn6 ? e.clientY : event.clientY; \n";a+="    document.onmousemove=movemouse; \n";a+=j;a+=g;a+="} \n";a+="document.onmousedown=selectmouse; \n";a+="document.onmouseup=new Function('isdrag=false'); \n";a+="//--> \n";a+="<\/script> \n";var d;if(g4_is_gecko){d="width="+(c+10)+e;d+="height="+(b+10)+e}else{d="width="+c+e;d+="height="+b+e}d+="top="+l+e;d+="left="+k+e;d+="scrollbars=no,";d+="resizable=yes,";d+="status=no";win=window.open("","image_window",d);win.document.open();win.document.write("<html><head> \n<meta http-equiv='imagetoolbar' CONTENT='no'> \n<meta http-equiv='content-type' content='text/html; charset="+g4_charset+"'>\n");var h="이미지 사이즈 : "+c+" x "+b;win.document.write("<title>"+h+"</title> \n");if(c>=screen.width||b>=screen.height){win.document.write(a);var m="ondblclick='window.close();' style='cursor:move' title=' "+h+" \n\n 이미지 사이즈가 화면보다 큽니다. \n 왼쪽 버튼을 클릭한 후 마우스를 움직여서 보세요. \n\n 더블 클릭하면 닫혀요. '"}else var m="onclick='window.close();' style='cursor:pointer' title=' "+h+" \n\n 클릭하면 닫혀요. '";win.document.write("<style>.dragme{position:relative;}</style> \n");win.document.write("</head> \n\n");win.document.write("<body leftmargin=0 topmargin=0 bgcolor=#dddddd style='cursor:arrow;'> \n");win.document.write("<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle><img src='"+i.src+"' width='"+c+"' height='"+b+"' border=0 class='dragme' "+m+"></td></tr></table>");win.document.write("</body></html>");win.document.close();parseInt(navigator.appVersion)>=4&&win.window.focus()}function win_open(d,c,a){var b=window.open(d,c,a);b.focus()}function win_zip(c,d,e,a,b){url=g4_path+"/"+g4_bbs+"/zip.php?frm_name="+c+"&frm_zip1="+d+"&frm_zip2="+e+"&frm_addr1="+a+"&frm_addr2="+b;win_open(url,"winZip","left=50,top=50,width=616,height=460,scrollbars=1")}function win_memo(a){if(!a)a=g4_path+"/"+g4_bbs+"/memo.php";win_open(a,"winMemo","left=50,top=50,width=620,height=460,scrollbars=1")}function win_point(){win_open(g4_path+"/"+g4_bbs+"/point.php","winPoint","left=20, top=20, width=616, height=635, scrollbars=1")}function win_scrap(a){if(!a)a=g4_path+"/"+g4_bbs+"/scrap.php";win_open(a,"scrap","left=20, top=20, width=616, height=500, scrollbars=1")}function win_memo(a){if(!a)a=g4_path+"/"+g4_bbs+"/memo.php";win_open(a,"memo","left=20, top=20, width=616, height=500, scrollbars=1")}function win_password_forget(){win_open(g4_path+"/"+g4_bbs+"/password_forget.php","winPasswordForget","left=50, top=50, width=616, height=500, scrollbars=1")}function win_comment(a){win_open(a,"winComment","left=50, top=50, width=800, height=600, scrollbars=1")}function win_formmail(d,e,c){var b="winFormmail",a="/formmail.php?mb_id=";if(g4_charset.toLowerCase()=="euc-kr")win_open(g4_path+"/"+g4_bbs+a+d+"&name="+e+"&email="+c,b,"left=50, top=50, width=600, height=500, scrollbars=0");else win_open(g4_path+"/"+g4_bbs+a+d+"&name="+encodeURIComponent(e)+"&email="+c,b,"left=50, top=50, width=600, height=480, scrollbars=0")}function win_calendar(d,c,b,a){if(!a)a="left=50, top=50, width=240, height=230, scrollbars=0,status=0,resizable=0";win_open(g4_path+"/"+g4_bbs+"/calendar.php?fld="+d+"&cur_date="+c+"&delimiter="+b,"winCalendar",a)}function win_poll(a){if(!a)a="";win_open(a,"winPoll","left=50, top=50, width=616, height=500, scrollbars=1")}function win_profile(a){win_open(g4_path+"/"+g4_bbs+"/profile.php?mb_id="+a,"winProfile","left=50,top=50,width=620,height=510,scrollbars=1")}var last_id=null;function menu(a){if(a!=last_id){if(last_id!=null)document.getElementById(last_id).style.display="none";document.getElementById(a).style.display="block";last_id=a}else{document.getElementById(a).style.display="none";last_id=null}}function textarea_decrease(b,a){if(document.getElementById(b).rows-a>0)document.getElementById(b).rows-=a}function textarea_original(b,a){document.getElementById(b).rows=a}function textarea_increase(b,a){document.getElementById(b).rows+=a}function check_byte(e,f){for(var b=0,a=0,d="",c=document.getElementById(e).value,b=0;b<c.length;b++){d=c.charAt(b);if(escape(d).length>4)a+=2;else a+=1}document.getElementById(f).innerHTML=a;return a}function get_left_pos(d){var a=null,c=d,b=d.offsetLeft;while((a=c.offsetParent)!=null){b=b+a.offsetLeft;c=a}return b}function get_top_pos(d){var a=null,c=d,b=d.offsetTop;while((a=c.offsetParent)!=null){b=b+a.offsetTop;c=a}return b}function flash_movie(e,f,c,b,d){var a="";if(parseInt(c)&&parseInt(b))a=" width='"+c+"' height='"+b+"' ";return"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+a+" id="+f+"><param name=wmode value="+d+"><param name=movie value="+e+"><param name=quality value=high><embed src="+e+" quality=high wmode="+d+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+a+"></embed></object>"}function obj_movie(e,f,c,b,a){var d="";if(parseInt(c)&&parseInt(b))d=" width='"+c+"' height='"+b+"' ";if(!a)a=false;return"<embed src='"+e+"' "+d+" autostart='"+a+"'></embed>"}function doc_write(a){document.write(a)}}function session_refresh(){};

