What it is supposed to do is add up each of the numbers put in the text boxes then calculate the average by dividing it by 5. I have to use onchange event handlers and 2 functions and return the result to the calcAvg function.To each text box add an onchange event handler that calls a function named calcavg() and passes the function the value of that text box by referencing its document object. In the performCalc() function calculate the average of the five numbers then return the result to the calcAvg function Here is what I have:\[code\]<html><head><title></title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><script type="text/javascript">function calcAvg(one, two, three, four, five){var one = document.totalf.one.value;var two = document.totalf.two.value;var three = document.totalf.three.value;var four = document.totalf.four.value;var five = document.totalf.five.value;return}function performCalc() {var one = document.totalf.one.value;var two = document.totalf.two.value;var three = document.totalf.three.value;var four = document.totalf.four.value;var five = document.totalf.five.value;var res = parseFloat(one + two + three + four + five);var calcResult = parseFloat(res/5);return}</script></head><body><form name="totalf" action="%20"><p>Input <input type="text" value="http://stackoverflow.com/questions/15537419/0" name="one" onchange="calcAvg(document.totalf.one.value)"></p> <p>Input <input type="text" value="http://stackoverflow.com/questions/15537419/0" name="two" onchange="calcAvg(document.totalf.two.value)"></p> <p>Input <input type="text" value="http://stackoverflow.com/questions/15537419/0" name="three" onchange="calcAvg(document.totalf.three.value)" ></p> <p>Input <input type="text" value="http://stackoverflow.com/questions/15537419/0" name="four" onchange="calcAvg(document.totalf.four.value)"></p> <p>Input <input type="text" value="http://stackoverflow.com/questions/15537419/0" name="five" onchange="calcAvg(document.totalf.five.value)"></p> <p>Result:<input type="text" name="res"></p></form></body></html>\[/code\]