<!----



var dif_OneandTwo = 0;
var dif_TwoandThree = 0;
var dif_ThreeandMonth = 0;
var year_one = 0;
var year_two = 0;
var year_three = 0;
var allMonth_one = 0;
var allMonth_two = 0;
var allMonth_three = 0;
var aveNgMl = 0;





function findPSA() 
{
ConvertMonth();

var psa_one = document.PSA_FORM.psa_one.value;
var psa_two = document.PSA_FORM.psa_two.value;
var psa_three = document.PSA_FORM.psa_three.value;


aveNgMl += psa_two - psa_one;
aveNgMl += psa_three - psa_two;
aveNgMl = (aveNgMl/2);
lowestMonth = 6;
highestMonth = 24;

PSA_level = .75;

  if (allMonth_one > lowestMonth && allMonth_one < highestMonth &&  aveNgMl <= PSA_level)
	document ['risk'].src = "risk_low.gif";

  else if (allMonth_one > lowestMonth && allMonth_one < highestMonth &&  aveNgMl > PSA_level)
	document ['risk'].src = "risk_high.gif"; 

  else
	{
	alert("Your last test was under six month or over two years, between test #1 and #2");
	}

  if (allMonth_two > lowestMonth && allMonth_two < highestMonth &&  aveNgMl <= PSA_level)
	document ['risk'].src = "risk_low.gif";

  else if (allMonth_two > lowestMonth && allMonth_two < highestMonth &&  aveNgMl > PSA_level)
	document ['risk'].src = "risk_high.gif"; 

  else
	{
	//alert("Your last test was under six month or over two years , between test #2 and #3");
	}





document.PSA_FORM.average_change.value = fmt_Dec(aveNgMl) + " ng/ml/yr";
aveNgMl = aveNgMl * 0;

}



function fmt_Dec(value)
{

   result= Math.floor(value) + ".";

   var round=100*(value-Math.floor(value))+0.5;

   result += Math.floor(round/10);

   result += Math.floor(round%10);

   return result;
}



// -->

