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, frm_addr3, frm_jibeon) { 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+"&frm_addr3="+frm_addr3+"&frm_jibeon="+frm_jibeon; //win_open(url, "winZip", "left=50,top=50,width=616,height=460,scrollbars=1"); win_open(url, "winZip", "left=50,top=50,width=483,height=600,scrollbars=1"); } // 5�먮¦¬ �°í렪ë²덊샇 �꾨줈Òï� �°í렪ë²덊샇 ×Ý� function win_zip5(frm_name, frm_zip, frm_addr1, frm_addr2, frm_addr3, frm_jibeon) { url = g4_path + "/" + g4_bbs + "/zip5.php?frm_name="+frm_name+"&frm_zip="+frm_zip+"&frm_addr1="+frm_addr1+"&frm_addr2="+frm_addr2+"&frm_addr3="+frm_addr3+"&frm_jibeon="+frm_jibeon; win_open(url, "winZip", "left=50,top=50,width=483,height=600,scrollbars=1"); } /* // �°í렪ë²덊샇 ×Ý� 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"); } // �덈줈�� �¨ì뒪�뚮뱶 ë¶꾩떎 ×Ý� : 100902 function win_password_lost() { win_open(g4_path + "/" + g4_bbs + "/password_lost.php", 'winPasswordLost', 'left=50, top=50, width=617, height=330, 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); } $(document).ready(function () { $('#top_menu_main').mouseover(function(){ $('#top_menu_sub').stop().animate({height:"230px"},200); }); $('#top_menu_main').mouseout(function(){ $('#top_menu_sub').stop().animate({height:"0px"},200); }); $('#top_menu_sub').mouseover(function(){ $('#top_menu_sub').stop().animate({height:"230px"},200); }); $('#top_menu_sub').mouseout(function(){ $('#top_menu_sub').stop().animate({height:"0px"},200); }); }); var look_hospital_photo_active = function (){ var obj = $('.hospital_photo_wrap'); var hphoto_contents_obj = obj.find('.hphoto_contents_wrap .inner_hphoto_wrap'); var change_floor = function (number){ hphoto_contents_obj.removeClass('on'); hphoto_contents_obj.eq(number).addClass('on'); }; hphoto_contents_obj.each(function(i){ var this_obj = $(this); var big_img = this_obj.find('.big_img').children(); var small_img = this_obj.find('.small_img').children(); //var tit_img = this_obj.find('.tit_img').children(); var prev = this_obj.find('.prev'); var next = this_obj.find('.next'); var flag = 0; var max = small_img.length; //var counter = this_obj.find('.number'); small_img.each(function(i){this.num = i}); var movement = function (number){ big_img.eq(flag).removeClass('on'); small_img.eq(flag).removeClass('on'); //tit_img.eq(flag).removeClass('on'); big_img.eq(number).addClass('on'); small_img.eq(number).addClass('on'); //tit_img.eq(number).addClass('on'); flag = number; //counter.text( (flag + 1) + " / " + max); }; small_img.click(function(){ movement(this.num); }); next.click(function(){ if (flag < max - 1){ movement(flag + 1); } }); prev.click(function(){ if (flag > 0){ movement(flag - 1); } }); }); }; }