<!-- Filename: paycheck.js -->

<!-- Original:  Dan Scott (dscott@wirepower.com) -->
<!-- Web Site:  http://www.wirepower.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function compute() {
with (document.paycheck) {
otrate.value = rate.value * otpercent.value;
if (hours.value > 40) ot.value = hours.value - 40;
if (hours.value > 40) hours.value = 40;
gross.value = (rate.value * hours.value) + otrate.value * ot.value;
tax.value = gross.value * taxrate.value;
total.value = gross.value - tax.value - other.value;
   }
}
//  End -->
</script>
