// When button clicked, call the javascript function to show the calendar
// and pass the value back to the input text field.  
// NB: the value "StartDate" below must match the input text field name

function ff_SelectDate1_action(element, action)
{
    switch (action) {
        case 'click':
            return showCalendar(ff_getElementByName('StartDate').id, 'd-m-Y');
            break;
        default:;
    } // switch
} // ff_SelectDate_action