h = parent.frames[0];             // Homework Frame
ws = parent.frames[1];            // Work Sheet Frame
var imgPath = 'http://www.goschool.org/lesson5/images/'

// Exercise 1
ex1  = '5x + 11 = 91';
ex1a = '5x = 91 + 11';
ex1b = '5x = 91 - 11';

ex11s ='5x + 11 = 91<br>5x = 91 - 11';         // Ex. 1 first answer statement
ex11a = '5x = 80';                             // Ex. 1 first answer option a.)
ex11b = '5x = 75';                             // Ex. 1 first answer option b.)
ex11r = 'wrong1';                              // Wrong answer
ex11r = 'wrong1';
ex11r = 'wrong1';
				
ex12s ='5x + 11 = 91<br>5x = 91 - 11<br>5x = 80';
ex12a = 'x = 16';
ex12b = 'x = 15';
ex12r = 'wrong2';
ex12r = 'wrong2';
ex12r = 'wrong2';

ex13s ='5x + 11 = 91<br>5x = 91 - 11<br>5x = 80<br>x = 16<br>Correct, please go on to the next exercise!';
ex13a = 'lastAnswer';
ex13b = 'lastAnswer';
ex13r = 'wrong3';
ex13r = 'wrong3';
ex13r = 'wrong3';

// Exercise 2
ex2  = '7x - 19 = 6x + 53';
ex2a = '7x - 6x = 53 - 19'; // Wrong
ex2b = '7x - 6x = 53 + 19'; // Good 

ex21s ='7x - 19 = 6x + 53<br>7x - 6x = 53 + 19';  // Ex. 1 first answer statement
ex21a = 'x = 72';                                 // Good 
ex21b = 'x = 71';                                 // Wrong
ex21r = 'wrong1';
ex21r = 'wrong1';
ex21r = 'wrong1';
				
ex22s ='7x - 19 = 6x + 53<br>7x - 6x = 53 + 19<br>x = 72<br>Correct, please go on to the next exercise!';
ex22a = 'lastAnswer';
ex22b = 'lastAnswer';
ex22r = 'wrong2';
ex22r = 'wrong2';
ex22r = 'wrong2';

// Exercise 3
ex3  = '8x - 19 + 3x = 4x + 30';
ex3a = '8x + 3x + 4x = 30 + 19';                  // Wrong
ex3b = '8x + 3x - 4x = 30 + 19';                  // Good 

ex31s ='8x - 19 + 3x = 4x + 30<br>8x + 3x - 4x = 30 + 19';  // Ex. 1 first answer statement
ex31a = '7x = 49';                                // Good 
ex31b = '8x = 49';                                // Wrong
ex31r = 'wrong1';
ex31r = 'wrong1';
ex31r = 'wrong1';

ex32s ='8x - 19 + 3x = 4x + 30<br>8x + 3x - 4x = 30 + 19<br>7x = 49';
ex32a = 'x = 6';                                  // Wrong
ex32b = 'x = 7';                                  // Good 
ex32r = 'wrong2';
ex32r = 'wrong2';
ex32r = 'wrong2';
				
ex33s ='8x - 19 + 3x = 4x + 30<br>8x + 3x - 4x = 30 + 19<br>7x = 49<br>x = 7<br>Correct, please go on to the next exercise!';
ex33a = 'lastAnswer';
ex33b = 'lastAnswer';
ex33r = 'wrong3';
ex33r = 'wrong3';
ex33r = 'wrong3';

// Exercise 4 
ex4  = '3(x + 4) + 2(x - 7) = 38';
ex4a = '3x + 12 + 2x + 14 = 38';                  // Wrong
ex4b = '3x + 12 + 2x - 14 = 38';                  // Good 

ex41s ='3(x + 4) + 2(x - 7) = 38<br>3x + 12 + 2x - 14 = 38';  // Ex. 4 first answer statement
ex41a = '3x + 2x = 38 - 12 + 14';                 // Good 
ex41b = '3x + 2x = 38 + 12 + 14';                 // Wrong
ex41r = 'wrong1';
ex41r = 'wrong1';
ex41r = 'wrong1';

ex42s ='3(x + 4) + 2(x - 7) = 38<br>3x + 12 + 2x - 14 = 38<br>3x + 2x = 38 - 12 + 14';
ex42a = '5x = 45';                                 // Wrong
ex42b = '5x = 40';                                 // Good
ex42r = 'wrong2';
ex42r = 'wrong2';
ex42r = 'wrong2';

ex43s ='3(x + 4) + 2(x - 7) = 38<br>3x + 12 + 2x - 14 = 38<br>3x + 2x = 38 - 12 + 14<br>5x = 40';
ex43a = 'x = 8';                                 // Good
ex43b = 'x = 9';                                 // Wrong
ex43r = 'wrong3';
ex43r = 'wrong3';
ex43r = 'wrong3';

ex44s ='3(x + 4) + 2(x - 7) = 38<br>3x + 12 + 2x - 14 = 38<br>3x + 2x = 38 - 12 + 14<br>5x = 40<br>x = 8<br>Correct, please go on to the next exercise!';
ex44a = 'lastAnswer';
ex44b = 'lastAnswer';
ex44r = 'wrong4';
ex44r = 'wrong4';
ex44r = 'wrong4';

// Exercise 5
ex5  = '5 - (x + 3) = 3(x + 2)';
ex5a = '5 - x + 3 = 3x + 6';                  // Wrong
ex5b = '5 - x - 3 = 3x + 6';                  // Good 

ex51s ='5 - (x + 3) = 3(x + 2)<br>5 - x - 3 = 3x + 6';
ex51a = '- x - 3x = 6 - 5 + 3';               // Good 
ex51b = '- x - 3x = 6 - 5 - 3';               // Wrong
ex51r = 'wrong1';
ex51r = 'wrong1';
ex51r = 'wrong1';

ex52s ='5 - (x + 3) = 3(x + 2)<br>5 - x - 3 = 3x + 6<br>- x - 3x = 6 - 5 + 3';
ex52a = '- 4x = - 4';                         // Wrong
ex52b = '- 4x = 4';                           // Good
ex52r = 'wrong2';
ex52r = 'wrong2';
ex52r = 'wrong2';

ex53s ='5 - (x + 3) = 3(x + 2)<br>5 - x - 3 = 3x + 6<br>- x - 3x = 6 - 5 + 3<br>- 4x = 4';
ex53a = 'x = - 1';                            // Good
ex53b = 'x = 1';                              // Wrong
ex53r = 'wrong3';
ex53r = 'wrong3';
ex53r = 'wrong3';

ex54s ='5 - (x + 3) = 3(x + 2)<br>5 - x - 3 = 3x + 6<br>- x - 3x = 6 - 5 + 3<br>- 4x = 4<br>x = - 1<br>Correct, please go on to the next exercise!';
ex54a = 'lastAnswer';
ex54b = 'lastAnswer';
ex54r = 'wrong4';
ex54r = 'wrong4';
ex54r = 'wrong4';


// Exercise 6
ex6  = '<img height=38 width=100 src=\"' + imgPath + '/ec22.gif\">';
ex6a = '<img height=39 width=258 src=\"' + imgPath + '/ec22a.gif\">';        // Wrong
ex6b = '<img height=39 width=260 src=\"' + imgPath + '/ec22b.gif\">';        // Good 

ex61s ='<img height=38 width=100 src=\"' + imgPath + '/ec22.gif\"><br><img height=39 width=260 src=\"' + imgPath + '/ec22b.gif\">';
ex61a = '5x - 4x = 10';               // Good 
ex61b = '5x - 4x = 15';               // Wrong
ex61r = 'wrong1';
ex61r = 'wrong1';
ex61r = 'wrong1';

ex62s ='<img height=38 width=100 src=\"' + imgPath + '/ec22.gif\"><br><img height=39 width=260 src=\"' + imgPath + '/ec22b.gif\"><br>5x - 4x = 10';
ex62a = 'x = 10';                         // Wrong
ex62b = 'x = 15';                         // Good
ex62r = 'wrong2';
ex62r = 'wrong2';
ex62r = 'wrong2';

ex63s ='<img height=38 width=100 src=\"' + imgPath + '/ec22.gif\"><br><img height=39 width=260 src=\"' + imgPath + '/ec22b.gif\"><br>5x - 4x = 10<br>x = 10<br>Correct, please go on to the next exercise!';
ex63a = 'lastAnswer';
ex63b = 'lastAnswer';
ex63r = 'wrong3';
ex63r = 'wrong3';
ex63r = 'wrong3'; 


// Exercise 7
ex7  = '<img height=42 width=166 src=\"' + imgPath + '/ec23.gif\">';
ex7a = '<img height=48 width=284 src=\"' + imgPath + '/ec23a.gif\">';        // Wrong
ex7b = '<img height=48 width=281 src=\"' + imgPath + '/ec23b.gif\">';        // Good

ex71s ='<img height=42 width=166 src=\"' + imgPath + '/ec23.gif\"><br><img height=48 width=281 src=\"' + imgPath + '/ec23b.gif\">';
ex71a = '4(x + 2) = 5(x - 3) + 40';       // Good
ex71b = '5(x + 2) = 5(x - 3) + 40';       // Wrong
ex71r = 'wrong1';
ex71r = 'wrong1';
ex71r = 'wrong1';

ex72s ='<img height=42 width=166 src=\"' + imgPath + '/ec23.gif\"><br><img height=48 width=281 src=\"' + imgPath + '/ec23b.gif\"><br>4(x + 2) = 5(x - 3) + 40';
ex72a = '4x + 8 = 5x + 15 + 40';          // Wrong
ex72b = '4x + 8 = 5x - 15 + 40';          // Good
ex72r = 'wrong2';
ex72r = 'wrong2';
ex72r = 'wrong2';

ex73s ='<img height=42 width=166 src=\"' + imgPath + '/ec23.gif\"><br><img height=48 width=281 src=\"' + imgPath + '/ec23b.gif\"><br>4(x + 2) = 5(x - 3) + 40<br>4x + 8 = 5x - 15 + 40';
ex73a = '4x - 5x = -15 + 40 - 8';         // Good 
ex73b = '4x + 5x = -15 + 40 - 8';         // Wrong
ex73r = 'wrong3';
ex73r = 'wrong3';
ex73r = 'wrong3';

ex74s ='<img height=42 width=166 src=\"' + imgPath + '/ec23.gif\"><br><img height=48 width=281 src=\"' + imgPath + '/ec23b.gif\"><br>4(x + 2) = 5(x - 3) + 40<br>4x + 8 = 5x - 15 + 40<br>4x - 5x = -15 + 40 - 8';
ex74a = '- x = 17 &nbsp; and multiply by (-1) to set positive x';       // Good 
ex74b = '- x = 18 &nbsp; and multiply by (-1) to set positive x';       // Wrong
ex74r = 'wrong4';
ex74r = 'wrong4';
ex74r = 'wrong4';

ex75s ='<img height=42 width=166 src=\"' + imgPath + '/ec23.gif\"><br><img height=48 width=281 src=\"' + imgPath + '/ec23b.gif\"><br>4(x + 2) = 5(x - 3) + 40<br>4x + 8 = 5x - 15 + 40<br>4x - 5x = -15 + 40 - 8<br>x = - 17<br>Correct, please go on to the next exercise!';
ex75a = 'lastAnswer';       // Good
ex75b = 'lastAnswer';       // Wrong
ex75r = 'wrong5';
ex75r = 'wrong5';
ex75r = 'wrong5';

// Exercise 8
ex8  = '<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\">';
ex8a = '<img height=39 width=402 src=\"' + imgPath + '/ec24a.gif\">';        // Wrong
ex8b = '<img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\">';        // Good

ex81s ='<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\"><br><img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\">';
ex81a = '3(x + 2) + 2(x - 1) = 24';       // Good
ex81b = '3(x + 2) + 2(x - 1) = 28';       // Wrong
ex81r = 'wrong1';
ex81r = 'wrong1';
ex81r = 'wrong1';

ex82s ='<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\"><br><img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\"><br>3(x + 2) + 2(x - 1) = 24';
ex82a = '3x + 6 + 2x + 2 = 24';           // Wrong
ex82b = '3x + 6 + 2x - 2 = 24';           // Good
ex82r = 'wrong2';
ex82r = 'wrong2';
ex82r = 'wrong2';

ex83s ='<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\"><br><img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\"><br>3(x + 2) + 2(x - 1) = 24<br>3x + 6 + 2x - 2 = 24';
ex83a = '3x + 2x = 24 - 6 + 2';           // Good
ex83b = '3x + 2x = 24 + 6 + 2';           // Wrong
ex83r = 'wrong3';
ex83r = 'wrong3';
ex83r = 'wrong3';

ex84s ='<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\"><br><img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\"><br>3(x + 2) + 2(x - 1) = 24<br>3x + 6 + 2x - 2 = 24<br>3x + 2x = 24 - 6 + 2';
ex84a = '5x = 20';                        // Good
ex84b = '5x = 22';                        // Wrong
ex84r = 'wrong4';
ex84r = 'wrong4';
ex84r = 'wrong4';

ex85s ='<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\"><br><img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\"><br>3(x + 2) + 2(x - 1) = 24<br>3x + 6 + 2x - 2 = 24<br>3x + 2x = 24 - 6 + 2<br>5x = 20';
ex85a = 'x = 5';                        // Wrong
ex85b = 'x = 4';                        // Good
ex85r = 'wrong5';
ex85r = 'wrong5';
ex85r = 'wrong5';

ex86s ='<img height=38 width=248 src=\"' + imgPath + '/ec24.gif\"><br><img height=39 width=366 src=\"' + imgPath + '/ec24b.gif\"><br>3(x + 2) + 2(x - 1) = 24<br>3x + 6 + 2x - 2 = 24<br>3x + 2x = 24 - 6 + 2<br>5x = 20<br>x = 4<br>Correct, please go on to the next exercise!';
ex86a = 'lastAnswer';
ex86b = 'lastAnswer';
ex86r = 'wrong6';
ex86r = 'wrong6';
ex86r = 'wrong6';


// Exercise 9
ex9  = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\">';
ex9a = '<img height=47 width=350 src=\"' + imgPath + '/ec25a.gif\">';        // Wrong
ex9b = '<img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\">';        // Good

ex91s = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\"><br><img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\">';
ex91a = '5x - 2(1 - 3x) + 20 = x';        // Good 
ex91b = '2x - 2(1 - 3x) + 20 = x';        // Wrong
ex91r = 'wrong1';
ex91r = 'wrong1';
ex91r = 'wrong1';

ex92s = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\"><br><img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\"><br>5x - 2(1 - 3x) + 20 = x';
ex92a = '5x - 2 - 6x + 20 = x';           // Wrong
ex92b = '5x - 2 + 6x + 20 = x';           // Good 
ex92r = 'wrong2';
ex92r = 'wrong2';
ex92r = 'wrong2';

ex93s = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\"><br><img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\"><br>5x - 2(1 - 3x) + 20 = x<br>5x - 2 + 6x + 20 = x';
ex93a = '5x + 6x - x = 2 - 20';           // Good 
ex93b = '5x + 6x + x = 2 - 20';           // Wrong
ex93r = 'wrong3';
ex93r = 'wrong3';
ex93r = 'wrong3';

ex94s = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\"><br><img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\"><br>5x - 2(1 - 3x) + 20 = x<br>5x - 2 + 6x + 20 = x<br>5x + 6x - x = 2 - 20';
ex94a = '10x = -18';                      // Good 
ex94b = '11x = -18';                      // Wrong
ex94r = 'wrong4';
ex94r = 'wrong4';
ex94r = 'wrong4';

ex95s = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\"><br><img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\"><br>5x - 2(1 - 3x) + 20 = x<br>5x - 2 + 6x + 20 = x<br>5x + 6x - x = 2 - 20<br>10x = -18';
ex95a = 'x = -1.08';                      // Wrong
ex95b = 'x = -1.8';                       // Good 
ex95r = 'wrong5';
ex95r = 'wrong5';
ex95r = 'wrong5';

ex96s = '<img height=43 width=194 src=\"' + imgPath + '/ec25.gif\"><br><img height=47 width=397 src=\"' + imgPath + '/ec25b.gif\"><br>5x - 2(1 - 3x) + 20 = x<br>5x - 2 + 6x + 20 = x<br>5x + 6x - x = 2 - 20<br>10x = -18<br>x = -1.8<br>Correct, please go on to the next exercise!';
ex96a = 'lastAnswer';
ex96b = 'lastAnswer';
ex96r = 'wrong6';
ex96r = 'wrong6';
ex96r = 'wrong6';


// Exercise 10
ex10  = '2(2x - 1) - (2x + 3) = 3(x - 2)';
ex10a = '4x + 2 - 2x - 3 = 3x - 6';        // Wrong
ex10b = '4x - 2 - 2x - 3 = 3x - 6';        // Good 

ex101s = '2(2x - 1) - (2x + 3) = 3(x - 2)<br>4x - 2 - 2x - 3 = 3x - 6';
ex101a = '4x - 2x - 3x = - 6 + 2 + 3';     // Good 
ex101b = '4x - 2x + 3x = - 6 + 2 + 3';     // Wrong 
ex101r = 'wrong1';
ex101r = 'wrong1';
ex101r = 'wrong1';

ex102s = '2(2x - 1) - (2x + 3) = 3(x - 2)<br>4x - 2 - 2x - 3 = 3x - 6<br>4x - 2x - 3x = - 6 + 2 + 3';
ex102a = 'x = -1';            // Wrong
ex102b = '-x = -1 &nbsp; and multiply by (-1) to set positive x';           // Good 
ex102r = 'wrong2';
ex102r = 'wrong2';
ex102r = 'wrong2';

ex103s = '2(2x - 1) - (2x + 3) = 3(x - 2)<br>4x - 2 - 2x - 3 = 3x - 6<br>4x - 2x - 3x = - 6 + 2 + 3<br>-x = -1<br>x = 1<br>Correct, please go on to the next exercise!';
ex103a = 'lastAnswer';
ex103b = 'lastAnswer';
ex103r = 'wrong3';
ex103r = 'wrong3';
ex103r = 'wrong3';


// Exercise 11
x11  = '(x - 3)(x + 4) = (x - 1)(x + 5) - 1';
x11a = '<img height=30 width=420 src=\"' + imgPath + '/hw11a.gif\">';        // Wrong
x11b = '<img height=30 width=420 src=\"' + imgPath + '/hw11b.gif\">';        // Good 

x111s = '(x - 3)(x + 4) = (x - 1)(x + 5) - 1<br><img height=30 width=420 src=\"' + imgPath + '/hw11b.gif\">';
x111a = '<img height=30 width=453 src=\"' + imgPath + '/hw111a.gif\">';      // Good 
x111b = '<img height=30 width=453 src=\"' + imgPath + '/hw111b.gif\">';      // Wrong 
x111r = 'wrong1';
x111r = 'wrong1';
x111r = 'wrong1';

x112s = '(x - 3)(x + 4) = (x - 1)(x + 5) - 1<br><img height=30 width=420 src=\"' + imgPath + '/hw11b.gif\"><br><img height=30 width=453 src=\"' + imgPath + '/hw111a.gif\">';
x112a = '-x = 6';              // Wrong
x112b = '-3x = 6';             // Good 
x112r = 'wrong2';
x112r = 'wrong2';
x112r = 'wrong2';

x113s = '(x - 3)(x + 4) = (x - 1)(x + 5) - 1<br><img height=30 width=420 src=\"' + imgPath + '/hw11b.gif\"><br><img height=30 width=453 src=\"' + imgPath + '/hw111a.gif\"><br>-3x = 6';
x113a = 'x = 2';                // Wrong
x113b = 'x = -2';               // Good 
x113r = 'wrong3';
x113r = 'wrong3';
x113r = 'wrong3';

x114s = '(x - 3)(x + 4) = (x - 1)(x + 5) - 1<br><img height=30 width=420 src=\"' + imgPath + '/hw11b.gif\"><br><img height=30 width=453 src=\"' + imgPath + '/hw111a.gif\"><br>-3x = 6<br>x = -2<br>Correct, please go on to the next exercise!';
x114a = 'lastAnswer';
x114b = 'lastAnswer';
x114r = 'wrong4';
x114r = 'wrong4';
x114r = 'wrong4';


// Exercise 12
x12  = '(2x - 3)(x - 1) = 6 + 2(x + 2)(x + 3)';
x12a = '<img height=31 width=464 src=\"' + imgPath + '/hw12a.gif\">';        // Wrong
x12b = '<img height=31 width=463 src=\"' + imgPath + '/hw12b.gif\">';        // Good 

x121s = '(2x - 3)(x - 1) = 6 + 2(x + 2)(x + 3)<br><img height=31 width=463 src=\"' + imgPath + '/hw12b.gif\">';
x121a = '<img height=30 width=458 src=\"' + imgPath + '/hw121a.gif\">';      // Good 
x121b = '<img height=30 width=446 src=\"' + imgPath + '/hw121b.gif\">';      // Wrong 
x121r = 'wrong1';
x121r = 'wrong1';
x121r = 'wrong1';

x122s = '(2x - 3)(x - 1) = 6 + 2(x + 2)(x + 3)<br><img height=31 width=463 src=\"' + imgPath + '/hw12b.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw121a.gif\">';
x122a = '<img height=30 width=458 src=\"' + imgPath + '/hw122a.gif\">';      // Wrong
x122b = '<img height=30 width=458 src=\"' + imgPath + '/hw122b.gif\">';      // Good 
x122r = 'wrong2';
x122r = 'wrong2';
x122r = 'wrong2';

x123s = '(2x - 3)(x - 1) = 6 + 2(x + 2)(x + 3)<br><img height=31 width=463 src=\"' + imgPath + '/hw12b.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw121a.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw122b.gif\">';
x123a = '-13x = 15';               // Wrong
x123b = '-15x = 15';               // Good 
x123r = 'wrong3';
x123r = 'wrong3';
x123r = 'wrong3';

x124s = '(2x - 3)(x - 1) = 6 + 2(x + 2)(x + 3)<br><img height=31 width=463 src=\"' + imgPath + '/hw12b.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw121a.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw122b.gif\"><br>-15x = 15';
x124a = 'x = 1';                // Wrong
x124b = 'x = -1';               // Good 
x124r = 'wrong4';
x124r = 'wrong4';
x124r = 'wrong4';

x125s = '(2x - 3)(x - 1) = 6 + 2(x + 2)(x + 3)<br><img height=31 width=463 src=\"' + imgPath + '/hw12b.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw121a.gif\"><br><img height=30 width=458 src=\"' + imgPath + '/hw122b.gif\"><br>-15x = 15<br>x = -1<br>Correct, please go on to the next exercise!';
x125a = 'lastAnswer';
x125b = 'lastAnswer';
x125r = 'wrong5';
x125r = 'wrong5';
x125r = 'wrong5';


// Exercise 13
x13  = '<img height=40 width=390 src=\"' + imgPath + '/ec26.gif\">';
x13a = '<img height=30 width=349 src=\"' + imgPath + '/hw13a.gif\">';        // Wrong
x13b = '<img height=30 width=348 src=\"' + imgPath + '/hw13b.gif\">';        // Good 

x131s = '<img height=40 width=390 src=\"' + imgPath + '/ec26.gif\"><br><img height=30 width=348 src=\"' + imgPath + '/hw13b.gif\">';
x131a = '<img height=30 width=349 src=\"' + imgPath + '/hw131a.gif\">';      // Good 
x131b = '<img height=30 width=349 src=\"' + imgPath + '/hw131b.gif\">';      // Wrong 
x131r = 'wrong1';
x131r = 'wrong1';
x131r = 'wrong1';

x132s = '<img height=40 width=390 src=\"' + imgPath + '/ec26.gif\"><br><img height=30 width=348 src=\"' + imgPath + '/hw13b.gif\"><br><img height=30 width=349 src=\"' + imgPath + '/hw131a.gif\">';
x132a = '2x = 6';      // Wrong
x132b = '3x = 6';      // Good 
x132r = 'wrong2';
x132r = 'wrong2';
x132r = 'wrong2';

x133s = '<img height=40 width=390 src=\"' + imgPath + '/ec26.gif\"><br><img height=30 width=348 src=\"' + imgPath + '/hw13b.gif\"><br><img height=30 width=349 src=\"' + imgPath + '/hw131a.gif\"><br>3x = 6';
x133a = 'x = 3';      // Wrong
x133b = 'x = 2';      // Good 
x133r = 'wrong3';
x133r = 'wrong3';
x133r = 'wrong3';

x134s = '<img height=40 width=390 src=\"' + imgPath + '/ec26.gif\"><br><img height=30 width=348 src=\"' + imgPath + '/hw13b.gif\"><br><img height=30 width=349 src=\"' + imgPath + '/hw131a.gif\"><br>3x = 6<br>x = 2<br>Correct, please go on to the next exercise!';
x134a = 'lastAnswer';
x134b = 'lastAnswer';
x134r = 'wrong4';
x134r = 'wrong4';
x134r = 'wrong4';


// Exercise 14
x14  = '<img height=42 width=312 src=\"' + imgPath + '/ec27.gif\">';
x14a = '<img height=30 width=355 src=\"' + imgPath + '/hw14a.gif\">';        // Wrong
x14b = '<img height=30 width=337 src=\"' + imgPath + '/hw14b.gif\">';        // Good 

x141s = '<img height=42 width=312 src=\"' + imgPath + '/ec27.gif\"><br><img height=30 width=337 src=\"' + imgPath + '/hw14b.gif\">';
x141a = '<img height=29 width=367 src=\"' + imgPath + '/hw141a.gif\">';      // Good 
x141b = '<img height=30 width=367 src=\"' + imgPath + '/hw141b.gif\">';      // Wrong 
x141r = 'wrong1';
x141r = 'wrong1';
x141r = 'wrong1';

x142s = '<img height=42 width=312 src=\"' + imgPath + '/ec27.gif\"><br><img height=30 width=337 src=\"' + imgPath + '/hw14b.gif\"><br><img height=29 width=367 src=\"' + imgPath + '/hw141a.gif\">';
x142a = '1.1x = 5.62';      // Wrong
x142b = '1.1x = 5.72';      // Good 
x142r = 'wrong2';
x142r = 'wrong2';
x142r = 'wrong2';

x143s = '<img height=42 width=312 src=\"' + imgPath + '/ec27.gif\"><br><img height=30 width=337 src=\"' + imgPath + '/hw14b.gif\"><br><img height=29 width=367 src=\"' + imgPath + '/hw141a.gif\"><br>1.1x = 5.72';
x143a = 'x = 5.1';      // Wrong
x143b = 'x = 5.2';      // Good 
x143r = 'wrong3';
x143r = 'wrong3';
x143r = 'wrong3';

x144s = '<img height=42 width=312 src=\"' + imgPath + '/ec27.gif\"><br><img height=30 width=337 src=\"' + imgPath + '/hw14b.gif\"><br><img height=29 width=367 src=\"' + imgPath + '/hw141a.gif\"><br>1.1x = 5.72<br>x = 5.2<br>Correct, please go on to the next exercise!';
x144a = 'lastAnswer';
x144b = 'lastAnswer';
x144r = 'wrong4';
x144r = 'wrong4';
x144r = 'wrong4';


// Exercise 15
x15  = '<img height=42 width=166 src=\"' + imgPath + '/ec28.gif\">';
x15a = '<img height=48 width=243 src=\"' + imgPath + '/hw15a.gif\">';        // Wrong
x15b = '<img height=48 width=266 src=\"' + imgPath + '/hw15b.gif\">';        // Good 

x151s = '<img height=42 width=166 src=\"' + imgPath + '/ec28.gif\"><br><img height=48 width=266 src=\"' + imgPath + '/hw15b.gif\">';
x151a = '2(x + 7) + 6 = 3(x - 2)';      // Good 
x151b = '2(x + 7) + 6 = 5(x - 2)';      // Wrong 
x151r = 'wrong1';
x151r = 'wrong1';
x151r = 'wrong1';

x152s = '<img height=42 width=166 src=\"' + imgPath + '/ec28.gif\"><br><img height=48 width=266 src=\"' + imgPath + '/hw15b.gif\"><br>2(x + 7) + 6 = 3(x - 2)';
x152a = '2x + 14 + 6 = 3x + 6';      // Wrong
x152b = '2x + 14 + 6 = 3x - 6';      // Good 
x152r = 'wrong2';
x152r = 'wrong2';
x152r = 'wrong2';

x153s = '<img height=42 width=166 src=\"' + imgPath + '/ec28.gif\"><br><img height=48 width=266 src=\"' + imgPath + '/hw15b.gif\"><br>2(x + 7) + 6 = 3(x - 2)<br>2x + 14 + 6 = 3x - 6';
x153a = '2x - 3x = -6 - 14 - 6';      // Good 
x153b = '2x - 3x = -6 + 14 + 6';      // Wrong
x153r = 'wrong3';
x153r = 'wrong3';
x153r = 'wrong3';

x154s = '<img height=42 width=166 src=\"' + imgPath + '/ec28.gif\"><br><img height=48 width=266 src=\"' + imgPath + '/hw15b.gif\"><br>2(x + 7) + 6 = 3(x - 2)<br>2x + 14 + 6 = 3x - 6<br>2x - 3x = -6 - 14 - 6';
x154a = '-x = -24 &nbsp; and multiply by (-1) to set positive x';      // Wrong
x154b = '-x = -26 &nbsp; and multiply by (-1) to set positive x';      // Good 
x154r = 'wrong4';
x154r = 'wrong4';
x154r = 'wrong4';

x155s = '<img height=42 width=166 src=\"' + imgPath + '/ec28.gif\"><br><img height=48 width=266 src=\"' + imgPath + '/hw15b.gif\"><br>2(x + 7) + 6 = 3(x - 2)<br>2x + 14 + 6 = 3x - 6<br>2x - 3x = -6 - 14 - 6<br>-x = -26 multiply by (-1) to set positive x<br>x = 26<br>Correct, please go on to the next exercise!';
x155a = 'lastAnswer';
x155b = 'lastAnswer';
x155r = 'wrong5';
x155r = 'wrong5';
x155r = 'wrong5';


// Exercise 16
x16  = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\">';
x16a = '<img height=48 width=296 src=\"' + imgPath + '/hw16a.gif\">';        // Wrong
x16b = '<img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\">';        // Good 

x161s = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\"><br><img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\">';
x161a = '4(3x - 1) + 5(x + 2) = 40';      // Good 
x161b = '5(3x - 1) + 5(x + 2) = 40';      // Wrong 
x161r = 'wrong1';
x161r = 'wrong1';
x161r = 'wrong1';

x162s = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\"><br><img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\"><br>4(3x - 1) + 5(x + 2) = 40';
x162a = '12x + 4 + 5x + 10 = 40';      // Wrong
x162b = '12x - 4 + 5x + 10 = 40';      // Good 
x162r = 'wrong2';
x162r = 'wrong2';
x162r = 'wrong2';

x163s = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\"><br><img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\"><br>4(3x - 1) + 5(x + 2) = 40<br>12x - 4 + 5x + 10 = 40';
x163a = '12x + 5x = 40 + 4 + 10';      // Wrong
x163b = '12x + 5x = 40 + 4 - 10';      // Good 
x163r = 'wrong3';
x163r = 'wrong3';
x163r = 'wrong3';

x164s = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\"><br><img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\"><br>4(3x - 1) + 5(x + 2) = 40<br>12x - 4 + 5x + 10 = 40<br>12x + 5x = 40 + 4 - 10';
x164a = '17x = 34';      // Good 
x164b = '17x = 36';      // Wrong
x164r = 'wrong4';
x164r = 'wrong4';
x164r = 'wrong4';

x165s = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\"><br><img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\"><br>4(3x - 1) + 5(x + 2) = 40<br>12x - 4 + 5x + 10 = 40<br>12x + 5x = 40 + 4 - 10<br>17x = 34';
x165a = 'x = 3';      // Wrong
x165b = 'x = 2';      // Good 
x165r = 'wrong5';
x165r = 'wrong5';
x165r = 'wrong5';

x166s = '<img height=42 width=195 src=\"' + imgPath + '/ec29.gif\"><br><img height=48 width=297 src=\"' + imgPath + '/hw16b.gif\"><br>4(3x - 1) + 5(x + 2) = 40<br>12x - 4 + 5x + 10 = 40<br>12x + 5x = 40 + 4 - 10<br>17x = 34<br>x = 2<br>Correct, please go on to the next exercise!';
x166a = 'lastAnswer';
x166b = 'lastAnswer';
x166r = 'wrong6';
x166r = 'wrong6';
x166r = 'wrong6';

// Exercise 17
x17  = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\">';
x17a = '<img height=47 width=233 src=\"' + imgPath + '/hw17a.gif\">';        // Wrong
x17b = '<img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\">';        // Good 

x171s = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\"><br><img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\">';
x171a = '5(2 - 3x) = 4(6 - x)';      // Good 
x171b = '6(2 - 3x) = 4(6 - x)';      // Wrong 
x171r = 'wrong1';
x171r = 'wrong1';
x171r = 'wrong1';

x172s = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\"><br><img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\"><br>5(2 - 3x) = 4(6 - x)';
x172a = '10 - 15x = 28 - 4x';      // Wrong
x172b = '10 - 15x = 24 - 4x';      // Good 
x172r = 'wrong2';
x172r = 'wrong2';
x172r = 'wrong2';

x173s = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\"><br><img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\"><br>5(2 - 3x) = 4(6 - x)<br>10 - 15x = 24 - 4x';
x173a = '-15x - 4x = 24 - 10';      // Wrong
x173b = '-15x + 4x = 24 - 10';      // Good 
x173r = 'wrong3';
x173r = 'wrong3';
x173r = 'wrong3';

x174s = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\"><br><img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\"><br>5(2 - 3x) = 4(6 - x)<br>10 - 15x = 24 - 4x<br>-15x + 4x = 24 - 10';
x174a = '-11x = 14';      // Good 
x174b = '-12x = 14';      // Wrong
x174r = 'wrong4';
x174r = 'wrong4';
x174r = 'wrong4';

x175s = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\"><br><img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\"><br>5(2 - 3x) = 4(6 - x)<br>10 - 15x = 24 - 4x<br>-15x + 4x = 24 - 10<br>-11x = 14';
x175a = '<img height=36 width=23 src=\"' + imgPath + '/hw175a.gif\">';      // Wrong
x175b = '<img height=42 width=43 src=\"' + imgPath + '/hw175b.gif\">';      // Good 
x175r = 'wrong5';
x175r = 'wrong5';
x175r = 'wrong5';

x176s = '<img height=42 width=132 src=\"' + imgPath + '/ec30.gif\"><br><img height=47 width=232 src=\"' + imgPath + '/hw17b.gif\"><br>5(2 - 3x) = 4(6 - x)<br>10 - 15x = 24 - 4x<br>-15x + 4x = 24 - 10<br>-11x = 14<br><img height=42 width=43 src=\"' + imgPath + '/hw175b.gif\">';
x176a = 'lastAnswer';
x176b = 'lastAnswer';
x176r = 'wrong6';
x176r = 'wrong6';
x176r = 'wrong6';

// This function receives 4 variables: (Exercise number, Exercise Announcement, Answer A, Answer B) 
function displayOptions(exNo, statement, aAnswer, bAnswer) {

	// Write the two possible answers options to the frame
	options = '<html>\n<head>\n' +
'  <script language="JavaScript">\n' +
'  <!--\n' +
'    var h = parent.frames[0];\n' +
'  // -->' +
'  </script>\n' +
'<body bgcolor=white><font face=arial><br><form>\n';

  if(exNo == 1) {
	 // Click on Help button
	 if(statement == ex1) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(1, h.ex11r, h.ex11r, h.ex11r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(1, h.ex11s, h.ex11a, h.ex11b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex11r) {
        alert('+ 11 moves across the \"=\" and becomes - 11');
        return false;
	 }
	 if(statement == ex11s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(1, h.ex12s, h.ex12a, h.ex12b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(1, h.ex12r, h.ex12r, h.ex12r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex12r) {
        alert('Wrong choice: 91 - 11 = 80');
        return false;
	 }
	 if(statement == ex12s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(1, h.ex13s, h.ex13a, h.ex13b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(1, h.ex13r, h.ex13r, h.ex13r)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer	 
	 if(aAnswer == ex13a) {
	    document.hw.h1.value = '16';                   // Assign value
	    document.hw.h1.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex13r) {                       // Wrong answer
        alert('Wrong choice: 80 divided by 5 equals 16');
        return false;
	 }
  }  // End of Ex. 1
  
  
  
  if(exNo == 2) {
	 // Click on Help button
	 if(statement == ex2) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(2, h.ex21r, h.ex21r, h.ex21r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(2, h.ex21s, h.ex21a, h.ex21b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex21r) {
        alert('- 19 moves across the \"=\" and becomes + 19');
        return false;
	 }
	 if(statement == ex21s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(2, h.ex22s, h.ex22a, h.ex22b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(2, h.ex22r, h.ex22r, h.ex22r)">' + bAnswer + '<BR>\n';        
	 }
	 
	 // Last Answer
	 if(aAnswer == ex22a) {
	    document.hw.h2.value = '72';                   // Assign value
	    document.hw.h2.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(statement == ex22r) {                     // Wrong answer
        alert('Wrong choice: 53 + 19 = 72');
        return false;
	 }
  }  // End of Ex. 2



  if(exNo == 3) {
	 // Click on Help button
	 if(statement == ex3) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(3, h.ex31r, h.ex31r, h.ex31r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(3, h.ex31s, h.ex31a, h.ex31b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex31r) {
        alert('+ 4x moves across the \"=\" and becomes - 4x');
        return false;
	 }
	 if(statement == ex31s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(3, h.ex32s, h.ex32a, h.ex32b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(3, h.ex32r, h.ex32r, h.ex32r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex32r) {
        alert('Wrong choice: 8x + 3x - 4x = 7x');
        return false;
	 }
	 if(statement == ex32s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(3, h.ex33r, h.ex33r, h.ex33r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(3, h.ex33s, h.ex33a, h.ex33b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer	 
	 if(bAnswer == ex33b) {
	    document.hw.h3.value = '7';                   // Assign value
	    document.hw.h3.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(aAnswer == ex33r) {                      // Wrong answer
        alert('Wrong choice: 49 divided by 7 equals 7');
        return false;        
	 }
  }  // End of Ex. 3  



  if(exNo == 4) {
	 // Click on Help button
	 if(statement == ex4) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex41r, h.ex41r, h.ex41r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex41s, h.ex41a, h.ex41b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex41r) {
        alert('2 times - 7 = - 14');
        return false;
	 }
	 if(statement == ex41s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex42s, h.ex42a, h.ex42b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex42r, h.ex42r, h.ex42r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex42r) {
        alert('Wrong choice: + 12 moves across the \"=\" and becomes - 12');
        return false;
	 }
	 if(statement == ex42s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex43r, h.ex43r, h.ex43r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex43s, h.ex43a, h.ex43b)">' + bAnswer + '<BR>\n';
	 }

	 // Third Answer
	 if(statement == ex43r) {
        alert('Wrong choice: 38 - 12 + 14 = 40');
        return false;
	 }
	 if(statement == ex43s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex44s, h.ex44a, h.ex44b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(4, h.ex44r, h.ex44r, h.ex44r)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == ex44a) {
	    document.hw.h4.value = '8';                    // Assign value
	    document.hw.h4.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex44r) {                       // Wrong answer
        alert('Wrong choice: 40 divided by 5 equals 8');
        return false;        
	 }
  }  // End of Ex. 4
  
  
  
  if(exNo == 5) {
	 // Click on Help button
	 if(statement == ex5) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex51r, h.ex51r, h.ex51r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex51s, h.ex51a, h.ex51b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex51r) {
        alert('- 1 times 3 = - 3');
        return false;
	 }
	 if(statement == ex51s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex52s, h.ex52a, h.ex52b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex52r, h.ex52r, h.ex52r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex52r) {
        alert('Wrong choice: - 3 moves across the \"=\" and becomes 3');
        return false;
	 }
	 if(statement == ex52s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex53r, h.ex53r, h.ex53r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex53s, h.ex53a, h.ex53b)">' + bAnswer + '<BR>\n';
	 }

	 // Third Answer
	 if(statement == ex53r) {
        alert('Wrong choice: 6 - 5 + 3 = 4');
        return false;
	 }
	 if(statement == ex53s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex54s, h.ex54a, h.ex54b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(5, h.ex54r, h.ex54r, h.ex54r)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == ex54a) {
	    document.hw.h5.value = '-1';                    // Assign value
	    document.hw.h5.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex54r) {                         // Wrong answer
        alert('Wrong choice: 4 divided by - 4 equals - 1');
        return false;        
	 }
  }  // End of Ex. 5
  
  
  if(exNo == 6) {
	 // Click on Help button
	 if(statement == ex6) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(6, h.ex61r, h.ex61r, h.ex61r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(6, h.ex61s, h.ex61a, h.ex61b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex61r) {
        alert('First, set everything off the bottom by cross-multiplying up to every other term. The L.C.D (Lowest Common Denominator) for 4, 5 and 2 is 20.');
        return false;
	 }
	 if(statement == ex61s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(6, h.ex62s, h.ex62a, h.ex62b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(6, h.ex62r, h.ex62r, h.ex62r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex62r) {
        alert('Wrong choice: 20 divided by 2 equals 10');
        return false;
	 }
	 if(statement == ex62s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(6, h.ex63s, h.ex63a, h.ex63b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(6, h.ex63r, h.ex63r, h.ex63r)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == ex63a) {
	    document.hw.h6.value = '10';                    // Assign value
	    document.hw.h6.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex63r) {                         // Wrong answer
        alert('Wrong choice: Right side remaines unchanged.');
        return false;        
	 }
  }  // End of Ex. 6
  
  
  if(exNo == 7) {
	 // Click on Help button
	 if(statement == ex7) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex71r, h.ex71r, h.ex71r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex71s, h.ex71a, h.ex71b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex71r) {
        alert('First, set everything off the bottom by cross-multiplying up to every other term. The L.C.D (Lowest Common Denominator) for 5 and 4 is 20.');
        return false;
	 }
	 if(statement == ex71s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex72s, h.ex72a, h.ex72b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex72r, h.ex72r, h.ex72r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex72r) {
        alert('Wrong choice: 20 divided by 5 equals 4');
        return false;
	 }
	 if(statement == ex72s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex73r, h.ex73r, h.ex73r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex73s, h.ex73a, h.ex73b)">' + bAnswer + '<BR>\n';
	 }

	 // Third Answer
	 if(statement == ex73r) {
        alert('Wrong choice: 5 times - 3 equals - 15');
        return false;
	 }
	 if(statement == ex73s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex74s, h.ex74a, h.ex74b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex74r, h.ex74r, h.ex74r)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == ex74r) {
        alert('Wrong choice: 5x moves across the \"=\" and becomes - 5x');
        return false;
	 }
	 if(statement == ex74s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex75s, h.ex75a, h.ex75b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(7, h.ex75r, h.ex75r, h.ex75r)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Last Answer	 
	 if(aAnswer == ex75a) {
	    document.hw.h7.value = '-17';                    // Assign value
	    document.hw.h7.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex75r) {                         // Wrong answer
        alert('Wrong choice: - 15 + 40 - 8 = 17');
        return false;        
	 }
  }  // End of Ex. 7


  if(exNo == 8) {
	 // Click on Help button
	 if(statement == ex8) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex81r, h.ex81r, h.ex81r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex81s, h.ex81a, h.ex81b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex81r) {
        alert('First, set everything off the bottom by cross-multiplying up to every other term. The L.C.D (Lowest Common Denominator) for 2 and 3 is 6.');
        return false;
	 }
	 if(statement == ex81s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex82s, h.ex82a, h.ex82b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex82r, h.ex82r, h.ex82r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex82r) {
        alert('Wrong choice: 6 times 4 equals 24');
        return false;
	 }
	 if(statement == ex82s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex83r, h.ex83r, h.ex83r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex83s, h.ex83a, h.ex83b)">' + bAnswer + '<BR>\n';
	 }

	 // Third Answer
	 if(statement == ex83r) {
        alert('Wrong choice: 2 times - 1 equals - 2');
        return false;
	 }
	 if(statement == ex83s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex84s, h.ex84a, h.ex84b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex84r, h.ex84r, h.ex84r)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == ex84r) {
        alert('Wrong choice: + 6 moves across the \"=\" and becomes - 6');
        return false;
	 }
	 if(statement == ex84s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex85s, h.ex85a, h.ex85b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex85r, h.ex85r, h.ex85r)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Fifth Answer
	 if(statement == ex85r) {
        alert('Wrong choice: 24 - 6 + 2 = 20');
        return false;
	 }
	 if(statement == ex85s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex86r, h.ex86r, h.ex86r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(8, h.ex86s, h.ex86a, h.ex86b)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == ex86b) {
	    document.hw.h8.value = '4';                    // Assign value
	    document.hw.h8.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex86r) {                       // Wrong answer
        alert('Wrong choice: 20 divided by 5 equals 4');
        return false;        
	 }
  }  // End of Ex. 8


  if(exNo == 9) {
	 // Click on Help button
	 if(statement == ex9) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex91r, h.ex91r, h.ex91r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex91s, h.ex91a, h.ex91b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex91r) {
        alert('First, set everything off the bottom by cross-multiplying up to every other term. The L.C.D (Lowest Common Denominator) for 2 and 5 is 10.');
        return false;
	 }
	 if(statement == ex91s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex92s, h.ex92a, h.ex92b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex92r, h.ex92r, h.ex92r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex92r) {
        alert('Wrong choice: 10 divided by 2 equals 5');
        return false;
	 }
	 if(statement == ex92s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex93r, h.ex93r, h.ex93r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex93s, h.ex93a, h.ex93b)">' + bAnswer + '<BR>\n';
	 }

	 // Third Answer
	 if(statement == ex93r) {
        alert('Wrong choice: - 2 times -3x equals 6x');
        return false;
	 }
	 if(statement == ex93s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex94s, h.ex94a, h.ex94b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex94r, h.ex94r, h.ex94r)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == ex94r) {
        alert('Wrong choice: + x moves across the \"=\" and becomes - x');
        return false;
	 }
	 if(statement == ex94s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex95s, h.ex95a, h.ex95b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex95r, h.ex95r, h.ex95r)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Fifth Answer
	 if(statement == ex95r) {
        alert('Wrong choice: 5x + 6x - x = 10x');
        return false;
	 }
	 if(statement == ex95s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex96r, h.ex96r, h.ex96r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(9, h.ex96s, h.ex96a, h.ex96b)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == ex96b) {
	    document.hw.h9.value = '-1.8';                    // Assign value
	    document.hw.h9.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex96r) {                       // Wrong answer
        alert('Wrong choice: - 18 divided by 10 equals - 1.8');
        return false;        
	 }
  }  // End of Ex. 9


  if(exNo == 10) {
	 // Click on Help button
	 if(statement == ex10) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(10, h.ex101r, h.ex101r, h.ex101r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(10, h.ex101s, h.ex101a, h.ex101b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == ex101r) {
        alert('Wrong choice: 2 times -1 equals -2');
        return false;
	 }
	 if(statement == ex101s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(10, h.ex102s, h.ex102a, h.ex102b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(10, h.ex102r, h.ex102r, h.ex102r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == ex102r) {
        alert('Wrong choice: +3x moves across the \"=\" and becomes -3x');
        return false;
	 }
	 if(statement == ex102s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(10, h.ex103r, h.ex103r, h.ex103r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(10, h.ex103s, h.ex103a, h.ex103b)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == ex103b) {
	    document.hw.h10.value = '1';                    // Assign value
	    document.hw.h10.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == ex103r) {                       // Wrong answer
        alert('Wrong choice: 4x - 2x + 3x = -x');
        return false;        
	 }
  }  // End of Ex. 10



  if(exNo == 11) {
	 // Click on Help button
	 if(statement == x11) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(11, h.x111r, h.x111r, h.x111r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(11, h.x111s, h.x111a, h.x111b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x111r) {
        alert('Wrong choice: -3 times +4 equals -12');
        return false;
	 }
	 if(statement == x111s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(11, h.x112s, h.x112a, h.x112b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(11, h.x112r, h.x112r, h.x112r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x112r) {
        alert('Wrong choice: -12 moves across the \"=\" and becomes +12');
        return false;
	 }
	 if(statement == x112s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(11, h.x113r, h.x113r, h.x113r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(11, h.x113s, h.x113a, h.x113b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x113r) {
        alert('Wrong choice: Left side equals to -3x');
        return false;
	 }
	 if(statement == x113s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(11, h.x114r, h.x114r, h.x114r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(11, h.x114s, h.x114a, h.x114b)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == x114b) {
	    document.hw.h11.value = '-2';                    // Assign value
	    document.hw.h11.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x114r) {                       // Wrong answer
        alert('Wrong choice: 6 divided by -3 equals -2');
        return false;        
	 }
  }  // End of Ex. 11  


  if(exNo == 12) {
	 // Click on Help button
	 if(statement == x12) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(12, h.x121r, h.x121r, h.x121r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(12, h.x121s, h.x121a, h.x121b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x121r) {
        alert('Wrong choice: -3 times x equals -3x');
        return false;
	 }
	 if(statement == x121s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(12, h.x122s, h.x122a, h.x122b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(12, h.x122r, h.x122r, h.x122r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x122r) {
        alert('Wrong choice: 2 times squared x equals 2 squared x');
        return false;
	 }
	 if(statement == x122s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(12, h.x123r, h.x123r, h.x123r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(12, h.x123s, h.x123a, h.x123b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x123r) {
        alert('Wrong choice: +2 squared x moves across the \"=\" and becomes -2 squared x');
        return false;
	 }
	 if(statement == x123s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(12, h.x124r, h.x124r, h.x124r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(12, h.x124s, h.x124a, h.x124b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Forth Answer
	 if(statement == x124r) {
        alert('Wrong choice: Left side equals to -15x');
        return false;
	 }
	 if(statement == x124s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(12, h.x125r, h.x125r, h.x125r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(12, h.x125s, h.x125a, h.x125b)">' + bAnswer + '<BR>\n';
	 }

	 // Last Answer	 
	 if(aAnswer == x125b) {
	    document.hw.h12.value = '-1';                    // Assign value
	    document.hw.h12.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x125r) {                       // Wrong answer
        alert('Wrong choice: 15 divided by -15 equals -1');
        return false;        
	 }
  }  // End of Ex. 12


  if(exNo == 13) {
	 // Click on Help button
	 if(statement == x13) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(13, h.x131r, h.x131r, h.x131r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(13, h.x131s, h.x131a, h.x131b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x131r) {
        alert('Wrong choice: -1 times 3x equals -3x');
        return false;
	 }
	 if(statement == x131s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(13, h.x132s, h.x132a, h.x132b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(13, h.x132r, h.x132r, h.x132r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x132r) {
        alert('Wrong choice: +4 moves across the \"=\" and becomes -4');
        return false;
	 }
	 if(statement == x132s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(13, h.x133r, h.x133r, h.x133r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(13, h.x133s, h.x133a, h.x133b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x133r) {
        alert('Wrong choice: Left side equals 3x');
        return false;
	 }
	 if(statement == x133s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(13, h.x134r, h.x134r, h.x134r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(13, h.x134s, h.x134a, h.x134b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Last Answer	 
	 if(aAnswer == x134b) {
	    document.hw.h13.value = '2';                    // Assign value
	    document.hw.h13.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x134r) {                       // Wrong answer
        alert('Wrong choice: 6 divided by 3 equals 2');
        return false;        
	 }
  }  // End of Ex. 13
  

  if(exNo == 14) {
	 // Click on Help button
	 if(statement == x14) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(14, h.x141r, h.x141r, h.x141r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(14, h.x141s, h.x141a, h.x141b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x141r) {
        alert('Wrong choice: -2.5 times 3.6 equals -9');
        return false;
	 }
	 if(statement == x141s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(14, h.x142s, h.x142a, h.x142b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(14, h.x142r, h.x142r, h.x142r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x142r) {
        alert('Wrong choice: -9 moves across the \"=\" and becomes +9');
        return false;
	 }
	 if(statement == x142s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(14, h.x143r, h.x143r, h.x143r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(14, h.x143s, h.x143a, h.x143b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x143r) {
        alert('Wrong choice: Right side equals 5.72');
        return false;
	 }
	 if(statement == x143s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(14, h.x144r, h.x144r, h.x144r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(14, h.x144s, h.x144a, h.x144b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Last Answer	 
	 if(aAnswer == x144b) {
	    document.hw.h14.value = '5.2';                    // Assign value
	    document.hw.h14.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x144r) {                       // Wrong answer
        alert('Wrong choice: 5.72 divided by 1.1 equals 5.2');
        return false;        
	 }
  }  // End of Ex. 14


  if(exNo == 15) {
	 // Click on Help button
	 if(statement == x15) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(15, h.x151r, h.x151r, h.x151r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(15, h.x151s, h.x151a, h.x151b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x151r) {
        alert('Wrong choice: The L.C.D (Lowest Common Denominator) for 6, 2 and 4 is 12.');
        return false;
	 }
	 if(statement == x151s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(15, h.x152s, h.x152a, h.x152b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(15, h.x152r, h.x152r, h.x152r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x152r) {
        alert('Wrong choice: 12 divided by 4 equals 3');
        return false;
	 }
	 if(statement == x152s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(15, h.x153r, h.x153r, h.x153r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(15, h.x153s, h.x153a, h.x153b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x153r) {
        alert('Wrong choice: 3 times -2 equals -6');
        return false;
	 }
	 if(statement == x153s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(15, h.x154s, h.x154a, h.x154b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(15, h.x154r, h.x154r, h.x154r)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == x154r) {
        alert('Wrong choice:  +14 and +6 move across the \"=\" and becomes -14 and -6');
        return false;
	 }
	 if(statement == x154s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(15, h.x155r, h.x155r, h.x155r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(15, h.x155s, h.x155a, h.x155b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Last Answer	 
	 if(aAnswer == x155b) {
	    document.hw.h15.value = '26';                    // Assign value
	    document.hw.h15.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x155r) {                       // Wrong answer
        alert('Wrong choice: Right side is -26');
        return false;        
	 }
  }  // End of Ex. 15
    

  if(exNo == 16) {
	 // Click on Help button
	 if(statement == x16) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(16, h.x161r, h.x161r, h.x161r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(16, h.x161s, h.x161a, h.x161b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x161r) {
        alert('Wrong choice: The L.C.D (Lowest Common Denominator) for 5 and 2 is 10.');
        return false;
	 }
	 if(statement == x161s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(16, h.x162s, h.x162a, h.x162b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(16, h.x162r, h.x162r, h.x162r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x162r) {
        alert('Wrong choice: 10 times 2 equals 20. Then 20 divided by 5 equals 4.');
        return false;
	 }
	 if(statement == x162s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(16, h.x163r, h.x163r, h.x163r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(16, h.x163s, h.x163a, h.x163b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x163r) {
        alert('Wrong choice: 4 times -1 equals -4');
        return false;
	 }
	 if(statement == x163s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(16, h.x164r, h.x164r, h.x164r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(16, h.x164s, h.x164a, h.x164b)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == x164r) {
        alert('Wrong choice:  +10 moves across the \"=\" and becomes -10');
        return false;
	 }
	 if(statement == x164s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(16, h.x165s, h.x165a, h.x165b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(16, h.x165r, h.x165r, h.x165r)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == x165r) {
        alert('Wrong choice:  Right side is 34.');
        return false;
	 }
	 if(statement == x165s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(16, h.x166r, h.x166r, h.x166r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(16, h.x166s, h.x166a, h.x166b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Last Answer	 
	 if(aAnswer == x166b) {
	    document.hw.h16.value = '2';                    // Assign value
	    document.hw.h16.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x166r) {                       // Wrong answer
        alert('Wrong choice: 34 divided by 17 equals 2.');
        return false;        
	 }
  }  // End of Ex. 16


  if(exNo == 17) {
	 // Click on Help button
	 if(statement == x17) {
options += '    ' + statement + '<br>\n' + 
'    a.) <input type=radio name=answer onClick="h.displayOptions(17, h.x171r, h.x171r, h.x171r)">' + aAnswer + '<BR>\n' +       
'    b.) <input type=radio name=answer onClick="h.displayOptions(17, h.x171s, h.x171a, h.x171b)">' + bAnswer + '<BR>\n';
	 }

     // First Answer 
	 if(statement == x171r) {
        alert('Wrong choice: The L.C.D (Lowest Common Denominator) for 4 and 5 is 20.');
        return false;
	 }
	 if(statement == x171s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(17, h.x172s, h.x172a, h.x172b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(17, h.x172r, h.x172r, h.x172r)">' + bAnswer + '<BR>\n';        
	 }

	 // Second Answer
	 if(statement == x172r) {
        alert('Wrong choice: 20 divided by 4 equals 5.');
        return false;
	 }
	 if(statement == x172s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(17, h.x173r, h.x173r, h.x173r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(17, h.x173s, h.x173a, h.x173b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Third Answer
	 if(statement == x173r) {
        alert('Wrong choice: 4 times 6 equals 24');
        return false;
	 }
	 if(statement == x173s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(17, h.x174r, h.x174r, h.x174r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(17, h.x174s, h.x174a, h.x174b)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == x174r) {
        alert('Wrong choice:  -4 moves across the \"=\" and becomes +4');
        return false;
	 }
	 if(statement == x174s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(17, h.x175s, h.x175a, h.x175b)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(17, h.x175r, h.x175r, h.x175r)">' + bAnswer + '<BR>\n';
	 }

	 // Forth Answer
	 if(statement == x175r) {
        alert('Wrong choice:  Left side is -11x.');
        return false;
	 }
	 if(statement == x175s) {
options += '    ' + statement + '<br>\n' +
'    a.) <input type=radio name=answer onClick="h.displayOptions(17, h.x176r, h.x176r, h.x176r)">' + aAnswer + '<BR>\n' +
'    b.) <input type=radio name=answer onClick="h.displayOptions(17, h.x176s, h.x176a, h.x176b)">' + bAnswer + '<BR>\n';
	 }
	 
	 // Last Answer	 
	 if(aAnswer == x176b) {
	    document.hw.h17n.value = '-14';                    // Assign value
	    document.hw.h17d.value = '11';
	    document.hw.h17n.focus();
options += '    ' + statement + '<br>\n';	 
	 }
	 else if(bAnswer == x176r) {                       // Wrong answer
        alert('Wrong choice: When dividing a positive number by a negative number the result is negative.');
        return false;        
	 }
  }  // End of Ex. 17

  
options += '</form></font></body>\n' +
'</html>';

	ws.location.replace("javascript: parent.frames[0].options");
}

