<!-- Author: Brian Mackenzie -->
<!-- Date: 11th March 2004 -->
<!-- Version: 1.0 -->
<!-- Function:  Calculate type of shoe   -->
<!-- Required by: shoes.htm -->
<!-- Copyright Brian Mackenzie 2004 -->

function calculate()
{

var foot = document.shoe.foot.options[document.shoe.foot.selectedIndex].value;
var weight = document.shoe.weight.options[document.shoe.weight.selectedIndex].value;
var run = document.shoe.run.options[document.shoe.run.selectedIndex].value;
if ((run=="r1") && (weight=="H"))

{
  if (foot=="P")
  {
    <!-- Steady road running/over 13 stone/pronator-->
	 
    stype = 'Motion Control';
  }
  else
  {
   <!-- Steady road running/over 13 stone/not a pronator-->
	
   stype = 'Cushion/Motion Control';
  }
}

if ((run=="r1") && (weight=="M"))
{
  if (foot=="P")
  {
   <!-- Steady road running/9 to 13 stone/pronator-->
	
	stype = 'Support';
  }
  else
  {
  <!-- Steady road running/9 to 13 stone/not a pronator-->
  
   stype = 'Cushion';
  }
}

if ((run=="r1") && (weight=="U"))
{
  if (foot=="P")
  {
  <!-- Steady road running/under 9 stone/pronator-->
  
    stype = 'Lightweight(Supportive)';
  }
  else
  {
   <!-- Steady road running/under 9 stone/not a pronator-->
	
   stype = 'Lightweight';
  }
}

if ((run=="r2") && (weight=="H"))
{
  if (foot=="P")
  {
    <!-- Fast road running/over 13 stone/pronator-->
	 
    stype = 'Support';
  }
  else
  {
   <!-- Fast road running/over 13 stone/not a pronator-->
	
   stype = 'Cushion';
  }
}

if ((run=="r2") && (weight=="M"))
{
  if (foot=="P")
  {
   <!-- Fast road running/9 to 13 stone/pronator-->
	
	stype = 'Lightweight (Support)';
  }
  else
  {
  <!-- Fast road running/9 to 13 stone/not a pronator-->
  
   stype = 'Lightweight';
  }
}

if ((run=="r2") && (weight=="U"))
{
  if (foot=="P")
  {
  <!-- Steady road running/under 9 stone/pronator-->
  
    stype = 'Lightweight(Supportive)';
  }
  else
  {
   <!-- Steady road running/under 9 stone/not a pronator-->
	
   stype = 'Lightweight';
  }
}

if ((run=="r3") && (weight=="H"))
{
  if (foot=="P")
  {
    <!-- Road racing/over 13 stone/pronator-->
	 
    stype = 'Lightweight(Supportive)';
  }
  else
  {
   <!-- Road racing/over 13 stone/not a pronator-->
	
   stype = 'Lightweight';
  }
}

if ((run=="r3") && (weight=="M"))
{
  if (foot=="P")
  {
   <!-- Raod racing/9 to 13 stone/pronator-->
	
	stype = 'Racer (Supportive)';
  }
  else
  {
  <!-- Road racing/9 to 13 stone/not a pronator-->
  
   stype = 'Racer';
  }
}

if ((run=="r3") && (weight=="U"))
{
  if (foot=="P")
  {
  <!-- Road racing/under 9 stone/pronator-->
  
    stype = 'Racer';
  }
  else
  {
   <!-- Road racing/under 9 stone/not a pronator-->
	
   stype = 'Racer';
  }
}

<!-- Road and trail running-->
if (run=='r4')
  {
     stype='Trail'
  }
  document.shoe.shoetype.value = stype;
}

function vclear()
{
  document.shoe.shoetype.value = "";
}