﻿//$(function() {
////      $('.datepicker').datepicker({ dateFormat: 'dd/mm/yy' });
////      $('.autogrow').autogrow();
////      $('textarea').autogrow();


//////    // Show the appropriate dropdown whenever the user clicks a different payment option radio button
////      $('#' + UxShowPaymentOptions + ' input').change(function() { TAF_ApplyTraining_TogglePaymentDropDowns(); });
////      if ($('#' + UxTrainingCourseClientID).length > 0) {
////          $('#' + UxTrainingCourseClientID).change(function() { TAF_AlterAvailablePaymentMethods($(this)); });
////          TAF_AlterAvailablePaymentMethods($('#' + UxTrainingCourseClientID));
////      }
//});
//function TAF_AlterAvailablePaymentMethods(e) {
//    if (e.val() == "") {
//        TAF_HideAvalablePaymentOptions();
//        $('.no-course').show();
//    } else if (e.val().toLowerCase().indexOf("level 2") > -1) {
//        TAF_HideAvalablePaymentOptions();
//        $('.women-within-level2').show();
//    } else if (e.val().toLowerCase().indexOf("empowering") > -1) {
//        TAF_HideAvalablePaymentOptions();
//        $('.women-empowering-women').show();
//    } else if (e.val().toLowerCase().indexOf("woman within") > -1) {
//        TAF_HideAvalablePaymentOptions();
//        $('.women-within').show();
//    }
//}
//function TAF_HideAvalablePaymentOptions() {
//    $('.no-course').hide();
//    $('.women-within-level2').hide();
//    $('.women-empowering-women').hide();
//    $('.women-within').hide();
//}
//function TAF_ApplyTraining_TogglePaymentDropDowns() {
//    var selectedPaymentOption = $('#' + UxShowPaymentOptions + ' input:checked').val();

//    if (selectedPaymentOption.toLowerCase().indexOf("bursary") > -1) {
//        TAF_HideDropDowns();
//        $('#' + UxBursaryOptionsClientID).show();
//    } else if (selectedPaymentOption.toLowerCase().indexOf("early bird") > -1) {
//        TAF_HideDropDowns();
//        $('#' + UxEarlyBirdOptionsClientID).show();
//    } else if (selectedPaymentOption.toLowerCase().indexOf("full payment") > -1) {
//        TAF_HideDropDowns();
//        $('#' + UxFullPaymentOptionsClientID).show();
//    }
//}
//function TAF_HideDropDowns() {
//    $('#' + UxBursaryOptionsClientID).hide();
//    $('#' + UxEarlyBirdOptionsClientID).hide();
//    $('#' + UxFullPaymentOptionsClientID).hide();
//}
function TAF_ClickProxy() {
    $('#' + UxProxySubmitClientID).click();
}
