function calculate2Item1(item)
{

var quantity
var val
var total
quantity= document.twoform.quantity1.selectedIndex+1
val = document.twoform.space1.value
total = val*quantity
document.twoform.resvalue1.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item2(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity2.selectedIndex+1
val = document.twoform.space2.value
total = val*quantity
document.twoform.resvalue2.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item3(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity3.selectedIndex+1
val = document.twoform.space3.value
total = val*quantity
document.twoform.resvalue3.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item4(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity4.selectedIndex+1
val = document.twoform.space4.value
total = val*quantity
document.twoform.resvalue4.value= total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item5(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity5.selectedIndex+1
val = document.twoform.space5.value
total = val*quantity
document.twoform.resvalue5.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item6(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity6.selectedIndex+1
val = document.twoform.space6.value
total = val*quantity
document.twoform.resvalue6.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item7(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity7.selectedIndex+1
val = document.twoform.space7.value
total = val*quantity
document.twoform.resvalue7.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item8(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity8.selectedIndex+1
val = document.twoform.space8.value
total = val*quantity
document.twoform.resvalue8.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item9(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity9.selectedIndex+1
val = document.twoform.space9.value
total = val*quantity
document.twoform.resvalue9.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item10(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity10.selectedIndex+1
val = document.twoform.space10.value
total = val*quantity
document.twoform.resvalue10.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item11(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity11.selectedIndex+1
val = document.twoform.space11.value
total = val*quantity
document.twoform.resvalue11.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item12(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity12.selectedIndex+1
val = document.twoform.space12.value
total = val*quantity
document.twoform.resvalue12.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item13(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity13.selectedIndex+1
val = document.twoform.space13.value
total = val*quantity
document.twoform.resvalue13.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item14(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity14.selectedIndex+1
val = document.twoform.space14.value
total = val*quantity
document.twoform.resvalue14.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item15(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity15.selectedIndex+1
val = document.twoform.space15.value
total = val*quantity
document.twoform.resvalue15.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item16(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity16.selectedIndex+1
val = document.twoform.space16.value
total = val*quantity
document.twoform.resvalue16.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item17(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity17.selectedIndex+1
val = document.twoform.space17.value
total = val*quantity
document.twoform.resvalue17.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item18(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity18.selectedIndex+1
val = document.twoform.space18.value
total = val*quantity
document.twoform.resvalue18.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item19(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity19.selectedIndex+1
val = document.twoform.space19.value
total = val*quantity
document.twoform.resvalue19.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item20(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity20.selectedIndex+1
val = document.twoform.space20.value
total = val*quantity
document.twoform.resvalue20.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item21(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity21.selectedIndex+1
val = document.twoform.space21.value
total = val*quantity
document.twoform.resvalue21.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item22(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity22.selectedIndex+1
val = document.twoform.space22.value
total = val*quantity
document.twoform.resvalue22.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item23(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity23.selectedIndex+1
val = document.twoform.space23.value
total = val*quantity
document.twoform.resvalue23.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item24(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity24.selectedIndex+1
val = document.twoform.space24.value
total = val*quantity
document.twoform.resvalue24.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item25(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity25.selectedIndex+1
val = document.twoform.space25.value
total = val*quantity
document.twoform.resvalue25.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item26(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity26.selectedIndex+1
val = document.twoform.space26.value
total = val*quantity
document.twoform.resvalue26.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item27(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity27.selectedIndex+1
val = document.twoform.space27.value
total = val*quantity
document.twoform.resvalue27.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculate2Item28(item)
{
var quantity
var val
var total
quantity= document.twoform.quantity28.selectedIndex+1
val = document.twoform.space28.value
total = val*quantity
document.twoform.resvalue28.value = total
top.leftFrame.totalstable.bedText.value += quantity+"_"+item +"("+total+"), "
}
function calculatetotals2form()
{

vk1= document.twoform.resvalue1.value
vk1 = eval(vk1)
vk2= document.twoform.resvalue2.value
vk2 = eval(vk2)
vk3= document.twoform.resvalue3.value
vk3 = eval(vk3)
vk4= document.twoform.resvalue4.value
vk4 = eval(vk4)
vk5= document.twoform.resvalue5.value
vk5 = eval(vk5)
vk6= document.twoform.resvalue6.value
vk6 = eval(vk6)
vk7= document.twoform.resvalue7.value
vk7 = eval(vk7)
vk8= document.twoform.resvalue8.value
vk8 = eval(vk8)
vk9= document.twoform.resvalue9.value
vk9 = eval(vk9)
vk10= document.twoform.resvalue10.value
vk10 = eval(vk10)
vk11= document.twoform.resvalue11.value
vk11 = eval(vk11)
vk12= document.twoform.resvalue12.value
vk12 = eval(vk12)
vk13= document.twoform.resvalue13.value
vk13 = eval(vk13)
vk14= document.twoform.resvalue14.value
vk14 = eval(vk14)
vk15= document.twoform.resvalue15.value
vk15 = eval(vk15)
vk16= document.twoform.resvalue16.value
vk16 = eval(vk16)
vk17= document.twoform.resvalue17.value
vk17 = eval(vk17)
vk18= document.twoform.resvalue18.value
vk18 = eval(vk18)
vk19= document.twoform.resvalue19.value
vk19 = eval(vk19)
vk20= document.twoform.resvalue20.value
vk20 = eval(vk20)
vk21= document.twoform.resvalue21.value
vk21 = eval(vk21)
vk22= document.twoform.resvalue22.value
vk22 = eval(vk22)
vk23= document.twoform.resvalue23.value
vk23 = eval(vk23)
vk24= document.twoform.resvalue24.value
vk24 = eval(vk24)
vk25= document.twoform.resvalue25.value
vk25 = eval(vk25)
vk26= document.twoform.resvalue26.value
vk26 = eval(vk26)
vk27= document.twoform.resvalue27.value
vk27 = eval(vk27)
vk28= document.twoform.resvalue28.value
vk28 = eval(vk28)


liveval = vk1+vk2+vk3+vk4+vk5+vk6+vk7+vk8+vk9+vk10+vk11+vk12+vk13+vk14+vk15+vk16+vk17+vk18+vk19+vk20+vk21+vk22+vk23+vk24+vk25+vk26+vk27+vk28


top.leftFrame.document.totalstable.bedvalue.value = liveval;
}

