kalkulator

<p><style type="text/css"> <!-- div.section table {  border-top-style: none;  border-right-style: none;  border-bottom-style: none;  border-left-style: none; } --></style></p> <script type="text/javascript" language="javascript"> function calculateHeavyMetal() {     var calories = document.getElementById('calories');     var alfalfa = document.getElementById('alfalfa');     var protein = document.getElementById('protein');     var amaranth = document.getElementById('amaranth');     var carbohydrates = document.getElementById('carbohydrates');     var apple = document.getElementById('apple');     var fiber = document.getElementById('fiber');     var broccoli = document.getElementById('broccoli');     var calcium = document.getElementById('calcium');     var cabbage = document.getElementById('cabbage');     var phosphorous = document.getElementById('phosphorous');     var vitamina = document.getElementById('vitamina');     var cantalope = document.getElementById('cantalope');     calories.value = alfalfa.value*0.01;     protein.value = amaranth.value*0.018;     carbohydrates.value = apple.value*0.0055;     fiber.value = broccoli.value*0.02;     calcium.value = cabbage.value*0.02;     phosphorous.value = alfalfa.value*0.01+amaranth.value*0.018+apple.value*0.0055+broccoli.value*0.02+cabbage.value*0.02;     vitamina.value = phosphorous.value*cantalope.value; } </script> <table>     <thead>         <tr class="highlighted">             <th colspan="2">Schwermetallkonzentration im Abwasser</th>             <th>TMT 15<sup>&reg;</sup> Bedarf</th>         </tr>     </thead>     <tbody>         <tr>             <td>Cadmium</td>             <td><input id="alfalfa" size="5" onkeypress="if (event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;lt; 45 || event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;gt; 57) event.returnValue = false;" name="alfalfa" type="text" /> mg/l</td>             <td><input disabled="disabled" id="calories" maxlength="6" size="6" name="calories" value="0" type="text" /> Liter TMT 15<sup>&reg;</sup></td>         </tr>         <tr>             <td>Kupfer</td>             <td><input id="amaranth" size="5" onkeypress="if (event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;lt; 45 || event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;gt; 57) event.returnValue = false;" name="amaranth" type="text" /> mg/l</td>             <td><input disabled="disabled" id="protein" maxlength="6" size="6" name="protein" value="0" type="text" /> Liter TMT 15<sup>&reg;</sup></td>         </tr>         <tr>             <td>Blei</td>             <td><input id="apple" size="5" onkeypress="if (event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;lt; 45 || event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;gt; 57) event.returnValue = false;" name="apple" type="text" /> mg/l</td>             <td><input disabled="disabled" id="carbohydrates" maxlength="6" size="6" name="carbohydrates" value="0" type="text" /> Liter TMT 15<sup>&reg;</sup></td>         </tr>         <tr>             <td>Nickel</td>             <td><input id="broccoli" size="5" onkeypress="if (event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;lt; 45 || event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;gt; 57) event.returnValue = false;" name="broccoli" type="text" /> mg/l</td>             <td><input disabled="disabled" id="fiber" maxlength="6" size="6" name="fiber" value="0" type="text" /> Liter TMT 15<sup>&reg;</sup></td>         </tr>         <tr>             <td>Zink</td>             <td><input id="cabbage" size="5" onkeypress="if (event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;lt; 45 || event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;gt; 57) event.returnValue = false;" name="cabbage" type="text" /> mg/l</td>             <td><input disabled="disabled" id="calcium" maxlength="6" size="6" name="calcium" value="0" type="text" /> Liter TMT 15<sup>&reg;</sup></td>         </tr>         <tr>             <td colspan="2">TMT 15<sup>&reg;</sup> Gesamtbedarf f&uuml;r das Abwasser=</td>             <td><input disabled="disabled" id="phosphorous" maxlength="6" size="6" name="phosphorous" value="0" type="text" /> Liter TMT&nbsp;15<sup>&reg;</sup>/m&sup3;</td>         </tr>         <tr>             <td>Volumenstrom Abwasser</td>             <td><input id="cantalope" size="5" onkeypress="if (event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;lt; 45 || event.keyCode 'amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;amp;apos;gt; 57) event.returnValue = false;" name="cantalope" type="text" /> m&sup3;/h</td>             <td><input disabled="disabled" id="vitamina" size="6" name="vitamina" value="0" type="text" /> Liter TMT&nbsp;15<sup>&reg;</sup>/h</td>         </tr>         <tr>             <td colspan="4">             <p>&nbsp;</p>             <p><input type="button" onclick="calculateHeavyMetal()" name="button" value="Berechnen" /> <input type="reset" name="Reset" value="Zur&uuml;cksetzen" /></p>             <p>&nbsp;</p>             </td>         </tr>     </tbody> </table>