Changes

Test

125 bytes added, 23:34, 22 February 2012
no edit summary
function doCalc()
{
Monotony var d1 = document.trimp_1getElementById('dur_1').value innerHTML; alert(d1); var c1 = Monotonydocument.Dur_1getElementById('cr10_1').value innerHTML; alert(c1); var t1 = d1 * Monotonyc1; alert(t1); document.cr10_1getElementById('trimp_1').valueinnerHTML = t1;
}
</script>
<form namestyle="font-family: Helvetica,Arial,sans-serif;" id="Monotony"> <table style="text-align: left;" border="1" cellpadding="1" cellspacing="1">
<tr>
<th>Day</th>
<tr>
<td>1</td>
<td><input maxlength="3" size="3" nameid="Dur_1" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_1" value="0"></td> <td><input maxlength="3" size="3" namelabel id="trimp_1" value="0" readonly="readonly"></label></td>
</tr>
<tr>
<td>2</td>
<td><input maxlength="3" size="3" nameid="Dur_2" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_2" value="0"></td> <td><input maxlength="3" size="3" nameid="trimp_2" value="0" readonly="readonly"></td>
</tr>
<tr>
<td>3</td>
<td><input maxlength="3" size="3" nameid="Dur_3" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_3" value="0"></td> <td><input maxlength="3" size="3" nameid="trimp_3" value="0" readonly="readonly"></td>
</tr>
<tr>
<td>4</td>
<td><input maxlength="3" size="3" nameid="Dur_4" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_4" value="0"></td> <td><input maxlength="3" size="3" nameid="trimp_4" value="0" readonly="readonly"></td>
</tr>
<tr>
<td>5</td>
<td><input maxlength="3" size="3" nameid="Dur_5" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_5" value="0"></td> <td><input maxlength="3" size="3" nameid="trimp_5" value="0" readonly="readonly"></td>
</tr>
<tr>
<td>6</td>
<td><input maxlength="3" size="3" nameid="Dur_6" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_6" value="0"></td> <td><input maxlength="3" size="3" nameid="trimp_6" value="0" readonly="readonly"></td>
</tr>
<tr>
<td>7</td>
<td><input maxlength="3" size="3" nameid="Dur_7" value="0"></td> <td><input maxlength="3" size="3" nameid="cr10_7" value="0"></td> <td><input maxlength="3" size="3" nameid="trimp_7" value="0" readonly="readonly"></td>
</tr>
</table>
<label nameid="Monotony">Monotony:</label>
<br>
<input type="button" value="Calculate" OnClickonclick="doCalc();"/> </form>
</html>