<script lang="JavaScript">
function calc(format,times,korobka) {
var base = [1,2,3,4,5,6];
var time = [2,3];
var box = [[0,0,0,0,0,0],
[0,0,0,0,0,0,],
[1,1,1,1,1,2]];
base_s = time[format]*base[korobka];
total = base_s
return total;
}
function calculator_msk(form) {
format = eval(form.numberof.value);
times = eval(form.hours.value);
korobka = eval(form.center.value);
form.totalmsk.value = calc(format,times,korobka);
}
</script>
<form>
<div>
<table width="532" border="0" align="center">
<tbody><tr>
<td width="256">Тираж CD/DVD дисков</td>
<td width="260">
<select name="numberof" id="numberof">
<option value="0" selected="selected">от 100</option>
<option value="1">от 200</option>
<option value="2">от 300</option>
<option value="3">от 500</option>
<option value="4">от 700</option>
<option value="5">от 1000</option>
</select>
</td>
</tr>
<tr>
<td>формат Диска</td>
<td>
<select name="hours" id="hours">
<option value="0" selected="selected">CD-R/RW</option>
<option value="1">DVD-R/RW</option>
</select></td>
</tr>
<tr>
<td>Коробочка</td>
<td><select name="center" id="center">
<option value="0" selected="selected">Нет</option>
<option value="1">CD-box</option>
<option value="2">DVD-box</option>
</select></td>
</tr>
<tr>
<td></td>
<td><input type="button" value="Рассчитать" onclick="calculator_msk(this.form)"> <input type="reset" value="Сброс"></td> </tr>
<tr>
<td>Итого: </td>
<td><input name="totalmsk" type="text" size="8"></td>
</tr>
</tbody></table>
</div>
</form> |