+<!-- TMPL_INCLUDE NAME="calendar.inc" -->
+<script type="text/javascript">
+// <![CDATA[
+ /**
+ * checkForm(form)
+ * This function check the form is correctly filled.
+ */
+ function checkForm(form) {
+ if((form.checkbox[0].checked)){
+ if(!(form.date1.value)){
+ alert("please enter a date !");
+ document.form.date1.focus();
+ return false;
+ }
+ }
+ if((form.checkbox[1].checked)){
+ if(!(form.date2.value)){
+ alert("please enter a date !");
+ document.form.date2.focus();
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * checkForm2(form)
+ * This function check the form2 is correctly filled.
+ */
+ function checkForm2(form) {
+ return true;
+ }
+ // ]]>
+</script>