if (typeof(COMMON_JS) == 'undefined') { // Çѹø¸¸ ½ÇÇà var COMMON_JS = true; // Àü¿ª º¯¼ö var errmsg = ""; var errfld; // ÇÊµå °Ë»ç function check_field(fld, msg) { if ((fld.value = trim(fld.value)) == "") error_field(fld, msg); else clear_field(fld); return; } // ÇÊµå ¿À·ù Ç¥½Ã function error_field(fld, msg) { if (msg != "") errmsg += msg + "\n"; if (!errfld) errfld = fld; fld.style.background = "#BDDEF7"; } // Çʵ带 ±ú²ýÇÏ°Ô function clear_field(fld) { fld.style.background = "#FFFFFF"; } function trim(s) { var t = ""; var from_pos = to_pos = 0; for (i=0; i=0; i--) { if (s.charAt(i-1) == ' ') continue; else { to_pos = i; break; } } t = s.substring(from_pos, to_pos); // alert(from_pos + ',' + to_pos + ',' + t+'.'); return t; } // ÀÚ¹Ù½ºÅ©¸³Æ®·Î PHPÀÇ number_format Èä³»¸¦ ³¿ // ¼ýÀÚ¿¡ , ¸¦ Ãâ·Â function number_format(data) { var tmp = ''; var number = ''; var cutlen = 3; var comma = ','; var i; len = data.length; mod = (len % cutlen); k = cutlen - mod; for (i=0; i \n"; js_url += " \n"; js_url += " \n"; var settings; if (g4_is_gecko) { settings ='width='+(w+10)+','; settings +='height='+(h+10)+','; } else { settings ='width='+w+','; settings +='height='+h+','; } settings +='top='+wint+','; settings +='left='+winl+','; settings +='scrollbars=no,'; settings +='resizable=yes,'; settings +='status=no'; win=window.open("","image_window",settings); win.document.open(); win.document.write (" \n \n\n"); var size = "À̹ÌÁö »çÀÌÁî : "+w+" x "+h; win.document.write (""+size+" \n"); if(w >= screen.width || h >= screen.height) { win.document.write (js_url); var click = "ondblclick='window.close();' style='cursor:move' title=' "+size+" \n\n À̹ÌÁö »çÀÌÁî°¡ È­¸éº¸´Ù Å®´Ï´Ù. \n ¿ÞÂÊ ¹öÆ°À» Ŭ¸¯ÇÑ ÈÄ ¸¶¿ì½º¸¦ ¿òÁ÷¿©¼­ º¸¼¼¿ä. \n\n ´õºí Ŭ¸¯ÇÏ¸é ´ÝÇô¿ä. '"; } else var click = "onclick='window.close();' style='cursor:pointer' title=' "+size+" \n\n Ŭ¸¯ÇÏ¸é ´ÝÇô¿ä. '"; win.document.write (" \n"); win.document.write (" \n\n"); win.document.write (" \n"); win.document.write ("
"); win.document.write (""); win.document.close(); if(parseInt(navigator.appVersion) >= 4){win.window.focus();} } // a ű׿¡¼­ onclick À̺¥Æ®¸¦ »ç¿ëÇÏÁö ¾Ê±â À§ÇØ function win_open(url, name, option) { var popup = window.open(url, name, option); popup.focus(); } // ¿ìÆí¹øÈ£ â function win_zip(frm_name, frm_zip1, frm_zip2, frm_addr1, frm_addr2) { url = g4_path + "/" + g4_bbs + "/zip.php?frm_name="+frm_name+"&frm_zip1="+frm_zip1+"&frm_zip2="+frm_zip2+"&frm_addr1="+frm_addr1+"&frm_addr2="+frm_addr2; win_open(url, "winZip", "left=50,top=50,width=616,height=460,scrollbars=1"); } // ÂÊÁö â function win_memo(url) { if (!url) url = g4_path + "/" + g4_bbs + "/memo.php"; win_open(url, "winMemo", "left=50,top=50,width=620,height=460,scrollbars=1"); } // Æ÷ÀÎÆ® â function win_point(url) { win_open(g4_path + "/" + g4_bbs + "/point.php", "winPoint", "left=20, top=20, width=616, height=635, scrollbars=1"); } // ½ºÅ©·¦ â function win_scrap(url) { if (!url) url = g4_path + "/" + g4_bbs + "/scrap.php"; win_open(url, "scrap", "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(url) { win_open(url, "winComment", "left=50, top=50, width=800, height=600, scrollbars=1"); } // Æû¸ÞÀÏ Ã¢ function win_formmail(mb_id, name, email) { if (g4_charset.toLowerCase() == 'euc-kr') win_open(g4_path+"/" + g4_bbs + "/formmail.php?mb_id="+mb_id+"&name="+name+"&email="+email, "winFormmail", "left=50, top=50, width=600, height=500, scrollbars=0"); else win_open(g4_path+"/" + g4_bbs + "/formmail.php?mb_id="+mb_id+"&name="+encodeURIComponent(name)+"&email="+email, "winFormmail", "left=50, top=50, width=600, height=480, scrollbars=0"); } // ´Þ·Â â function win_calendar(fld, cur_date, delimiter, opt) { if (!opt) opt = "left=50, top=50, width=240, height=230, scrollbars=0,status=0,resizable=0"; win_open(g4_path+"/" + g4_bbs + "/calendar.php?fld="+fld+"&cur_date="+cur_date+"&delimiter="+delimiter, "winCalendar", opt); } // ¼³¹®Á¶»ç â function win_poll(url) { if (!url) url = ""; win_open(url, "winPoll", "left=50, top=50, width=616, height=500, scrollbars=1"); } // ÀÚ±â¼Ò°³ â function win_profile(mb_id) { win_open(g4_path+"/" + g4_bbs + "/profile.php?mb_id="+mb_id, 'winProfile', 'left=50,top=50,width=620,height=510,scrollbars=1'); } var last_id = null; function menu(id) { if (id != last_id) { if (last_id != null) document.getElementById(last_id).style.display = "none"; document.getElementById(id).style.display = "block"; last_id = id; } else { document.getElementById(id).style.display = "none"; last_id = null; } } function textarea_decrease(id, row) { if (document.getElementById(id).rows - row > 0) document.getElementById(id).rows -= row; } function textarea_original(id, row) { document.getElementById(id).rows = row; } function textarea_increase(id, row) { document.getElementById(id).rows += row; } // ±Û¼ýÀÚ °Ë»ç function check_byte(content, target) { var i = 0; var cnt = 0; var ch = ''; var cont = document.getElementById(content).value; for (i=0; i 4) { cnt += 2; } else { cnt += 1; } } // ¼ýÀÚ¸¦ Ãâ·Â document.getElementById(target).innerHTML = cnt; return cnt; } // ºê¶ó¿ìÀú¿¡¼­ ¿ÀºêÁ§Æ®ÀÇ ¿ÞÂÊ ÁÂÇ¥ function get_left_pos(obj) { var parentObj = null; var clientObj = obj; //var left = obj.offsetLeft + document.body.clientLeft; var left = obj.offsetLeft; while((parentObj=clientObj.offsetParent) != null) { left = left + parentObj.offsetLeft; clientObj = parentObj; } return left; } // ºê¶ó¿ìÀú¿¡¼­ ¿ÀºêÁ§Æ®ÀÇ »ó´Ü ÁÂÇ¥ function get_top_pos(obj) { var parentObj = null; var clientObj = obj; //var top = obj.offsetTop + document.body.clientTop; var top = obj.offsetTop; while((parentObj=clientObj.offsetParent) != null) { top = top + parentObj.offsetTop; clientObj = parentObj; } return top; } function flash_movie(src, ids, width, height, wmode) { var wh = ""; if (parseInt(width) && parseInt(height)) wh = " width='"+width+"' height='"+height+"' "; return ""; } function obj_movie(src, ids, width, height, autostart) { var wh = ""; if (parseInt(width) && parseInt(height)) wh = " width='"+width+"' height='"+height+"' "; if (!autostart) autostart = false; return ""; } function doc_write(cont) { document.write(cont); } }