/*
The following JavaScript code defines a function that will
get called each time the user modifies the date inside the calendar.
To make sure that a date was actually clicked, we check the
cal.dateClicked variable.  If a date wasn't clicked this will be
“false” and it usually means that the date was modified using the
month or year navigation buttons, or that only the time got modified.
*/

function CalendarSetup(campodata, bottone, displayArea) {
	Zapatec.Calendar.setup({
		firstDay          : 1,
		weekNumbers       : false,
		showOthers        : true,
		electric          : false,
		inputField        : campodata,
		button            : bottone,
		displayArea	      : displayArea,
		ifFormat          : "%d/%m/%Y",
		daFormat          : "%Y/%m/%d",
		onUpdate		  : UpdateFunction    	
	});
}

//FUNZIONE RICHIAMATA DOPO L'UPDATE DEL CAMPO
function UpdateFunction() {	
	
	
					
}

