';html += '';html += '
';html += ' ';html += ' ';html += ' ';html += ' ';html += ' ';html += ' ';html += ' ';html += ' ';html += ' ';if (newID == 20){document.getElementById ('add_training_line').style.display = 'none';}html += '';$ ('div#items').append (html);$ ('select[name=cursus_' + newID + ']').val ('');document.getElementById ('count_items').innerHTML = (parseInt (newID) + 1);return newID;}function checkDiscount (){var items = '';var canPrepayment = 0;$ ('#items .item select').each (function (){if ($ (this).attr ('name').indexOf ('cursus_') != -1){var index = $ (this).attr ('name').substring (7);items += '&item_' + index + '=' + $ ('select[name=cursus_' + index + ']').val () + '-' + $ ('select[name=location_' + index + ']').val () + '-' + $ ('select[name=date_' + index + ']').val ();if (parseInt ($ ('select[name=date_' + index + '] option:selected').data ('can_prepayment')) == 1){canPrepayment = 1;}}});$.ajax({url: 'https://api.wellnessacademie.com/signup/?discount=' + $ ('input[name=promotiecode]').val () + items,jsonp: 'callback',dataType: 'jsonp',success: function (response){$ ('div#discount').html ('€ -' + response.total_discount + (response.discount_left != '' ? ' (resterend: € ' + response.discount_left + ')' : ''));$ ('span#course_costs').html ('€ ' + response.total_costs);$ ('div#consumption_costs').html ((response.total_consumption_costs == '0,00' ? 'Gratis' : '€ ' + response.total_consumption_costs));$ ('div#total_price').html ('€ ' + response.total_price);if (response.total_discount == '0,00' && response.total_costs == '0,00' && response.total_consumption_costs == '0,00' && response.total_price == '0,00'){$ ('div.block.prices').hide ();}else{$ ('div.block.prices').show ();}if ($ ('input[name=promotiecode]').val () == ''){$ ('div.block.prices.discount-total').hide ();}else{$ ('div.block.prices.discount-total').show ();}}});/*$.ajax({url: '/shopping-cart.php?adds' + items,dataType: 'jsonp',success: function (response){$ ('#new-menu a.shopping-cart span.count').html (response.count);}});*/if (canPrepayment == 1){$ ('span#can_prepayment').show ();}else{$ ('span#can_prepayment').hide ();}}Wil je de Wellness Academie beter leren kennen? Dan ben je van harte welkom op onze infoavonden of opendagen.