function basketcalculate(weight, sum) {

	// waga	
	cost = 0;
	if (weight > 20) cost += 0;
	else if (weight > 10) cost += 0;
	else if (weight > 5) cost += 0;
	else cost += 0;
	
	// p3atno¶䋊	if ( ( document.getElementById('fp').value == 1 ) && ( document.getElementById('fd').value == 1 ) ) cost += 5;

	if ( document.getElementById('fd').value == 2 ) cost = 0;
	
	allsum = Math.floor( (eval(cost) * 100) + (eval(sum) * 100) ) / 100;
	
	document.getElementById('basketordercosts').firstChild.data  = cost + ".00";
	document.getElementById('basketordercostssum').firstChild.data  = allsum;

}
