$(document).ready(function() {
	$("#date").datepicker({showOn: 'both', buttonImage: 'images/calendar.gif', buttonImageOnly: true, minDate: 0});
	$('#date').datepicker('option', {dateFormat: 'DD, MM d, yy'});

	$("#date-saturday").datepicker({showOn: 'both', buttonImage: 'images/calendar.gif', buttonImageOnly: true, minDate: 0, beforeShowDay: function(date){ return [(date.getDay() == 6), ""]; }});
	$('#date-saturday').datepicker('option', {dateFormat: 'DD, MM d, yy'});



	/* Validate the appointment form */
	$('#online-appointments').validate({
		rules: {
			email: {
			  email: true
			}
		},
		messages : {
			email : {  
				required : '* Please enter your email.',  
				email : '*Invalid Email' 
			},  
			parents_name : '* Please enter your name',
			childs_name : '* Please enter your childs name',
			telephone : '* Please enter your telephone ',
			date : '* Please select a date '
		}  
	});
});
