
<!--
function toggleVisibility(div_close, div_open)
{
	document.getElementById(div_close).style.display = "none";
	document.getElementById(div_open).style.display = "";
}

function check_form_step1()
{
	for (var i=0; i < document.assistant.age_group.length; i++)
   {
   if (document.assistant.age_group[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.age_group[i].value == "21-35")
	  {
		document.getElementById('step1').style.display = "none";
	  	document.getElementById('21_55_step1').style.display = "block";
	  }
	  
	  if (document.assistant.age_group[i].value == "36-45")
	  {
		document.getElementById('step1').style.display = "none";
	  	document.getElementById('21_55_step1').style.display = "block";
	  }
	  
	  if (document.assistant.age_group[i].value == "46-55")
	  {
		document.getElementById('step1').style.display = "none";
	  	document.getElementById('21_55_step1').style.display = "block";
	  }
	  
	  if (document.assistant.age_group[i].value == "56-65")
	  {
		document.getElementById('step1').style.display = "none";
	  	document.getElementById('55_over_step1').style.display = "block";
	  }
	  
	  if (document.assistant.age_group[i].value == "66-Over")
	  {
		document.getElementById('step1').style.display = "none";
	  	document.getElementById('55_over_step1').style.display = "block";
	  }
	  
      }
      
   }
}

function check_form_21_55_step1()
{
	for (var i=0; i < document.assistant.stronger.length; i++)
   {
   if (document.assistant.stronger[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.stronger[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "Do you want to be stronger?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('21_55_step1').style.display = "none";
		  document.getElementById('21_55_step2').style.display = "block";
	  }
	  
      }
      
   }
}

function check_form_21_55_step2()
{
	for (var i=0; i < document.assistant.sick_often.length; i++)
   {
   if (document.assistant.sick_often[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.sick_often[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "Do you often have colds or the flu?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('21_55_step2').style.display = "none";
		  document.getElementById('21_55_step3').style.display = "block";
	  }
	  
      }
      
   }
}

function check_form_21_55_step3()
{
	for (var i=0; i < document.assistant.focus_better.length; i++)
   {
   if (document.assistant.focus_better[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.focus_better[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "Do you want to be able to focus better during sports tests etc?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('completed_step').value = "21_55 no choice";
		  document.forms["assistant"].submit();
	  }
	  
      }
      
   }
}

function check_form_55_over_step1()
{
	for (var i=0; i < document.assistant.heart.length; i++)
   {
   if (document.assistant.heart[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.heart[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "Do you worry about your heart?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('55_over_step1').style.display = "none";
		  document.getElementById('55_over_step2').style.display = "block";
	  }
	  
      }
      
   }
}

function check_form_55_over_step2()
{
	for (var i=0; i < document.assistant.focusing.length; i++)
   {
   if (document.assistant.focusing[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.focusing[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "Do you forget and have difficulties with focusing?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('55_over_step2').style.display = "none";
		  document.getElementById('55_over_step3').style.display = "block";
	  }
	  
      }
      
   }
}

function check_form_55_over_step3()
{
	for (var i=0; i < document.assistant.fatigued.length; i++)
   {
   if (document.assistant.fatigued[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.fatigued[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "Do you feel fatigued during the day?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('55_over_step3').style.display = "none";
		  document.getElementById('55_over_step4').style.display = "block";
	  }
	  
      }
      
   }
}

function check_form_55_over_step4()
{
	for (var i=0; i < document.assistant.flu_often.length; i++)
   {
   if (document.assistant.flu_often[i].checked)
      {
      //alert(document.assistant.age_group[i].value);
	  if (document.assistant.flu_often[i].value == "Yes")
	  {
		  document.getElementById('completed_step').value = "55_over Do you often have colds or the flu?";
		  document.forms["assistant"].submit();
	  } else {
		  document.getElementById('completed_step').value = "55_over no choice";
		  document.forms["assistant"].submit();
	  }
	  
      }
      
   }
}
-->
