{
var item4price = 10.50;
var item5price = 21.00;
var item6price = 36.75;
var item9price = 145.00;
var item10price = 190.00;
var item11price = 180.00;
var item12price = 133.00;
var item13price = 133.00;
var item14price = 133.00;
var item15price = 133.00;
// kortti
if (calc.item1){
var witem1 = document.calc.item1.value;
}
if (calc.item4.checked){
var witem4 = document.calc.item4.value = item4price;
} else {
var witem4 = document.calc.item4.value = 0.00;
}
if (calc.item5.checked){
var witem5 = document.calc.item5.value = item5price;
} else {
var witem5 = document.calc.item5.value = 0.00;
}
if (calc.item6.checked){
var witem6 = document.calc.item6.value = item6price;
} else {
var witem6 = document.calc.item6.value = 0.00;
}
if (calc.item9.checked){
var witem9 = document.calc.item9.value = item9price;
} else {
var witem9 = document.calc.item9.value = 0.00;
}
if (calc.item10.checked){
var witem10 = document.calc.item10.value = item10price;
} else {
var witem10 = document.calc.item10.value = 0.00;
}
if (calc.item11.checked){
var witem11 = document.calc.item11.value = item11price;
} else {
var witem11 = document.calc.item11.value = 0.00;
}
if (calc.item9.checked){
var witem12 = document.calc.item9.value = item12price;
} else {
var witem12 = document.calc.item9.value = 0.00;
}
if (calc.item10.checked){
var witem13 = document.calc.item10.value = item13price;
} else {
var witem13 = document.calc.item10.value = 0.00;
}
if (calc.item11.checked){
var witem14 = document.calc.item11.value = item14price;
} else {
var witem14 = document.calc.item11.value = 0.00;
}
if (calc.item8.checked){
var witem15 = document.calc.item8.value = item15price;
} else {
var witem15 = document.calc.item8.value = 0.00;
}
som1 = witem1 * 74.80;
som2 = witem4 + witem5 + witem6 + witem9 + witem10 + witem11;
som3 = som1 + som2;
som4 = som3 + 185.50;
som5 = som4 + 12.00;
som6 = witem12 + witem13 + witem14 + witem15;
som7 = som5 - som6;
workNum
=Math
.abs((Math
.round(som7
*100)/100)); workStr=""+workNum;
if (workStr.indexOf(".")==-1){workStr+=".00"};
dStr
=workStr
.substr(0,workStr
.indexOf
(".")); dNum=dStr-0;
pStr
=workStr
.substr(workStr
.indexOf
("."))
while (pStr.length<3){pStr+="0";}
document.calc.pay.value = dNum + pStr;
}