function calculateItem1(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity1.selectedIndex+1
val = document.oneform.space1.value
total = val*quantity
document.oneform.resvalue1.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem2(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity2.selectedIndex+1
val = document.oneform.space2.value
total = val*quantity
document.oneform.resvalue2.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem3(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity3.selectedIndex+1
val = document.oneform.space3.value
total = val*quantity
document.oneform.resvalue3.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem4(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity4.selectedIndex+1
val = document.oneform.space4.value
total = val*quantity
document.oneform.resvalue4.value= total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem5(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity5.selectedIndex+1
val = document.oneform.space5.value
total = val*quantity
document.oneform.resvalue5.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem6(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity6.selectedIndex+1
val = document.oneform.space6.value
total = val*quantity
document.oneform.resvalue6.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem7(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity7.selectedIndex+1
val = document.oneform.space7.value
total = val*quantity
document.oneform.resvalue7.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem8(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity8.selectedIndex+1
val = document.oneform.space8.value
total = val*quantity
document.oneform.resvalue8.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem9(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity9.selectedIndex+1
val = document.oneform.space9.value
total = val*quantity
document.oneform.resvalue9.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem10(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity10.selectedIndex+1
val = document.oneform.space10.value
total = val*quantity
document.oneform.resvalue10.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem11(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity11.selectedIndex+1
val = document.oneform.space11.value
total = val*quantity
document.oneform.resvalue11.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem12(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity12.selectedIndex+1
val = document.oneform.space12.value
total = val*quantity
document.oneform.resvalue12.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem13(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity13.selectedIndex+1
val = document.oneform.space13.value
total = val*quantity
document.oneform.resvalue13.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem14(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity14.selectedIndex+1
val = document.oneform.space14.value
total = val*quantity
document.oneform.resvalue14.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem15(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity15.selectedIndex+1
val = document.oneform.space15.value
total = val*quantity
document.oneform.resvalue15.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem16(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity16.selectedIndex+1
val = document.oneform.space16.value
total = val*quantity
document.oneform.resvalue16.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem17(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity17.selectedIndex+1
val = document.oneform.space17.value
total = val*quantity
document.oneform.resvalue17.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem18(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity18.selectedIndex+1
val = document.oneform.space18.value
total = val*quantity
document.oneform.resvalue18.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem19(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity19.selectedIndex+1
val = document.oneform.space19.value
total = val*quantity
document.oneform.resvalue19.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem20(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity20.selectedIndex+1
val = document.oneform.space20.value
total = val*quantity
document.oneform.resvalue20.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem21(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity21.selectedIndex+1
val = document.oneform.space21.value
total = val*quantity
document.oneform.resvalue21.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem22(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity22.selectedIndex+1
val = document.oneform.space22.value
total = val*quantity
document.oneform.resvalue22.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem23(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity23.selectedIndex+1
val = document.oneform.space23.value
total = val*quantity
document.oneform.resvalue23.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem24(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity24.selectedIndex+1
val = document.oneform.space24.value
total = val*quantity
document.oneform.resvalue24.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem25(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity25.selectedIndex+1
val = document.oneform.space25.value
total = val*quantity
document.oneform.resvalue25.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem26(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity26.selectedIndex+1
val = document.oneform.space26.value
total = val*quantity
document.oneform.resvalue26.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem27(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity27.selectedIndex+1
val = document.oneform.space27.value
total = val*quantity
document.oneform.resvalue27.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculateItem28(item)
{
var quantity
var val
var total
quantity= document.oneform.quantity28.selectedIndex+1
val = document.oneform.space28.value
total = val*quantity
document.oneform.resvalue28.value = total
top.leftFrame.totalstable.livingText.value += quantity+"_"+item +"("+total+"), "
}
function calculatetotalsform()
{

vb1= document.oneform.resvalue1.value
vb1 = eval(vb1)
vb2= document.oneform.resvalue2.value
vb2 = eval(vb2)
vb3= document.oneform.resvalue3.value
vb3 = eval(vb3)
vb4= document.oneform.resvalue4.value
vb4 = eval(vb4)
vb5= document.oneform.resvalue5.value
vb5 = eval(vb5)
vb6= document.oneform.resvalue6.value
vb6 = eval(vb6)
vb7= document.oneform.resvalue7.value
vb7 = eval(vb7)
vb8= document.oneform.resvalue8.value
vb8 = eval(vb8)
vb9= document.oneform.resvalue9.value
vb9 = eval(vb9)
vb10= document.oneform.resvalue10.value
vb10 = eval(vb10)
vb11= document.oneform.resvalue11.value
vb11 = eval(vb11)
vb12= document.oneform.resvalue12.value
vb12 = eval(vb12)
vb13= document.oneform.resvalue13.value
vb13 = eval(vb13)
vb14= document.oneform.resvalue14.value
vb14 = eval(vb14)
vb15= document.oneform.resvalue15.value
vb15 = eval(vb15)
vb16= document.oneform.resvalue16.value
vb16 = eval(vb16)
vb17= document.oneform.resvalue17.value
vb17 = eval(vb17)
vb18= document.oneform.resvalue18.value
vb18 = eval(vb18)
vb19= document.oneform.resvalue19.value
vb19 = eval(vb19)
vb20= document.oneform.resvalue20.value
vb20 = eval(vb20)
vb21= document.oneform.resvalue21.value
vb21 = eval(vb21)
vb22= document.oneform.resvalue22.value
vb22 = eval(vb22)
vb23= document.oneform.resvalue23.value
vb23 = eval(vb23)
vb24= document.oneform.resvalue24.value
vb24 = eval(vb24)
vb25= document.oneform.resvalue25.value
vb25 = eval(vb25)
vb26= document.oneform.resvalue26.value
vb26 = eval(vb26)
vb27= document.oneform.resvalue27.value
vb27 = eval(vb27)
vb28= document.oneform.resvalue28.value
vb28 = eval(vb28)


liveval = vb1+vb2+vb3+vb4+vb5+vb6+vb7+vb8+vb9+vb10+vb11+vb12+vb13+vb14+vb15+vb16+vb17+vb18+vb19+vb20+vb21+vb22+vb23+vb24+vb25+vb26+vb27+vb28


top.leftFrame.document.totalstable.livingvalue.value = liveval;
}


function sumUpTotals()
{

var living
var bed
var garden

living = top.leftFrame.totalstable.livingvalue.value
living = eval(living)
bed = top.leftFrame.totalstable.bedvalue.value
bed = eval(bed)
garden = top.leftFrame.totalstable.garvalue.value
garden = eval(garden)
tot = living + bed + garden
top.leftFrame.totalstable.temptot.value = tot
tot = Math.round(tot / 5)
totMeter = Math.round(tot * 0.092903)

top.leftFrame.totalstable.totals1.value = " " + tot + "/sq.ft." + "\r" + " " + totMeter + "/sq.meters"
}

