function addUp()
	{
	var myindex=0;
	var base=0;
	
	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 [6] = new Array(2)
	BedPrices [7] = new Array(2)
	BedPrices [8] = new Array(2)
	BedPrices [9] = new Array(2)
	BedPrices [10] = new Array(2)
	BedPrices [11] = new Array(2)

	BedPrices[0][0]="449";
	BedPrices[0][1]="599";
	
	BedPrices[1][0]="449";
	BedPrices[1][1]="599";

	BedPrices[2][0]="599";
	BedPrices[2][1]="799";
	
	BedPrices[3][0]="599";
	BedPrices[3][1]="799";
	
	BedPrices[4][0]="699";
	BedPrices[4][1]="949";
	
	BedPrices[5][0]="849";
	BedPrices[5][1]="1149";



	BedPrices[6][0]="499";
	BedPrices[6][1]="649";
	
	BedPrices[7][0]="499";
	BedPrices[7][1]="649";

	BedPrices[8][0]="699";
	BedPrices[8][1]="899";
	
	BedPrices[9][0]="699";
	BedPrices[9][1]="899";
	
	BedPrices[10][0]="799";
	BedPrices[10][1]="1049";
	
	BedPrices[11][0]="949";
	BedPrices[11][1]="1249";

	if (document.CFORM.Thickness[0].checked == false) {base=6;}
	
	myindex  = Number(document.CFORM.BedSize.selectedIndex);
	myindex+=base;
	var myindex2  = document.CFORM.BedType.selectedIndex;

	if (myindex2==0) {document.getElementById('bt').innerHTML="COST OF YOUR MEMORY FOAM MATTRESS";}
	else {document.getElementById('bt').innerHTML="COST OF YOUR MEMORY FOAM BED";}
		
	document.getElementById('bp').innerHTML="£"+BedPrices[myindex][myindex2]+".00";
	document.CFORM.BEDCOST.value=BedPrices[myindex][myindex2];

	var myext=document.CFORM.Drawers.selectedIndex*50;
	document.getElementById('ep').innerHTML="£"+myext+".00";	
	document.CFORM.EXTRACOST.value=myext;

	var mytot=Number(BedPrices[myindex][myindex2])+Number(myext);
	if (document.CFORM.SALEON.value=="Y")
		{
		mytot=mytot*((100-15)/100);
		}
	mytot=Math.floor(mytot);

	document.getElementById('tt').innerHTML="£"+mytot.toString()+".00";	
	}
