function setDatetimeTaken(cal)
{

		Zapatec.Calendar.setup(
		{
			inputField     :    "datetimeTaken",
			button         :    "dateButton",  // What will trigger the popup of the calendar
			ifFormat       :    "%Y%m%d",
			date           :     cal.date,
			showsTime      :     false
		});
}

var cal = new Zapatec.Calendar.setup(
{
 inputField     :    "datetimeTaken",
 button         :    "dateButton",  // What will trigger the popup of the calendar
 ifFormat       :    "%Y%m%d",       // format of the input field: Mar 18, 2005
 showsTime      :    false,
 onUpdate		:	 setDatetimeTaken

});	