//A function such as those below, is required for EVERY "calendar" template field in an activate template
//The two functions below originate from the Vacancies template  
function calendarInitilisation(strTemplateName) {
//debugger;
	if (strTemplateName == "Staff") {
		Calendar.setup(		{
							inputField : "txtContractEndDate",
							ifFormat : "%a, %b %e, %Y",
							button : "imgContractEndDate",
							align : "cR",
							singleClick : false
							}
		);
		
		Calendar.setup(		{
							inputField : "txtContractStartDate",
							ifFormat : "%a, %b %e, %Y",
							button : "imgContractStartDate",
							align : "cR",
							singleClick : false
						}
		);
		//>>> THis block is one you should duplicate & change for new calendar fields
	}
	
	else if (strTemplateName == "ENTER TEMPLATE NAME") {
		Calendar.setup(		{
							inputField : "txtDate",
							ifFormat : "%a, %b %e, %Y",
							button : "imgStartDate",
							align : "cR",
							singleClick : false
							}
		);  
		//<<< THis block is one you should duplicate & change for new calendar fields		
	}
	
	else if (strTemplateName == "Dairy vacancies") {
		Calendar.setup(		{
							inputField : "txtStartDate",
							ifFormat : "%a, %b %e, %Y",
							button : "imgStartDate",
							align : "cR",
							singleClick : false
							}
		);

	}
	
	else if (strTemplateName == "Events") {
		Calendar.setup(		{
							inputField : "txtDate",
							ifFormat : "%a, %b %e, %Y",
							button : "imgStartDate",
							align : "cR",
							singleClick : false
							}
		);  
		
	}
	
	else if (strTemplateName == "News feed") {
		Calendar.setup(		{
							inputField : "txtDate",
							ifFormat : "%a, %b %e, %Y",
							daFormat : "%a, %b %e, %Y",
							button : "imgStartDate",
							align : "cR",
							singleClick : false
							}
		);  		
	}

}


