﻿// localisation of the calendar
function init() {
	YAHOO.example.calendar.cal1 = new YAHOO.widget.Calendar("cal1","cal1Container");

	/* THIS IS THE CALENDAR TRANSLATIONS:*/
		YAHOO.example.calendar.cal1.cfg.setProperty("MONTHS_LONG",    ["Styczniu", "Lutym", "Marcu", "Kwietniu", "Maju", "Czerwcu", "Lipcu", "Sierpniu", "Wrześniu", "Październiku", "Listopadzie", "Grudniu"]);
		YAHOO.example.calendar.cal1.cfg.setProperty("WEEKDAYS_SHORT", ["Ni", "Po", "Wt", "Sr", "Cz", "Pt", "So"]);
	
	
	YAHOO.example.calendar.cal1.selectEvent.subscribe(handleSelect, YAHOO.example.calendar.cal1, true);
	YAHOO.example.calendar.cal1.render();

	YAHOO.util.Event.addListener("dates", "submit", handleSubmit);
}

 function formatDate (year,month,day){
    // THIS SPECIFY THE FORMAT OF THE DATE ENTERED IN THE INPUT TEXT BOX
	inputText.value = day  + "/" + month + "/" + year;
}










