jQuery.noConflict();
jQuery(document).ready(function()
{
  /**
  * Init date picker
  */
  jQuery(".field-date input").datepicker(
    {
      dateFormat: 'd MM yy', // e.g., 15 June 2009
      changeMonth: true,
      changeYear: true,
      currentText: 'Today',
      showButtonPanel: true 
    }
  );
});

function textCounter(field, cntfield, maxlimit) {
	
	if (field.value.length > maxlimit) // if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
	// otherwise, update 'characters left' counter
	else
		cntfield.value = maxlimit - field.value.length;
}