Здраствуйте.
Нужна ваша помощь - не выводитса цена с параметра «ФОТО ДРУК» все другие опции работают.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<style type="text/css">
.tg {border-spacing:0;border-color:#aaa;border:none;/*border-collapse:collapse;*/}
.tg td{font-size:14px; width: 50px; padding:10px 5px;border-style:solid;border-width:0px;border-color:#aaa;color:#333;background-color:#fff; }
.tg th{font-size:20px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;border-color:#aaa;color:#fff;background-color:#f38630;}
.tg .tg-0ord{text-align:right}
.tg .tg-s6z2{text-align:left}
</style>
</head>
<body>
<script language="JavaScript">
//<![CDATA[
sh1_45=new Array(2750,2900,3000,3220,3315,3500,3635,3780);
var sh2_45=new Array(2965,3130,3255,3500,3625,3825,3980,4140);
var sh3_45=new Array(3395,3600,3760,4050,4215,4468,4665,4870);
var sh4_45=new Array(3000,3165,3285,3530,3650,3855,4015,4170);
var sh5_45=new Array(3250,3440,3590,3865,4015,4250,4440,4625);
var sh6_45=new Array(3300,3500,3660,3940,4095,4340,4530,4730);
var sh7_45=new Array(3400,3610,3770,4060,4232,4490,4680,4890);
var sh_45_be=new Array(sh1_45,sh2_45,sh3_45,sh4_45,sh5_45,sh6_45,sh7_45);
var sh1_60=new Array(14623,15561,16528,20277,21334,22334,23374,24436);
var sh2_60=new Array(14877,15845,16759,20621,21607,22535,23631,24675);
var sh3_60=new Array(15349,16251,17229,21191,22152,23191,24217,25331);
var sh4_60=new Array(15832,16721,17776,21671,22652,23738,24871,25925);
var sh5_60=new Array(16351,17203,18315,22261,23156,24178,25265,26462);
var sh6_60=new Array(0,0,0,0,0,0,0,0,0);
var sh7_60=new Array(0,0,0,0,0,0,0,0,0);
var sh_60_be=new Array(sh1_60,sh2_60,sh3_60,sh4_60,sh5_60,sh6_60,sh7_60);
var sh_3=new Array(sh_45_be,sh_60_be);
var z_200=new Array(0,0,0,0,0,0,0,0,0,0,0);
var z_220=new Array(0,0,0,0,0,0,0,0,0,0,0);
var z_240=new Array(0,0,0,0,0,0,0,0,0,0,0);
var z_260=new Array(0,0,0,0,0,0,0,0,0,0,0);
var z_280=new Array(0,0,0,0,0,0,0,0,0,0,0);
var z_300=new Array(0,0,0,0,0,0,0,0,0,0,0);
var z_be=new Array(z_200,z_220,z_240,z_260,z_280,z_300);
var podsv=new Array(0,0,1062,1089,1121,1346,1401,1442,1849,0,0);
var podsv_u45=new Array(0,0,1062,1089,1121,1346,1401,1442,1849,0,0);
var podsv_u60=new Array(0,0,1062,1089,1121,1346,1401,1442,1849,0,0);
var sv_be=new Array(podsv,podsv_u45,podsv_u60);
var ug_45=new Array(2331,2331,2428,2479,2974,0);
var ug_60=new Array(2826,2826,2901,2998,3337,0);
var ug_be=new Array(ug_45,ug_60);
var shet=new Array(451,451,451,587,587,587,587,587,770,0,0);
var dl=new Array("100","110","120","130","140","150","160","170");
var vs=new Array("ДСП","Дзеркало","Дзеркало + матув","ДСП + фотодрук","ДСП + дзеркало","ДСП + матув","Фото друк");
var gl=new Array("45","60");
var gab=""; var skrop=0;
var sum=shirina=vysota=zerkalo_var=shetka_val=yashik_val=glubina_val=svet_val=0;
var shkaf_result=new Array(0,0,0,0,0,0,0,0,0);
shkaf_result[0]=" индивидуальных размеров";
function okr(x, n) { //x - число, n - кіль знаков
if(isNaN(x) || isNaN(n)) return false;
var m = Math.pow(10,n);
return Math.round(x*m)/m;
}
function gabarit(){
gab=""
sum=10;
for(i=0;i<=7;i++){
if (document.raschet.gab[i].checked){
ddd=i;
if (i<0){shirina=0}
else{if (i<1){shirina=3}
else{shirina=7}
}
for(j=0;j<=6;j++){
if (document.raschet.vv[j].checked){
vvv=j;
}
}
}
}
zerkalo_val=document.raschet.zerkalo.value;
shetka_val=document.raschet.shetka.value;
glubina_val=document.raschet.glubina.value;
svet_val=document.raschet.svet.value;
ugol_val=document.raschet.ugol.value;
pvx_val=document.raschet.pvh.value;
if(ugol_val==0){sss=0}
else{if(glubina_val==0){sss=1}
else{sss=2}}
if(ugol_val==0){gab=dl[ddd]+"X"+vs[vvv]+"X"+gl[glubina_val]; shkaf_result[4]="нет"}
else{gab="("+dl[ddd]+"+45 угол)X"+vs[vvv]+"X"+gl[glubina_val]; shkaf_result[4]="есть"}
pvh_sum=pvx_val*(okr(sh_3[glubina_val][vvv][ddd]*0.1,0)+okr(ugol_val*ug_be[glubina_val][vvv]*0.1,0));
sum=pvh_sum+sh_3[glubina_val][vvv][ddd]+z_be[vvv][ddd]*zerkalo_val+sv_be[sss][ddd]*svet_val+skrop+ugol_val*ug_be[glubina_val][vvv]+shetka_val*shet[ddd];
document.raschet.itog1.value=('ЦІНА: '+sum+' грн.');
//document.raschet.itog2.value=(gab);
//shkaf_result[3]=sum;
//shkaf_result[4]=gab;
//shkaf_result[5]=zerkalo_val;
//if(shetka_val==0){shkaf_result[6]="щёток нет"}else{shkaf_result[6]="щётки есть"}
//shkaf_result[7]="2 ящика"
//if(svet_val==0){shkaf_result[8]="подсветки нет"}else{shkaf_result[8]="подсветка есть"}
//if(pvx_val==0){shkaf_result[2]="ЛДСП 16 мм."}else{shkaf_result[2]="ЛДСП 22 мм."}
//shkaf_result[1]=color_mas[document.raschet.color_s.value]
}
//]]>
</script>
<form name="raschet" onSubmit="noReturn();">
<table class="tg">
<tr>
<th class="tg-s6z2" colspan="8">Оберіть ширину шафи</th>
</tr>
<tr>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()' checked>100</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>110</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>120</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>130</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>140</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>150</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>160</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='gab' onClick='gabarit()'>170</td>
</tr>
<tr>
<th class="tg-s6z2" colspan="7">Оберіть тип дверей та покриття</th>
</tr>
<tr>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>ДСП<br><br></td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>Дзеркало<br><br></td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>Дзеркало + матув</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>ДСП + фотодрук</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>ДСП + дзеркало</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>ДСП + матув</td>
<td class="tg-z2zr" align="center"><input type='radio' class="to-labelauty-icon" name='vv' onClick='gabarit()'>Фото друк</td>
</tr>
</table>
<div style="width:300px">
<select style="width:100%" onBlur="gabarit()" onclick="gabarit()" onChange="gabarit()" size="1" name="glubina">
<option value="0" selected="">глибина шафи 45см</option>
<option value="1">глибина шафи 60см</option>
</select>
<select style="width:100%" onBlur="gabarit()" onclick="gabarit()" onChange="gabarit()" size="1" name="zerkalo">
<option value="0" selected="">без зеркал</option>
<option value="1">1 зеркало</option>
<option value="2">2 зеркала</option>
<option value="3">3 зеркала</option>
<option value="4">4 зеркала</option>
</select>
<select style="width:100%" onBlur="gabarit()" style="VISIBILITY: visible" onclick="gabarit()" onChange="gabarit()" size="1" name="ugol">
<option value="0" selected="">без углового элемента</option>
<option value="1">с угловым элементом (+45 см. к длине)</option></select>
<select style="width:100%;display:none;" onBlur="gabarit()" style="VISIBILITY: visible" onclick="gabarit()" onChange="gabarit()" size="1" name="shetka">
<option value="0" selected="">без пылезащитных щеток</option>
<option value="1">комплект пылезащитных щеток</option>
</select>
<select style="width:100%;display:none;" onBlur="gabarit()" style="VISIBILITY: visible" onclick="gabarit()" onChange="gabarit()" size="1" name="svet">
<option value="0" selected="">без подсветки</option>
<option value="1">с подсветкой</option>
</select>
<select style="width:100%; display:none;" onBlur="gabarit()" style="VISIBILITY: visible" onclick="gabarit()" onChange="gabarit()" size="1" name="pvh">
<option value="0" selected="">толщина Ћƒ—ѕ 16 мм.</option>
<option value="1">товщина плити 22 мм.</option>
</select>
</div>
<script language="JavaScript">gabarit();</script>
<div style="width:100%; text-align:center" ><input style="font-size:40px " size="32" value="ЦІНА: 2750 грн." name="itog1"></div>
</form>
</body>
</html>