function calculate3Item1(item)
{
//alert("hello")
var quantity
var val
var total
quantity= document.threeform.quantity1.selectedIndex+1
val = document.threeform.space1.value
total = val*quantity
document.threeform.resvalue1.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item2(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity2.selectedIndex+1
val = document.threeform.space2.value
total = val*quantity
document.threeform.resvalue2.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item3(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity3.selectedIndex+1
val = document.threeform.space3.value
total = val*quantity
document.threeform.resvalue3.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item4(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity4.selectedIndex+1
val = document.threeform.space4.value
total = val*quantity
document.threeform.resvalue4.value= total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item5(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity5.selectedIndex+1
val = document.threeform.space5.value
total = val*quantity
document.threeform.resvalue5.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item6(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity6.selectedIndex+1
val = document.threeform.space6.value
total = val*quantity
document.threeform.resvalue6.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item7(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity7.selectedIndex+1
val = document.threeform.space7.value
total = val*quantity
document.threeform.resvalue7.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item8(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity8.selectedIndex+1
val = document.threeform.space8.value
total = val*quantity
document.threeform.resvalue8.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item9(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity9.selectedIndex+1
val = document.threeform.space9.value
total = val*quantity
document.threeform.resvalue9.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item10(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity10.selectedIndex+1
val = document.threeform.space10.value
total = val*quantity
document.threeform.resvalue10.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item11(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity11.selectedIndex+1
val = document.threeform.space11.value
total = val*quantity
document.threeform.resvalue11.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item12(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity12.selectedIndex+1
val = document.threeform.space12.value
total = val*quantity
document.threeform.resvalue12.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item13(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity13.selectedIndex+1
val = document.threeform.space13.value
total = val*quantity
document.threeform.resvalue13.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item14(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity14.selectedIndex+1
val = document.threeform.space14.value
total = val*quantity
document.threeform.resvalue14.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item15(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity15.selectedIndex+1
val = document.threeform.space15.value
total = val*quantity
document.threeform.resvalue15.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item16(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity16.selectedIndex+1
val = document.threeform.space16.value
total = val*quantity
document.threeform.resvalue16.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item17(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity17.selectedIndex+1
val = document.threeform.space17.value
total = val*quantity
document.threeform.resvalue17.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item18(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity18.selectedIndex+1
val = document.threeform.space18.value
total = val*quantity
document.threeform.resvalue18.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item19(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity19.selectedIndex+1
val = document.threeform.space19.value
total = val*quantity
document.threeform.resvalue19.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item20(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity20.selectedIndex+1
val = document.threeform.space20.value
total = val*quantity
document.threeform.resvalue20.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item21(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity21.selectedIndex+1
val = document.threeform.space21.value
total = val*quantity
document.threeform.resvalue21.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item22(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity22.selectedIndex+1
val = document.threeform.space22.value
total = val*quantity
document.threeform.resvalue22.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item23(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity23.selectedIndex+1
val = document.threeform.space23.value
total = val*quantity
document.threeform.resvalue23.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item24(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity24.selectedIndex+1
val = document.threeform.space24.value
total = val*quantity
document.threeform.resvalue24.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item25(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity25.selectedIndex+1
val = document.threeform.space25.value
total = val*quantity
document.threeform.resvalue25.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item26(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity26.selectedIndex+1
val = document.threeform.space26.value
total = val*quantity
document.threeform.resvalue26.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item27(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity27.selectedIndex+1
val = document.threeform.space27.value
total = val*quantity
document.threeform.resvalue27.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}
function calculate3Item28(item)
{
var quantity
var val
var total
quantity= document.threeform.quantity28.selectedIndex+1
val = document.threeform.space28.value
total = val*quantity
document.threeform.resvalue28.value = total
top.leftFrame.totalstable.garText.value += quantity+"_"+item +"("+total+"), "
}

function calculatetotals3form(f)
{

vg1= document.threeform.resvalue1.value
vg1 = eval(vg1)
vg2= document.threeform.resvalue2.value
vg2 = eval(vg2)
vg3= document.threeform.resvalue3.value
vg3 = eval(vg3)
vg4= document.threeform.resvalue4.value
vg4 = eval(vg4)
vg5= document.threeform.resvalue5.value
vg5 = eval(vg5)
vg6= document.threeform.resvalue6.value
vg6 = eval(vg6)
vg7= document.threeform.resvalue7.value
vg7 = eval(vg7)
vg8= document.threeform.resvalue8.value
vg8 = eval(vg8)
vg9= document.threeform.resvalue9.value
vg9 = eval(vg9)
vg10= document.threeform.resvalue10.value
vg10 = eval(vg10)
vg11= document.threeform.resvalue11.value
vg11 = eval(vg11)
vg12= document.threeform.resvalue12.value
vg12 = eval(vg12)
vg13= document.threeform.resvalue13.value
vg13 = eval(vg13)
vg14= document.threeform.resvalue14.value
vg14 = eval(vg14)
vg15= document.threeform.resvalue15.value
vg15 = eval(vg15)
vg16= document.threeform.resvalue16.value
vg16 = eval(vg16)
vg17= document.threeform.resvalue17.value
vg17 = eval(vg17)
vg18= document.threeform.resvalue18.value
vg18 = eval(vg18)
vg19= document.threeform.resvalue19.value
vg19 = eval(vg19)
vg20= document.threeform.resvalue20.value
vg20 = eval(vg20)
vg21= document.threeform.resvalue21.value
vg21 = eval(vg21)
vg22= document.threeform.resvalue22.value
vg22 = eval(vg22)
vg23= document.threeform.resvalue23.value
vg23 = eval(vg23)
vg24= document.threeform.resvalue24.value
vg24 = eval(vg24)
vg25= document.threeform.resvalue25.value
vg25 = eval(vg25)
vg26= document.threeform.resvalue26.value
vg26 = eval(vg26)
vg27= document.threeform.resvalue27.value
vg27 = eval(vg27)
vg28= document.threeform.resvalue28.value
vg28 = eval(vg28)


liveval = vg1+vg2+vg3+vg4+vg5+vg6+vg7+vg8+vg9+vg10+vg11+vg12+vg13+vg14+vg15+vg16+vg17+vg18+vg19+vg20+vg21+vg22+vg23+vg24+vg25+vg26+vg27+vg28


top.leftFrame.document.totalstable.garvalue.value = liveval;
}
