
  function TScustomListConfigGetAjaxCall(url,sCallbackJSMethodName) {
    $.ajax({
       url: url,
       processData: false,
       dataType:  'json',
       success: sCallbackJSMethodName,
       type: 'POST'
     });
  }

  var iCountNumberOfLoadRequests = 0;

  function TGetAjaxCallWithWait(url,sCallbackJSMethodName) {
    $('#loadingDiv').show();
    iCountNumberOfLoadRequests++;
    $.ajax({
       url: url,
       processData: false,
       dataType:  'json',
       success: sCallbackJSMethodName,
       type: 'POST'
     });
  }

  function PostAjaxFormTransparent(formid, callbackFuntion) {
    var options = {
        success: callbackFuntion,
        dataType:  "json",
        type: 'POST'
        };

    $("#" + formid).ajaxSubmit(options);
    return false;
  }

  function AjaxReturnDoNothing(data, responseMessage) {

  }
  function PostAjaxFormWithLoadTransparent(formid, callbackFuntion,loadDiv) {
    $('#'+loadDiv).addClass('activeLoading');
    var options = {
        success: callbackFuntion,
        dataType:  "json",
        type: 'POST'
        };

    $("#" + formid).ajaxSubmit(options);
    return false;
  }
  function AjaxReturnRemoveWait(data, responseMessage) {
    $('#loadingDiv'+data.iCertificateId).removeClass('activeLoading');
  }

  function AjaxReturnDoNothing(data, responseMessage) {

  }



  function ShowManagementUnitDetails(data,responseMessage) {
    var container = document.createElement("div");
    container.innerHTML = data;
    $container = $(container);

    var sContainer = '#ManagementUnitSumary';

    var $oListParent = $(sContainer).parent();
    $oListParent.parent().append($container).hide().fadeIn("slow");
    $oListParent.fadeOut("slow").remove();
  }

  function ShowUserData(data, responseMessage) {
    if (data.bReplaceForm) {
        var container = document.createElement("div");
        container.innerHTML = data.sUserDetails;
        $container = $(container);

        var sContainer = '#TCFShopUserShippingReplaceForm';

        var $oListParent = $(sContainer).parent();
        $oListParent.parent().append($container).hide().fadeIn("slow");
        $oListParent.fadeOut("slow").remove();
    } else {
    }
    if (!data.isUser) {
      document.getElementById('shippingUserInfoNotice').innerHTML = 'User does not yet exist';
    } else document.getElementById('shippingUserInfoNotice').innerHTML = '';
    iCountNumberOfLoadRequests--;
    if (iCountNumberOfLoadRequests <= 0) {
      $('#loadingDiv').hide();
    }

  }
  function OpenExportedCodeSeriesList(data, responseMessage) {
    if (data == false) alert('no codes found');
    else window.open(data,'_blank');
  }

  function TDataProject_ApplyAsBrokerResponse(data) {
    if (data) alert("Your application has been submitted");
    else alert("There was an error submitting your application");
  }
