function stepProgressBar(em) {
    if (edEtShopStepN1V1ShopCart=='Y') em.find('.StepTable .txt_ShopCartName').before('<span class="badge"><span class="text"></span></span>');
    else em.find('.StepTable .txt_ShopCartName').parents('.StepItem').eq(0).remove();
    if (edEtShopStepN1V1ShopLogin=='Y') em.find('.StepTable .txt_ShopLoginName').before('<span class="badge"><span class="text"></span></span>');
    else em.find('.StepTable .txt_ShopLoginName').parents('.StepItem').eq(0).remove();
    if (edEtShopStepN1V1ShopOrder=='Y') em.find('.StepTable .txt_ShopOrderName').before('<span class="badge"><span class="text"></span></span>');
    else em.find('.StepTable .txt_ShopOrderName').parents('.StepItem').eq(0).remove();
    if (edEtShopStepN1V1ShopPay=='Y') em.find('.StepTable .txt_ShopPayName').before('<span class="badge"><span class="text"></span></span>');
    else em.find('.StepTable .txt_ShopPayName').parents('.StepItem').eq(0).remove();
    if (edEtShopStepN1V1ShopFinish=='Y') em.find('.StepTable .txt_ShopFinishName').before('<span class="badge"><span class="text"></span></span>');
    else em.find('.StepTable .txt_ShopFinishName').parents('.StepItem').eq(0).remove();
    em.find('.StepTable .badge').each(function(index) {
        $(this).find('.text').html(index+1);
    });
}

function us_edEtShopStepN1V1_(mx) {
    if ($('#cenShopInfoStep').length>0) stepProgressBar($('#cenShopInfoStep'));
    else if ($('.cenShopInfoStep').length>0) stepProgressBar($('.cenShopInfoStep'));
}