/* This script and many more are available free online at The JavaScript Source :: http://www.javascriptsource.com Created by: Sandeep Gangadharan :: http://www.sivamdesign.com/scripts/ */ function getPercent() { theAnswer = ((document.form1.second.value - document.form1.first.value) / document.form1.first.value * 100); num1 = Math.pow(10, 2); document.form1.answer.value = (Math.round(theAnswer * num1) / num1) + "%"; }
Increase/Decrease From: To:
Percent of Gain:

Free JavaScripts provided
by The JavaScript Source