<!-- Begin

function EXP(a,b)
{
t = 1.0;
 for(x = 1; x <= b; x++) 
    {
     t = t * a;
    }
ans = t;
return(ans);
}


function clearForm(form) {
	form.van.value = "0";
    form.fid.value = "0";
    form.trp.value = "0";
	form.mod120.value = "0";
	form.mod113.value = "1";
	form.age.value  = "30";
}


function equiv (form) {

var age = Number(form.age.value);


if ( isNaN(age) )
{
	alert("Error.  Please enter numerical values.");
}

var van = -0.0312*Math.pow(age, 2)+1.7579*age+66.27;
var trp = -0.0293*Math.pow(age, 2)+1.8045*age+65.755;
var fid = -0.015*Math.pow(age, 2)+0.3253*age+90.622;

var mod120 = 120-age;
var mod113 = 113-age;
 
form.van.value = Math.round(van*10)/10;   /* round to 1 places after the decimal */
form.fid.value = Math.round(fid*10)/10; 
form.trp.value = Math.round(trp*10)/10; 
form.mod120.value = Math.round(mod120*10)/10;
form.mod113.value = Math.round(mod113*10)/10;

}

// End -->