
function updateprice(dtForm,dtValue,dtPhoto,dtPhotoQuantity,dtBook,dtBookQuantity,dtSlide,dtSlideQuantity,dtCD,dtCDQuantity,dtBargain,dtBargainQuantity,dtSub,dtSubQuantity) {
	
	newvat=0;
	newdel=0;
	newprice=0;
	curprice=0;
	curvat=0;
	curdel=0;
	
	dtPhoto=parseFloat(dtPhoto);
	
	newtotal=0;
	newtotal=(dtPhoto*dtPhotoQuantity) + (dtBook*dtBookQuantity) + (dtSlide*dtSlideQuantity) + (dtCD*dtCDQuantity) + (dtBargain*dtBargainQuantity) + (dtSub*dtSubQuantity);
	
	if (dtPhoto>0) {
		if (dtValue=="UK") {
			curdel=dtPhotoQuantity * 0.55;
			if (curdel<5.00) {
				curdel=5.00;
			}
			curvat=((dtPhoto*dtPhotoQuantity)+curdel) * 0.175;
		}
		
		if (dtValue=="EU") {
			curdel=dtPhotoQuantity * 1.50;
			if (curdel<5.00) {
				curdel=5.00;
			}
			curvat=((dtPhoto*dtPhotoQuantity)+curdel) * 0.175;
		}
		
		if (dtValue=="NON") {
			curdel=dtPhotoQuantity * 1.50;
			if (curdel<5.00) {
				curdel=5.00;
			}
			curvat=0;
		}
		
		if (dtValue=="ELSE") {
			curdel=dtPhotoQuantity * 2.00;
			if (curdel<5.00) {
				curdel=5.00;
			}
			curvat=0;
		}
		newdel=newdel+curdel;
		newvat=newvat+curvat;
		newprice=newprice+curprice;
	}
	
	if (dtBook>0) {
		if (dtValue=="UK") {
			curdel=dtBookQuantity * 0.10;
			if (curdel<1.00) {
				curdel=1.00;
			}
			curvat=0;
		}
		
		if (dtValue=="EU") {
			curdel=dtBookQuantity * 0.15;
			if (curdel<1.50) {
				curdel=1.50;
			}
			curvat=0;
		}
		
		if (dtValue=="NON") {
			curdel=dtBookQuantity * 0.15;
			if (curdel<1.50) {
				curdel=1.50;
			}
			curvat=0;
		}
		
		if (dtValue=="ELSE") {
			curdel=dtBookQuantity * 0.20;
			if (curdel<2.00) {
				curdel=2.00;
			}
			curvat=0;
		}
		newdel=newdel+curdel;
		newvat=newvat+curvat;
	}
	
	if (dtSlide>0) {
		if (dtValue=="UK") {
			curdel=dtSlideQuantity * 0.05;
			if (curdel<0.55) {
				curdel=0.55;
			}
			curvat=((dtSlide*dtSlideQuantity)+curdel) * 0.175;
		}
		
		if (dtValue=="EU") {
			curdel=dtSlideQuantity * 0.10;
			if (curdel<1.50) {
				curdel=1.50;
			}
			curvat=((dtSlide*dtSlideQuantity)+curdel) * 0.175;
		}
		
		if (dtValue=="NON") {
			curdel=dtSlideQuantity * 0.10;
			if (curdel<1.50) {
				curdel=1.50;
			}
			curvat=0;
		}
		
		if (dtValue=="ELSE") {
			curdel=dtSlideQuantity * 0.15;
			if (curdel<2.00) {
				curdel=2.00;
			}
			curvat=0;
		}
		newdel=newdel+curdel;
		newvat=newvat+curvat;
	}
	
	if (dtCD>0) {
		if (dtValue=="UK") {
			curdel=dtCDQuantity * 0;
			curvat=(dtSlide*dtSlideQuantity) * 0.175;
		}
		
		if (dtValue=="EU") {
			curdel=dtCDQuantity * 1.00;
			curvat=((dtSlide*dtSlideQuantity)+curdel) * 0.175;
		}
		
		if (dtValue=="NON") {
			curdel=dtCDQuantity * 1.00;
			curvat=0;
		}
		
		if (dtValue=="ELSE") {
			curdel=dtCDQuantity * 1.50;
			curvat=0;
		}
		newdel=newdel+curdel;
		newvat=newvat+curvat;
	}
	
	if (dtBargain>0) {
		if (dtValue=="UK") {
			curdel=dtBargainQuantity * 0;
			curvat=(dtBargain*dtBargainQuantity) * 0.175;
		}
		
		if (dtValue=="EU") {
			curdel=dtBargainQuantity * 1.00;
			curvat=((dtBargain*dtBargainQuantity)+curdel) * 0.175;
		}
		
		if (dtValue=="NON") {
			curdel=dtBargainQuantity * 1.00;
			curvat=0;
		}
		
		if (dtValue=="ELSE") {
			curdel=dtBargainQuantity * 1.50;
			curvat=0;
		}
		newdel=newdel+curdel;
		newvat=newvat+curvat;
	}
	
	newtotal=newtotal + newdel + newvat;
	
	$("#delhtml").html(newdel.toFixed(2));
	$("#vathtml").html(newvat.toFixed(2));
	$("#totalhtml").html(newtotal.toFixed(2));
	dtForm.deltotal.value=newdel.toFixed(2);
	dtForm.vattotal.value=newvat.toFixed(2);
}
