/// Copyright (c) 2004-2006, Tatter & Company / Tatter & Friends. /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) //'; } } set_tag_support(obj2, buffer, ''); return true; } function image_view(obj, path, title){ window.open(path+'image_pop.php?p_title='+title+'&imagefile='+obj.src+'&width='+obj.style.width+'&height='+obj.style.height, '_blank','width='+obj.style.width+',height='+obj.style.height+',location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0'); } function is_valid_time(tval) { var year = tval.substring(0,4).replace(/\D/g,""); var month = tval.substring(5,7).replace(/\D/g,""); var day = tval.substring(8,10).replace(/\D/g,""); var hour = tval.substring(11,13).replace(/\D/g,""); var min = tval.substring(14,16).replace(/\D/g,""); var sec = tval.substring(17,19).replace(/\D/g,""); if (check_date(year, month, day, hour, min, sec)) return true; alert('시각을 바르게 입력해 주십시오'); return false; } function check_cb_set(obj) { var el_ary = form.elements, flag = ''; if (obj.checked) flag = true; else flag = false; for(i=0; i 12 || month == '') return false; if (day > count_days(year, month) || day == '') return false; if (hour > 23 || hour == '') return false; if (min > 60 || min == '') return false; if (sec > 60 || sec == '') return false; return true; } function count_days(year, month) { var days; if ((month == 1) || (month == 3) || (month == 5) || (month == 7) || (month == 8) || (month == 10) || (month == 12)) days = 31; else if ((month == 4) || (month == 6) || (month == 9) || (month == 11)) days = 30; else if (month == 2) { if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) days = 29; else days = 28; } return days; } function save_pos(obj) { if (obj.createTextRange) obj.currentPos = document.selection.createRange().duplicate(); return true; } function set_tag_support(obj, prefix, postfix) { if (document.selection) { if (obj.createTextRange && obj.currentPos) { obj.currentPos.text = prefix + obj.currentPos.text + postfix; obj.focus(); save_pos(obj); } else obj.value = obj.value + prefix + postfix; } else if (obj.selectionStart && obj.selectionEnd) { var s1 = obj.value.substring(0, obj.selectionStart); var s2 = obj.value.substring(obj.selectionStart, obj.selectionEnd); var s3 = obj.value.substring(obj.selectionEnd); obj.value = s1 + prefix + s2 + postfix + s3; } else obj.value += prefix + postfix; return true; } function open_set(val) { if (val == 'mark_set') document.getElementById('color_set').style.display = 'none'; else document.getElementById('mark_set').style.display = 'none'; layer_toggle(document.getElementById(val)); } function close_color_set(obj, col1) { layer_toggle(document.getElementById('color_set')); set_tag_support(obj, '', ''); } function close_mark_set(obj, col1, col2) { layer_toggle(document.getElementById('mark_set')); set_tag_support(obj, '', ''); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i