$(document).ready(function() {
			
	var aantal = $('#cdAantal');
	var prijs = 10.00;
	var floatCheck = 	/^\d+$/;
	var subtotaal = prijs;
	var totaal = subtotaal
	
	aantal.keyup(function () {
		var defAantal = aantal.val();
		if(checkFloat(defAantal) == true) {
			subtotaal = (defAantal*prijs)*1;
			totaal = subtotaal
			$("#bedragTotaal").html("&euro; " + totaal.toFixed(2));
		}
	});
	
	
	function checkFloat(aantal) {
		if(floatCheck.test(aantal)) {
			return true;
		}
	}
});
