with( AXANZ ){ 
AXANZ.rightKiwiSaverInvestment = function(){ 

 return{ calculate : calculate }; 

   function calculate() { 

       one = getCheckedValue( [ "one30", "one60", "one90", "one120" ]); 
       two = getCheckedValue( [ "two20", "two40", "two60", "two80" ]); 
       three = getCheckedValue( [ "three20", "three40", "three60", "three80", "three100" ]); 

       if( ! one ){ 
           alert("You must make a selection for Question One"); 
           return; 
       } 

       if( ! two ){ 
           alert("You must make a selection for Question Two"); 
           return; 
       } 

       if( ! three ){ 
           alert("You must make a selection for Question Three"); 
           return; 
       } 
       
       Total = one + two + three; 

       if (Total <= 130) { 
           location = "../KiwiSaverKnowingInvestmentA0/"; 
       } 

       else if (Total >= 140 && Total <= 240) { 
           location = "../KiwiSaverKnowingInvestmentA1/"; 
       } 

       else if (Total >= 250 && Total <= 270) { 
           location = "../KiwiSaverKnowingInvestmentA2/"; 
       } 

       else { 
           location = "../KiwiSaverKnowingInvestmentA3/"; 
       } 
   } 
}(); 
} 

