Javascript - Replace lots of if statements
One option is to have a map from key -> value

for example:

var var2 = radioResults[1].toString();
var gender = {'7707330': 'boy',
               '7707333': 'girl',
               '7707336': 'both'}[var2];


You could even put functions as the values. For example:

var var1 = radioResults[0].toString()
{'7707341': maori,
 '7707344': pasifika,
 '7707347': all}[var1](gender);