

	var gbCurrencyName = "Kč";
	var gbCurrencyBeforeAmount = false;
	var gbCurrencyDecimalSeparator = ",";
	var gbCurrencyThousandSeparator = " ";
	var gbCurrencySuffixNotDecimal = ",-";
	var gbCurrencyDigitsAfterDecimalSeparator = 0;
  var gbClCod = "";
  var gbisB2b = "";

   
  $(document).ready(function() {
  
     var sRequestXml = "";
     var sCode = "";
      
          
     $('.prodAjx input[name=Code]').each(function() {
      
        sCode = $(this).val();
        
        if (sCode != undefined)
        {
            sRequestXml = sRequestXml + "<code count=\"1\" kod=\""+ sCode +"\" />"      
        }
        
        
      });
      
   
     
           $.ajax({
             type: "POST",
             url: "/back_online.asp",
             cache: false,
             async: true,
             data: ({requestXml: sRequestXml, scl: gbClCod, b2b: gbisB2b }),
             dataType: "xml",
             beforeSend :function () {
                $(".priceAjx").html("<strong class='ajx_price1'>zjišťuji...</strong>") ;
             },
             
             success: function (xml) {
                $(xml).find('row').each(function(){
                
                  var nPrice_jednotka = parseFloat($(this).attr('nPrice_Jednotka'));
                  var sPrice_jednotka_Mj = $(this).attr('sPrice_Jednotka_Unit');
                  
                  var nPrice = parseFloat($(this).attr('nPrice'));
                  var sPrice_Mj = $(this).attr('sPrice_Unit');
                  
                  var code = $(this).attr('sCode');

                  
                  $(".prAjx" + code + " .priceAjx").html("<strong class='ajx_price1'>"+ nPrice_jednotka.toFixed(2) +",- Kč/<small>"+sPrice_jednotka_Mj+"</small></strong><strong class='ajx_price2'>"+ nPrice.toFixed(2) +",- Kč/<small>"+sPrice_Mj+"</small></strong>") ;
                  $(".prAjx" + code + " input[name=Price]").val(String(nPrice_jednotka).replace(".",",")) ;
                })
              }
     });
     
  
  });

  
 
 
 
 
