;/***************************************************************** * カスタム関数 ENO *******************************************************************/ function checkDate(field, rules, i, options){ var holiday = ["2025-08-04","2025-08-12","2025-08-13","2025-08-18","2025-08-25","2025-08-26","2025-10-06","2025-10-07","2025-10-14","2025-10-20","2025-10-21","2025-10-27","2025-10-06","2025-10-07","2025-10-14","2025-10-20","2025-10-21","2025-10-27"]; var fieldDate = field.val(); var xmasStart = "2025-12-23"; var xmasEnd = "2025-12-25"; if (holiday.includes(fieldDate)) { return "定休日のため、ケーキの予約はできません。"; } if ((fieldDate >= xmasStart) && (fieldDate <= xmasEnd)) { return "クリスマス期間中のため、通常のケーキは予約できません。"; } }