// »ó¼¼È­¸é »õâ function com_schedule_readwin(path, arg) { window.open("/chtml/schedule.php?" + arg, "comschedulerwin", "width=0,height=0,directory=no,resizable=no,scrollbars=yes"); } // ÃßÃâ »ó¼¼È­¸é function com_schedule_readwin_output(arg) { //Æ˾÷â Ç×»óÀ§·Î º¯°æ - [kjm 2006-12-15] window.showModelessDialog("/chtml/schedule.php?template=&" + arg, "comschedulerwinoutput", "help:0; center:0; scroll:1; resizeable:0; status:0; dialogWidth:500px; dialogheight:300px;"); } // ´ñ±Û´Þ±â Æûüũ function com_schedule_commentCheck(form) { if(form.com_schedule_comment_name.value.length == 0) { alert('À̸§À» ÀÔ·ÂÇϼ¼¿ä.'); form.com_schedule_comment_name.focus(); return false; } if(form.com_schedule_comment_password.value.length == 0) { alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); form.com_schedule_comment_password.focus(); return false; } if(form.com_schedule_comment_contents.value.length == 0) { alert('³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.'); form.com_schedule_comment_contents.focus(); return false; } } // ´ñ±Û ¼öÁ¤/»èÁ¦ function com_schedule_comment_action(arg) { window.open("/chtml/schedule.php?" + arg + "&template=bizdemo69367", "comschedulerwinaction", "width=450,height=220,directory=no,resizable=no,scrollbars=yes"); } // Ä÷¯¼±Åà function com_schedule_color(frm, view_frm) { window.open('/admin/component/colortable.php?frm=' + frm + '&view_frm=' + view_frm,'ctable','resizable=false,width=320,height=190,scrollbars=no'); } // Ä÷¯ÀÔ·ÂÈÄ Ä÷¯Ç¥½Ã function com_schedule_color_view(frm, view_frm) { var val = frm.value; val = val.replace(/#/g,''); if(val && !(isHexStr(val))) { if(val.length < 6) { var blank = ''; for(i=1; i<=(6 - val.length); i++) blank += '0'; val = '#' + val + blank; view_frm.style.backgroundColor = val; } else if(val.length == 6) view_frm.style.backgroundColor = val; } } // 16Áø¼öÀÎÁö üũ function isHexStr(str) { for(i=0; i= 0 && str.charAt(i) <= 9) || (str.charAt(i).toUpperCase() >= 'A' && str.charAt(i).toUpperCase() <= 'F')) ) return true; } return false; } // ÇÏ·çÁ¾ÀÏ function com_schedule_allday() { if(document.com_schedule.allday.checked == true) { document.com_schedule.edateY.value = document.com_schedule.sdateY.options[document.com_schedule.sdateY.selectedIndex].value; document.com_schedule.edateM.value = document.com_schedule.sdateM.options[document.com_schedule.sdateM.selectedIndex].value; document.com_schedule.edateD.value = document.com_schedule.sdateD.options[document.com_schedule.sdateD.selectedIndex].value; document.com_schedule.edateH.disabled = true; document.com_schedule.sdateH.disabled = true; } else { document.com_schedule.edateY.options[0].selected = true; document.com_schedule.edateM.options[0].selected = true; document.com_schedule.edateD.options[0].selected = true; document.com_schedule.edateH.disabled = false; document.com_schedule.sdateH.disabled = false; } } // ¾Ë¸²¼³Á¤ function com_schedule_alert() { document.getElementById('alert_layer').style.display = 'none'; if(document.com_schedule.use_alert.checked == true) document.getElementById('alert_layer').style.display = ''; } // ÀÏÁ¤ÀÛ¼º Æûüũ function com_schedule_formCheck() { if(document.com_schedule.subject.value.length == 0) { alert('Á¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä.'); document.com_schedule.subject.focus(); return false; } if(document.com_schedule.subject_fontcolor.value.length < 6) { alert('Á¦¸ñÀÇ ÆùÆ®»ö»óÀ» ÀÔ·ÂÇϼ¼¿ä.'); document.com_schedule.subject_fontcolor.focus(); return false; } if(document.com_schedule.prevalert_time.value.length == 0) { alert('¹Ì¸®¾Ë¸² ½Ã°£À» ÀÔ·ÂÇϼ¼¿ä.'); document.com_schedule.prevalert_time.focus(); return false; } if(document.com_schedule.describe.value.length == 0) { alert('³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.'); document.com_schedule.describe.focus(); return false; } if(document.com_schedule.password.value.length == 0) { alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); document.com_schedule.password.focus(); return false; } //com_schedule_allday(); } // ¹Ì´Ï´Þ·Â function com_schedule_calendar(template) { window.open('/chtml/schedule.php?com_schedule_output=calendar&template=' +template + '&com_schedule_year=2024&com_schedule_month=11&1=','mini_cal','resizable=false,width=222,height=135,scrollbars=no'); } // ÀÏÁ¤»èÁ¦ function com_schedule_delete(idx, path, template, query) { window.open("/chtml/schedule.php?com_schedule_path=" + path + "&com_schedule_basic=delete_form&com_schedule_idx=" + idx + "&template=" + template + "&" + query, 'cafe_component_delete', 'width=450,height=220,directory=no,resizable=no,scrollbars=yes'); }