function pickup_calendar()
{
	Calendar.setup({
		inputField     :    "f_date_a",     // id of the input field
		ifFormat       :    "%m/%d/%Y",      // format of the input field
		button         :    "f_trigger_a",  // trigger for the calendar (button ID)
		align          :    "Tl",           // alignment (defaults to "Bl")
		onUpdate       :    pcal,
		singleClick    :    true
	});
}

function pcal(cal) {
	date = cal.date;
	document.resform.pickup_month.value=date.print("%m");
	document.resform.pickup_day.value=date.print("%d");
									
	ChangePickupMonth();
};

//dropoff 
function dropoff_calendar()
{
	Calendar.setup({
		inputField     :    "f_date_d",     // id of the input field
		ifFormat       :    "%m/%d/%Y",      // format of the input field
		button         :    "f_trigger_d",  // trigger for the calendar (button ID)
		align          :    "Tl",           // alignment (defaults to "Bl")
		onUpdate       :    dcal,
		singleClick    :    true
	});
}

function dcal(cal) {
	var date = cal.date;
	document.resform.dropoff_month.value=date.print("%m");
	document.resform.dropoff_day.value=date.print("%d");
									
	ChangeDropoffMonth();
};
