
   var currentscore = 79;
   var gender = "null";

   //array answer(x) holds the current answer of question x
   //initially all answers are set to 0
   answer = new Array(56);

   function init() {
       scoref.score.value = "  " + currentscore;
	   for (i=0; i <56; i++)
	       answer[i] = 0;
		init_data();
   }
   
   questionScore = new Array( new Array(0),      // 0 choices for question 00 - dummy entry
                              new Array(2),      // 2 choices for question 01
                              new Array(6),      // 6 choices for question 02
							  new Array(2),      // 2 choices for question 03
							  new Array(0),      // 0 choices for question 04 - dummy entry
							  new Array(2),      // 2 choices for question 05
							  new Array(2),      // 2 choices for question 06
							  new Array(2),      // 2 choices for question 07
							  new Array(2),      // 2 choices for question 08
							  new Array(2),      // 2 choices for question 09
							  new Array(2),      // 2 choices for question 10
							  new Array(2),      // 2 choices for question 11
							  new Array(0),      // 0 choices for question 12 - dummy entry
							  new Array(0),      // 0 choices for question 13 - dummy entry
							  new Array(2),      // 2 choices for question 14
							  new Array(2),      // 2 choices for question 15
							  new Array(2),      // 2 choices for question 16
							  new Array(0),      // 0 choices for question 17 - dummy entry
							  new Array(2),      // 2 choices for question 18
							  new Array(2),      // 2 choices for question 19
							  new Array(2),      // 2 choices for question 20
							  new Array(3),      // 3 choices for question 21
							  new Array(0),      // 0 choices for question 22 - This entry is used by question 27 - 2
							  new Array(2),      // 2 choices for question 23
							  new Array(2),      // 2 choices for question 24
							  new Array(2),      // 2 choices for question 25
							  new Array(2),      // 2 choices for question 26
							  new Array(2),      // 2 choices for question 27
							  new Array(2),      // 2 choices for question 28
							  new Array(0),      // 0 choices for question 29 - dummy entry
							  new Array(0),      // 0 choices for question 30 - dummy entry
							  new Array(2),      // 2 choices for question 31
							  new Array(2),      // 2 choices for question 32
							  new Array(2),      // 2 choices for question 33
							  new Array(2),      // 2 choices for question 34
							  new Array(2),      // 2 choices for question 35
							  new Array(2),      // 2 choices for question 36
							  new Array(2),      // 2 choices for question 37
							  new Array(2),      // 2 choices for question 38
							  new Array(2),      // 2 choices for question 39
							  new Array(2),      // 2 choices for question 40
							  new Array(2),      // 2 choices for question 41
							  new Array(2),      // 2 choices for question 42
							  new Array(2),      // 2 choices for question 43
							  new Array(3),      // 0 choices for question 44
							  new Array(3),      // 3 choices for question 45
							  new Array(2),      // 2 choices for question 46
							  new Array(2),      // 2 choices for question 47
							  new Array(2),      // 2 choices for question 48
							  new Array(2),      // 2 choices for question 49
							  new Array(2),      // 2 choices for question 50
							  new Array(2),      // 2 choices for question 51
							  new Array(2),      // 2 choices for question 52
							  new Array(2),      // 2 choices for question 53
							  new Array(2),      // 2 choices for question 54
							  new Array(3)       // 3 choices for question 55
							)  
							  
   function init_data() {
   													   
       questionScore[1][0] =  1;                  //question 02 1st choice is Female = 1
       questionScore[1][1] = -2;                  //question 02 2nd choice is Male = -2
       questionScore[2][0] = -2;                  //question 01 1st choice is US = -2
       questionScore[2][1] = -1;                  //question 01 2nd choice is Austria-UK = -1
       questionScore[2][2] =  0;                  //question 01 3rd choice is Canada-France-Italy = 0
       questionScore[2][3] =  2;                  //question 01 4th choice is Australia-Singapore-Sweden = 2
       questionScore[2][4] =  3;                  //question 01 5th choice is Japan = 3
       questionScore[2][5] =  0;                  //question 01 6th choice is None of above = 0
       questionScore[3][0] =  3;                  //question 03 1st choice is Yes = 3
       questionScore[3][1] = -3;                  //question 03 2nd choice is No = -3
       questionScore[5][0] =  2;                  //question 05 1st choice is Yes = 2
       questionScore[5][1] =  0;                  //question 05 2nd choice is No = 0
       questionScore[6][0] = -3;                  //question 06 1st choice is Yes = -3
       questionScore[6][1] =  0;                  //question 06 2nd choice is No = 0
       questionScore[7][0] =  1;                  //question 07 1st choice is Yes = 1
       questionScore[7][1] = -3;                  //question 07 2nd choice is No = -3
       questionScore[8][0] =  1;                  //question 08 1st choice is Yes = 1
       questionScore[8][1] = -2;                  //question 08 2nd choice is No = -2
       questionScore[9][0] =  4;                  //question 09 1st choice is Yes = 4
       questionScore[9][1] =  0;                  //question 09 2nd choice is No = 0
       questionScore[10][0] =  2;                 //question 10 1st choice is Yes = 2
       questionScore[10][1] =  0;                 //question 10 2nd choice is No = 0
       questionScore[11][0] =  2;                 //question 11 1st choice is Yes = 2
       questionScore[11][1] = -3;                 //question 11 2nd choice is No = -3
       questionScore[14][0] = -5;                 //question 14 1st choice is Yes = -5
       questionScore[14][1] =  0;                 //question 14 2nd choice is No = 0
       questionScore[15][0] =  2;                 //question 15 1st choice is Yes = 2
       questionScore[15][1] =  0;                 //question 15 2nd choice is No = 0
       questionScore[16][0] = -1;                 //question 16 1st choice is left-handed = -1
       questionScore[16][1] =  0;                 //question 16 2nd choice is right-handed = 0
       questionScore[18][0] =  2;                 //question 18 1st choice is Yes = 2
       questionScore[18][1] =  0;                 //question 18 2nd choice is No = 0
       questionScore[19][0] =  3;                 //question 19 1st choice is Yes = 3
       questionScore[19][1] =  0;                 //question 19 2nd choice is No = 0
       questionScore[20][0] =  4;                 //question 20 1st choice is Yes = 4
       questionScore[20][1] = -3;                 //question 20 2nd choice is No = -3
       questionScore[21][0] =  2;                 //question 21 1st choice is Walk = 2
       questionScore[21][1] =  1;                 //question 21 2nd choice is By bicycle = 1
       questionScore[21][2] = -3;                 //question 21 3rd choice is By car = -3
       questionScore[22][0] =  1;                 //question 27 - 2 1st choice is Yes = 1
       questionScore[22][1] =  0;                 //question 27 - 2 2nd choice is No = 0
       questionScore[23][0] = -1;                 //question 23 1st choice is Yes = -1
       questionScore[23][1] =  0;                 //question 23 2nd choice is No = 0
       questionScore[24][0] = -4;                 //question 24 1st choice is Yes = -4
       questionScore[24][1] =  0;                 //question 24 2nd choice is No = 0
       questionScore[25][0] = -6;                 //question 25 1st choice is Yes = -6
       questionScore[25][1] =  0;                 //question 25 2nd choice is No = 0
       questionScore[26][0] =  5;                 //question 26 1st choice is Yes = 5
       questionScore[26][1] =  0;                 //question 26 2nd choice is No = 0
       questionScore[27][0] = -2;                 //question 27 part 1 1st choice is Yes = -2
       questionScore[27][1] =  0;                 //question 27 part 1 2nd choice is No = 0
       questionScore[28][0] =  1;                 //question 28 1st choice is Yes = 1
       questionScore[28][1] =  0;                 //question 28 2nd choice is No = 0
       questionScore[31][0] =  4;                 //question 31 1st choice is Yes = 4
       questionScore[31][1] =  0;                 //question 31 2nd choice is No = 0
       questionScore[32][0] =  2;                 //question 32 1st choice is Yes = 2
       questionScore[32][1] = -3;                 //question 32 2nd choice is No = -3
       questionScore[33][0] =  0;                 //question 33 1st choice is Yes = 0
       questionScore[33][1] = -1;                 //question 33 2nd choice is No = -1
       questionScore[34][0] =  2;                 //question 34 1st choice is Yes = 2
       questionScore[34][1] =  0;                 //question 34 2nd choice is No = 0
       questionScore[35][0] =  2;                 //question 35 1st choice is Yes = 2
       questionScore[35][1] = -1;                 //question 35 2nd choice is No = -1
       questionScore[36][0] =  1;                 //question 36 1st choice is Yes = 1
       questionScore[36][1] = -1;                 //question 36 2nd choice is No = -1
       questionScore[37][0] =  0;                 //question 37 1st choice is Yes = 0
       questionScore[37][1] = -1;                 //question 37 2nd choice is No = -1
       questionScore[38][0] =  2;                 //question 38 1st choice is Yes = 2
       questionScore[38][1] =  0;                 //question 38 2nd choice is No = 0
       questionScore[39][0] =  1;                 //question 39 1st choice is Yes = 1
       questionScore[39][1] = -1;                 //question 39 2nd choice is No = -1
       questionScore[40][0] = -2;                 //question 40 1st choice is Yes = -2
       questionScore[40][1] =  0;                 //question 40 2nd choice is No = 0
       questionScore[41][0] = -4;                 //question 41 1st choice is Yes = -4
       questionScore[41][1] =  0;                 //question 41 2nd choice is No = 0
       questionScore[42][0] =  0;                 //question 42 1st choice is Yes = 0
       questionScore[42][1] = -1;                 //question 42 2nd choice is No = -1
       questionScore[43][0] = -1;                 //question 43 1st choice is Yes = -1
       questionScore[43][1] =  0;                 //question 43 2nd choice is No = 0
       questionScore[44][0] = -7;                 //question 44 1st choice is more than 9 hours = -7
       questionScore[44][1] = -7;                 //question 44 2nd choice is less than 5 = -7
       questionScore[44][2] =  0;                 //question 44 3rd choice is none of above = 0
       questionScore[45][0] = -1;                 //question 45 1st choice is more than 9 hours = -1
       questionScore[45][1] =  2;                 //question 45 2nd choice is 6-8 hours bicycle = 2
       questionScore[45][2] =  1;                 //question 45 3rd choice is 5 hours or less = 1
       questionScore[46][0] =  1;                 //question 46 1st choice is Yes = 1
       questionScore[46][1] = -2;                 //question 46 2nd choice is No = -2
       questionScore[47][0] =  2;                 //question 47 1st choice is Yes = 2
       questionScore[47][1] = -3;                 //question 47 2nd choice is No = -3
       questionScore[48][0] =  2;                 //question 48 1st choice is Yes = 2
       questionScore[48][1] = -3;                 //question 48 2nd choice is No = -3
       questionScore[49][0] = -2;                 //question 49 1st choice is Yes = -2
       questionScore[49][1] =  0;                 //question 49 2nd choice is No = 0
       questionScore[50][0] =  1;                 //question 50 1st choice is Yes = 1
       questionScore[50][1] =  0;                 //question 50 2nd choice is No = 0
       questionScore[51][0] =  2;                 //question 51 1st choice is Yes = 2
       questionScore[51][1] = -2;                 //question 51 2nd choice is No = -2
       questionScore[52][0] =  0;                 //question 52 1st choice is Yes = 0
       questionScore[52][1] = -1;                 //question 52 2nd choice is No = -1
       questionScore[53][0] =  2;                 //question 53 1st choice is Yes = 2
       questionScore[53][1] = -2;                 //question 53 2nd choice is No = -2
       questionScore[54][0] =  1;                 //question 54 1st choice is Yes = 1
       questionScore[54][1] = -2;                 //question 54 2nd choice is No = -2
       questionScore[55][0] =  1;                 //question 55 1st choice is Satisfactory = 1
       questionScore[55][1] =  0;                 //question 55 2nd choice is No sure = 0
       questionScore[55][2] = -1;                 //question 55 3rd choice is Not satisfactory = -1
	   
   }
   	
   function processQuestion(currentform, index){
	
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    answer[index] = questionScore[index][counter];
                currentscore = currentscore + answer[index];
	//	        alert("currentscore is " + currentscore);
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

   function disableFemaleQuestions() {
   
   	   form48.BGroup[0].disabled = true;
	   form48.BGroup[1].disabled = true;
	   form50.BGroup[0].disabled = true;
	   form50.BGroup[1].disabled = true;
	   form53.BGroup[0].disabled = true;
	   form53.BGroup[1].disabled = true;

   }

   function enableFemaleQuestions() {
   
   	   form48.BGroup[0].disabled = false;
	   form48.BGroup[1].disabled = false;
	   form50.BGroup[0].disabled = false;
	   form50.BGroup[1].disabled = false;
	   form53.BGroup[0].disabled = false;
	   form53.BGroup[1].disabled = false;

   }
   
   function disableMaleQuestions() {
   
   	   form51.BGroup[0].disabled = true;
	   form51.BGroup[1].disabled = true;
	   form52.BGroup[0].disabled = true;
	   form52.BGroup[1].disabled = true;

   }
   
   function enableMaleQuestions() {
   
   	   form51.BGroup[0].disabled = false;
	   form51.BGroup[1].disabled = false;
	   form52.BGroup[0].disabled = false;
	   form52.BGroup[1].disabled = false;

   }

   function clearGenderSpecificQuestions() {

       //gender specific questions are #12, #13, #48, #50, #51, #52, #53
       if (answer[12] != 0) {currentscore = currentscore-answer[12]; answer[12] = 0;}
       if (answer[13] != 0) {currentscore = currentscore-answer[13]; answer[13] = 0;}
       if (answer[48] != 0) {currentscore = currentscore-answer[48]; answer[48] = 0;}
       if (answer[50] != 0) {currentscore = currentscore-answer[50]; answer[50] = 0;}
       if (answer[51] != 0) {currentscore = currentscore-answer[51]; answer[51] = 0;}
       if (answer[52] != 0) {currentscore = currentscore-answer[52]; answer[52] = 0;}
       if (answer[53] != 0) {currentscore = currentscore-answer[53]; answer[53] = 0;}
	   form12.BGroup[0].checked = false;
	   form12.BGroup[1].checked = false;
	   form13.BGroup[0].checked = false;
	   form13.BGroup[1].checked = false;
	   form48.BGroup[0].checked = false;
	   form48.BGroup[1].checked = false;
	   form50.BGroup[0].checked = false;
	   form50.BGroup[1].checked = false;
	   form51.BGroup[0].checked = false;
	   form51.BGroup[1].checked = false;
	   form52.BGroup[0].checked = false;
	   form52.BGroup[1].checked = false;
	   form53.BGroup[0].checked = false;
	   form53.BGroup[1].checked = false;

   }
   
   //set the gender of the viewer
   //if the gender has been chosen previously and it is different than what is selected this time,
   //all gender specific answers will be cleared
   function processQuestion01(currentform, index){
   
		 //alert("gender = " + gender);				
         if (gender != "null") {
		    //gender has been set previously. Determine if it has changed
			if (currentform.BGroup[0].checked && gender == "female") {
			   //gender is set to female again, do nothing
			   //alert(" female -> female");
			   return;
			}
			else if (currentform.BGroup[0].checked && gender == "male") {
			    //gender was set to male and now changed to female
			   alert(" You have changed your gender from male to female. Please reenter your answers on gender specific questions (#12, #13, #48, #50, #51, #52, and #53).");
    		   currentscore = currentscore-answer[index];   //revert gender score
			   answer[index] = questionScore[index][0];
               currentscore = currentscore + answer[index];
			   gender = "female";
               clearGenderSpecificQuestions();
			   disableMaleQuestions();
			   enableFemaleQuestions();
			}
			else if (currentform.BGroup[1].checked && gender == "male") {
			    //gender is set to male again, do nothing
			   //alert(" male -> male");
			   return;
			}
			else if (currentform.BGroup[1].checked && gender == "female") {
			    //gender was set to female and now changed to male
			   alert(" You have changed your gender from female to male. Please reenter your answers on gender specific questions (#12, #13, #48, #50, #51, #52, and #53).");
    		   currentscore = currentscore-answer[index];   //revert gender score
			   answer[index] = questionScore[index][1];
               currentscore = currentscore + answer[index];
			   gender = "male";
               clearGenderSpecificQuestions();
			   disableFemaleQuestions();
			   enableMaleQuestions();
			}
		 }
		 else {
		    //This is the first time that gender is set
			if (currentform.BGroup[0].checked) {
			    //female is selected
			    answer[index] = questionScore[index][0];
                currentscore = currentscore + answer[index];
			    gender = "female";
				disableMaleQuestions();
			    //alert("gender = " + gender);
			}	
			if (currentform.BGroup[1].checked) {
			    //male is selected
			    answer[index] = questionScore[index][1];
                currentscore = currentscore + answer[index];
			    gender = "male";
				disableFemaleQuestions();
			    //alert("gender = " + gender);
			}	

		 }
		 //display updated score
	     scoref.score.value = "  " + currentscore;

    }

   function processQuestion04(dropdown, index){
    
        //revert awarded score if this question has been answered previously
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 var myindex  = dropdown.selectedIndex
         var SelValue = dropdown.options[myindex].value
		 answer[index] = SelValue * 2;
		 //alert("processQuestion04 selected value = " + answer[index]);
		 currentscore = currentscore + answer[index];
		 scoref.score.value = "  " + currentscore;

    }
	
   function processQuestion12(currentform, index){

         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
				    if (answer[1] == 1)
					   answer[index] = -10;    //Yes, minus 10 for female
					else answer[index] = -5;   //No, minus 5 for male
			    }
				else answer[index] = 0;
                currentscore = currentscore + answer[index];
	//	        alert("currentscore is " + currentscore);
				scoref.score.value = "  " + currentscore;
             }
	     }
    }
	
   function processQuestion13(currentform, index){

         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
				    if (gender == "female")
					   answer[index] = -2;    //Yes, minus 2 for female
					else answer[index] = -1;   //No, minus 1 for male
			    }
				else answer[index] = 0;
                currentscore = currentscore + answer[index];
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

   function processQuestion17(dropdown, index){
    
        //revert awarded score if this question has been answered previously
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 var myindex  = dropdown.selectedIndex
         var SelValue = dropdown.options[myindex].value
		 answer[index] = SelValue * -1;
		 //alert("processQuestion17 selected value = " + answer[index]);
		 currentscore = currentscore + answer[index];
		 scoref.score.value = "  " + currentscore;

    }
	
   function processQuestion22(dropdown, index){
    
        //revert awarded score if this question has been answered previously
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 var myindex  = dropdown.selectedIndex
         var SelValue = dropdown.options[myindex].value
		 answer[index] = SelValue * 1;
		 //alert("processQuestion22 selected value = " + answer[index]);
		 currentscore = currentscore + answer[index];
		 scoref.score.value = "  " + currentscore;

    }
	
   function processQuestion29(dropdown, index){
    
        //revert awarded score if this question has been answered previously
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 var myindex  = dropdown.selectedIndex
         var SelValue = dropdown.options[myindex].value
		 answer[index] = SelValue * -2;
		 //alert("processQuestion04 selected value = " + answer[index]);
		 currentscore = currentscore + answer[index];
		 scoref.score.value = "  " + currentscore;

    }
	
	
   function processQuestion48(currentform, index){

         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }										
         else if (answer[1] == -2) { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("This question is for WOMEN only. Proceed to next one !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
					answer[index] = 2;        //Yes, plus 2
			    }
			    if (counter == 1) {
					answer[index] = -3;       //No, minus 3
			    }
                currentscore = currentscore + answer[index];
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

   function processQuestion50(currentform, index){

         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }										
         else if (answer[1] == -2) { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("This question is for WOMEN only. Proceed to next one !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
					answer[index] = 1;        //Yes, plus 1
			    }
			    if (counter == 1) {
					answer[index] = 0;       //No, 0
			    }
                currentscore = currentscore + answer[index];
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

   function processQuestion51(currentform, index){
        
         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }										
         else if (gender == "female") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("This question is for WOMEN only. Proceed to next one !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
					answer[index] = 2;        //Yes, plus 2
			    }
			    if (counter == 1) {
					answer[index] = -2;       //No, minus 2
			    }
                currentscore = currentscore + answer[index];
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

   function processQuestion52(currentform, index){
        
         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }										
         else if (gender == "female") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("This question is for WOMEN only. Proceed to next one !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
					answer[index] = 0;        //Yes, 0
			    }
			    if (counter == 1) {
					answer[index] = -1;       //No, minus 1
			    }
                currentscore = currentscore + answer[index];
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

   function processQuestion53(currentform, index){
        
         if (gender == "null") { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("Please answer question #2 (What is your gender?) first !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }										
         else if (answer[1] == -2) { 
		    //prompt user to answer question 2 if gender is not selected.
		    alert("This question is for WOMEN only. Proceed to next one !!");
			currentform.BGroup[0].checked = false;
			currentform.BGroup[1].checked = false;
		    return;
		 }
         if (answer[index] != 0) {currentscore = currentscore-answer[index];}
		 // Loop from zero to the one minus the number of radio button selections
         for (counter = 0; counter < currentform.BGroup.length; counter++) {
             if (currentform.BGroup[counter].checked) {
			    if (counter == 0) {
					answer[index] = 2;        //Yes, plus 2
			    }
			    if (counter == 1) {
					answer[index] = -2;       //No, minus 2
			    }
                currentscore = currentscore + answer[index];
				scoref.score.value = "  " + currentscore;
             }
	     }
    }

	



