function calculateShippingCosts(way,totalPrice,weight,amount) {
	
	// als de manier van versturen bezorgen is
	if(way == 'bezorgen') {
		
		//bepaal de verzendkosten aan de hand van totaal gewicht van de artikelen.
		if(weight > 0 && weight < 10) {
			
			shippingCosts = 7.50;
			
		}  else if(weight >= 10 ) {
			
			shippingCosts = 11.95;
			
		} else {
		
			shippingCosts = 0.00;
		
		}
		
		var totalCosts;
		totalCosts = totalPrice+shippingCosts;
		document.getElementById('totalCosts').innerHTML = totalCosts.toFixed(2);
		document.getElementById('shippingCosts').innerHTML = shippingCosts.toFixed(2);
		document.getElementById('paymentMethod1').style.display = 'block';
		document.getElementById('paymentMethod2').style.display = 'block';
		
	} 
	// als de manier van versturen rembours is
	else if(way == 'ophalen') {
		
		var shippingCosts;
		shippingCosts = 0;
		var totalCosts;
		totalCosts = totalPrice+shippingCosts;
		document.getElementById('totalCosts').innerHTML = totalCosts.toFixed(2);
		document.getElementById('shippingCosts').innerHTML = shippingCosts.toFixed(2);
		document.getElementById('paymentMethod1').style.display = 'none';
		document.getElementById('paymentMethod2').style.display = 'none';
		
	}
	
	
}
