<!----
var January = 1;
var February = 2;
var March = 3;
var April = 4;
var May = 5;
var June = 6;
var July = 7;
var August = 8;
var September = 9;
var October = 10;
var November = 11;
var December = 12;
var gen_month_one = 0
var gen_month_two = 0
var gen_month_three = 0



function ConvertMonth() 
{
todaysDate = new Date();
today = todaysDate.getDate();
month = todaysDate.getMonth() + 1;
var input_month_set_one = document.PSA_FORM.input_month_set_one.value;
var input_month_set_two = document.PSA_FORM.input_month_set_two.value;
var input_month_set_three = document.PSA_FORM.input_month_set_three.value;

/*------ converts and finds the years to month -------*/
  if (document.PSA_FORM.input_month_set_one.options[0].selected)
	alert("You did not select a month for the first test!")
	gen_month_one = 0;
  if (document.PSA_FORM.input_month_set_one.options[1].selected)
	gen_month_one = January
  if (document.PSA_FORM.input_month_set_one.options[2].selected)
	gen_month_one = February
  if (document.PSA_FORM.input_month_set_one.options[3].selected)
	gen_month_one = March
  if (document.PSA_FORM.input_month_set_one.options[4].selected)
	gen_month_one = April
  if (document.PSA_FORM.input_month_set_one.options[5].selected)
	gen_month_one = May
  if (document.PSA_FORM.input_month_set_one.options[6].selected)
	gen_month_one = June
  if (document.PSA_FORM.input_month_set_one.options[7].selected)
	gen_month_one = July
  if (document.PSA_FORM.input_month_set_one.options[8].selected)
	gen_month_one = August
  if (document.PSA_FORM.input_month_set_one.options[9].selected)
	gen_month_one = September
  if (document.PSA_FORM.input_month_set_one.options[10].selected)
	gen_month_one = October
  if (document.PSA_FORM.input_month_set_one.options[11].selected)
	gen_month_one = November
  if (document.PSA_FORM.input_month_set_one.options[12].selected)
	gen_month_one = December

  if (document.PSA_FORM.input_month_set_two.options[0].selected)
	alert("You did not select a month for the second test!")
	gen_month_two = 0;
  if (document.PSA_FORM.input_month_set_two.options[1].selected)
	gen_month_two = January
  if (document.PSA_FORM.input_month_set_two.options[2].selected)
	gen_month_two = February
  if (document.PSA_FORM.input_month_set_two.options[3].selected)
	gen_month_two = March
  if (document.PSA_FORM.input_month_set_two.options[4].selected)
	gen_month_two = April
  if (document.PSA_FORM.input_month_set_two.options[5].selected)
	gen_month_two = May
  if (document.PSA_FORM.input_month_set_two.options[6].selected)
	gen_month_two = June
  if (document.PSA_FORM.input_month_set_two.options[7].selected)
	gen_month_two = July
  if (document.PSA_FORM.input_month_set_two.options[8].selected)
	gen_month_two = August
  if (document.PSA_FORM.input_month_set_two.options[9].selected)
	gen_month_two = September
  if (document.PSA_FORM.input_month_set_two.options[10].selected)
	gen_month_two = October
  if (document.PSA_FORM.input_month_set_two.options[11].selected)
	gen_month_two = November
  if (document.PSA_FORM.input_month_set_two.options[12].selected)
	gen_month_two = December 

  if (document.PSA_FORM.input_month_set_three.options[0].selected)
	alert("You did not select a month for the Third test!")
	gen_month_three = 0;
  if (document.PSA_FORM.input_month_set_three.options[1].selected)
	gen_month_three = January
  if (document.PSA_FORM.input_month_set_three.options[2].selected)
	gen_month_three = February
  if (document.PSA_FORM.input_month_set_three.options[3].selected)
	gen_month_three = March
  if (document.PSA_FORM.input_month_set_three.options[4].selected)
	gen_month_three = April
  if (document.PSA_FORM.input_month_set_three.options[5].selected)
	gen_month_three = May
  if (document.PSA_FORM.input_month_set_three.options[6].selected)
	gen_month_three = June
  if (document.PSA_FORM.input_month_set_three.options[7].selected)
	gen_month_three = July
  if (document.PSA_FORM.input_month_set_three.options[8].selected)
	gen_month_three = August
  if (document.PSA_FORM.input_month_set_three.options[9].selected)
	gen_month_three = September
  if (document.PSA_FORM.input_month_set_three.options[10].selected)
	gen_month_three = October
  if (document.PSA_FORM.input_month_set_three.options[11].selected)
	gen_month_three = November
  if (document.PSA_FORM.input_month_set_three.options[12].selected)
	gen_month_three = December

  if (gen_month_one > gen_month_two)
	{
	dif_OneandTwo = 12 - (gen_month_one - gen_month_two);
	}
  else
	{
	dif_OneandTwo =  gen_month_two - gen_month_one;
	}
  if (gen_month_two > gen_month_three)
	{
	dif_TwoandThree = 12 - (gen_month_two - gen_month_three);
	}
  else
	{
	dif_TwoandThree =  gen_month_three - gen_month_two;
	}
  if (gen_month_three > month)
	{
	dif_ThreeandMonth = 12 - (gen_month_three - month);
	}
  else
	{
	dif_ThreeandMonth =  month - gen_month_three;
	}
  
Year_to_month();

 if (gen_month_one > gen_month_two)
	{
	allMonth_one = yrTomnth_one + (dif_OneandTwo - 12);
	}
  else 
	{
	allMonth_one = yrTomnth_one + dif_OneandTwo;
	}
 if (gen_month_two > gen_month_three)
	{
	allMonth_two = yrTomnth_two + (dif_TwoandThree - 12);
	}
  else 
	{
	allMonth_two = yrTomnth_two + dif_TwoandThree;
	}
allMonth_three = yrTomnth_two + 6 ;
/*
 if (gen_month_three > month)
	{
	allMonth_three = yrTomnth_three + (dif_ThreeandMonth - 12);
	}
  else 
	{
	allMonth_three = yrTomnth_three + dif_ThreeandMonth;
	}
*/


 }



function Year_to_month() 
{
/*------ converts and finds the years to month -------*/


var year_one = document.PSA_FORM.year_one.value;
var year_two = document.PSA_FORM.year_two.value;
var year_three = document.PSA_FORM.year_three.value;


  if (year_one > year_two)
	{
	alert("Year ONE is after year TWO. \n"
		  + "Please enter your Dates in chronological order.")
	yrTomnth_one = 0;
	}
  else if (year_one == year_two)
	{
	yrTomnth_one = 0;
	}
  else if (year_one < year_two)
	{
	yrTomnth_one = ((year_two - year_one) * 12);
	}
  if (year_two > year_three)
	{
	alert("Year TWO is after year THREE. \n"
		  + "Please enter your Dates in chronological order.")
	yrTomnth_two = 0;
	}
  else if (year_two == year_three)
	{
	yrTomnth_two = 0;
	}
  else if (year_two < year_three)
	{
	yrTomnth_two = ((year_three - year_two) * 12);
	}
/*
  if (year_three > year2000Ready)
	{
	alert("Year THREE is after" + year2000Ready + ". \n"
		  + "Please enter your Dates in chronological order.")
	yrTomnth_three = 0;
	}
  else if (year_three == year2000Ready)
	{
	yrTomnth_three = 0;
	}
  else if (year_three < year_three)
	{
	yrTomnth_three = ((year2000Ready - year_three) * 12);
	}
*/
}


//----->
