function HRT()
{var AgeNo=Heart_Rate_Chart.age.value;
if (AgeNo=="") 
{alert("Your age, please");
Heart_Rate_Chart.age.focus();
return false}
var Calc=(220-AgeNo);
age.innerHTML="<style='text-align:left'>Age :&nbsp;&nbsp;&nbsp;"+AgeNo+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='images/running_man.gif' border='0'>"
heartRateZone.innerHTML="Heart Rate Zone";
twenty.innerHTML="20%";
thirty.innerHTML="30%";
forty.innerHTML="40%";
fifty.innerHTML="50%";
sixty.innerHTML="60%";
seventy.innerHTML="70%";
eighty.innerHTML="80%";
ninety.innerHTML="90%";
hundred.innerHTML="100%";

beatsPerMinute.innerHTML="Beats per Minute";
twentyV.innerHTML=parseInt(Calc*.2);
thirtyV.innerHTML=parseInt(Calc*.3);
fortyV.innerHTML=parseInt(Calc*.4);
fiftyV.innerHTML=parseInt(Calc*.5);
sixtyV.innerHTML=parseInt(Calc*.6);
seventyV.innerHTML=parseInt(Calc*.7);
eightyV.innerHTML=parseInt(Calc*.8);
ninetyV.innerHTML=parseInt(Calc*.9);
hundredV.innerHTML=parseInt(Calc*1);
comments.innerHTML="<br><ol><li> Your desired heart rate range is between <b>"+parseInt(Calc*.6)+" and "+parseInt(Calc*.8)+" beats per minute</b>. This is the level of activity that ensures you are getting all the health benefits of an aerobic workout.<p><li> In practical terms this may mean exercising at an intensity where you can just about have a plain conversation while working out.<p><li> You can verify your heart rate zone. You check the beats-per-minute by taking your pulse while you exercise.<br><ul type='a'><li> Use your index finger to locate the prominent bone on the thumb side of your wrist.<br><li> Slide your finger down gently towards the centre of your wrist.<br><li> Count the number of beats for 12 seconds, then multiply by 5.</ul><p><li> Generally, the fitter you are, the closer you will be able to safely move towards your maximal heart rate.<p></ol>See also :<a href='Perceived_Exercise_Intensity.asp'><span onmouseover='this.className='Over'' onmouseout='this.className='OFF''> How Much Exercise Do I need?</span></a>"
}

function addbookmark()
{if (document.all)
{window.external.AddFavorite(document.location,document.title)}
}
function putFocus(formInst, elementInst)
{document.forms[0].elements[0].focus();}

var clockID=0
function UpdateClock()
{
if (clockID)
{clearTimeout(clockID);
clockID = 0;}

var H,M,S,Mth,Day,AMPM,Yr
var tDate = new Date();
Day=tDate.getDate()

Mth=tDate.getMonth()+1
if (Mth==1){Mth="Jan"}
if (Mth==2){Mth="Feb"}
if (Mth==3){Mth="Mar"}
if (Mth==4){Mth="Apr"}
if (Mth==5){Mth="May"}
if (Mth==6){Mth="Jun"}
if (Mth==7){Mth="Jul"}
if (Mth==8){Mth="Aug"}
if (Mth==9){Mth="Sep"}
if (Mth==10){Mth="Oct"}
if (Mth==11){Mth="Nov"}
if (Mth==12){Mth="Dec"}

Yr=tDate.getFullYear()

H=tDate.getHours();
if (H>11)
{AMPM="pm";}
else
{AMPM="am";}

if (H>12)
{H=H-12;}

if (H<10)
{H="0"+H;}

M=tDate.getMinutes()
if (M<10)
{M="0"+M;}

S=tDate.getSeconds()
if (S<10)
{S="0"+S;}

theTime.value = Mth+" "+Day+" "+Yr + "::"
+ H + ":" + M + ":" + S +" "+ AMPM;
clockID = setTimeout("UpdateClock()",1000);
}

var clockID=0
function StartClock() {
clockID = setTimeout("UpdateClock()",500);
}

function KillClock() {
if (clockID)
 {clearTimeout(clockID);
 clockID = 0;}
}

var clockID1=0
function UpdateClock1()
{
if (clockID1)
{clearTimeout(clockID1);
clockID1 = 0;}

var tDate = new Date();
Day=tDate.getDate()
if (Day<10)
{Day="0"+Day;}

Mth=tDate.getMonth()+1
if (Mth==1){Mth="Jan"}
if (Mth==2){Mth="Feb"}
if (Mth==3){Mth="Mar"}
if (Mth==4){Mth="Apr"}
if (Mth==5){Mth="May"}
if (Mth==6){Mth="Jun"}
if (Mth==7){Mth="Jul"}
if (Mth==8){Mth="Aug"}
if (Mth==9){Mth="Sep"}
if (Mth==10){Mth="Oct"}
if (Mth==11){Mth="Nov"}
if (Mth==12){Mth="Dec"}

Yr=tDate.getFullYear()

H=tDate.getHours();
if (H>11)
{AMPM="pm";}
else
{AMPM="am";}

if (H>12)
{H=H-12;}

if (H<10)
{H="0"+H;}

M=tDate.getMinutes()
if (M<10)
{M="0"+M;}

S=tDate.getSeconds()
if (S<10)
{S="0"+S;}

theClock1.theTime1.value = Day + "-" + Mth + "-" + Yr + "::"
+ H + ":" + M + ":" + S + AMPM;
clockID1 = setTimeout("UpdateClock1()",1000);
}

function StartClock1() {
clockID1 = setTimeout("UpdateClock1()",500);
}

function KillClock1() {
if (clockID1)
 {clearTimeout(clockID1);
 clockID1 = 0;}
}

