var fieldNames = new Array("applicant_name","applicant_address","applicant_phone","applicant_email","purpose","reservation_date","reservation_end");
var alertText = new Array("Name", "Address","Phone Number","Email Address","Purpose","Date of Use","End of Use");
var checkBoxes = new Array("terms_agree");
var checkText = new Array("You must agree to the stated terms and Privacy Policy");
var hiddenFields = new Array("terms");

function setup_cal(disp_field,input_field)
{
	Calendar.setup({
		inputField     :    input_field,     		// id of the input field
		ifFormat       :    "%m %e %Y %k:%M:%S",    // format of the input field
		displayArea    :    disp_field,
		daFormat       :    "%B %e, %Y %l:%M %p",   // format of the input field
		align          :    "B2",           		// alignment (defaults to "Bl")
		timeFormat     :    "12",
		electric       :    true,
		step           :    1,
		weekNumbers    :    false,
		showsTime      :    true,
		singleClick    :    false,
        dateStatusFunc :    function (date) { // disable weekend days (Saturdays == 6 and Subdays == 0)
                              return (date.getDay() == 6 || date.getDay() == 0) ? true : false;
                            }
	});
}
