function addUp()
	{
	BedPrices = new Array(5)
	BedPrices [0] = new Array(2)
	BedPrices [1] = new Array(2)
	BedPrices [2] = new Array(2)
	BedPrices [3] = new Array(2)
	BedPrices [4] = new Array(2)
	BedPrices [5] = new Array(2)

	BedPrices[0][0]="169";
	BedPrices[0][1]="249";
	
	BedPrices[1][0]="169";
	BedPrices[1][1]="249";

	BedPrices[2][0]="229";
	BedPrices[2][1]="349";
	
	BedPrices[3][0]="229";
	BedPrices[3][1]="349";
	
	BedPrices[4][0]="249";
	BedPrices[4][1]="399";
	
	BedPrices[5][0]="299";
	BedPrices[5][1]="499";
	
	var myindex  = document.CFORM.BedSize.selectedIndex;
	var myindex2  = document.CFORM.BedType.selectedIndex;
	var myindex3  = document.CFORM.Zip.selectedIndex;
	var qty  = document.CFORM.Qty.selectedIndex+3;

	if (myindex2==0) {document.getElementById('bt').innerHTML="COST OF YOUR CONTRACT MATTRESSES";}
	else {document.getElementById('bt').innerHTML="COST OF YOUR CONTRACT BEDS";}
		
	document.getElementById('bp').innerHTML="£"+(BedPrices[myindex][myindex2]*qty)+".00";
	document.CFORM.BEDCOST.value=BedPrices[myindex][myindex2]*qty;

	var myext=(document.CFORM.Drawers.selectedIndex*50)+(myindex3*100);
	document.getElementById('ep').innerHTML="£"+(myext*qty)+".00";	
	document.CFORM.EXTRACOST.value=myext*qty;

	var mytot=((Number(BedPrices[myindex][myindex2])+Number(myext)))*qty;
	if (document.CFORM.SALEON.value=="Y")
		{
		mytot=mytot*((100-25)/100);
		}
	mytot=Math.floor(mytot);

	document.getElementById('tt').innerHTML="£"+mytot.toString()+".00";	
	}
