<Script lang="JavaScript">
function calculator(form) {
k1=(form.k1.value); k2=(form.k2.value);
c1=5350;c2=6450;
s=c1*k1+c2*k2;
form.total.value = s;
}
</script>
<form>
<table style="font-size: 12px; line-height: 4px; font-family: Verdana, Arial, sans-serif;" height="280" width="882">
<tbody>
<tr>
<td><span style="color: #000000;"><em><strong><input onclick="calculator(this.form)" value="Рассчитать" type="button">Результат<input name="total" type="text"> <input value="Сброс" type="reset"></strong></em></span></td>
</tr>
<tr>
<td><span style="color: #000000;"><em><strong> Глухое ( 600-800 мм ) c1 руб. * <select id="k1"> <option>0</option> <option>1</option><option>2</option><option>3</option> <option>4</option> <option>5</option><option>6</option> <option>7</option> <option>8</option><option>9</option><option>10</option> <option>11</option></select></td>
</tr>
<tr>
<td><span style="color: #000000;"><em><strong>Остекленное ( 600-800 мм ) c2 руб. * <select id="k2"> <option>0</option> <option>1</option><option>2</option><option>3</option> <option>4</option> <option>5</option><option>6</option> <option>7</option> <option>8</option><option>9</option><option>10</option> <option>11</option></select></td>
</tr>
</tbody>
</table>
</form>
|