<!-- Author: Brian Mackenzie -->
<!-- Date: 11th March 2004 -->
<!-- Version: 1.0 -->
<!-- Function:  Calculate the results from the resting heart rate test -->
<!-- Required by: hrtest.htm -->
<!-- Copyright Brian Mackenzie 2004 -->


function calculate()
{
  var r1 = document.ohrt.r1.value;
  var r2 = document.ohrt.r2.value;

  document.ohrt.ohr.value = r2 - r1;
}

function valclear()
{
  document.ohrt.ohr.value = "";
}