// Copyright 1998 by Gisele Glosser.  All Rights Reserved.
//
// Mrs. Glosser's Math Goodies are shareware.  We invite you to use all of our 
// lessons online.  However, only registered users may save our lessons to     
// their desktop computer.  For information on becoming a registered user,     
// visit our Download Page at http://www.mathgoodies.com/download/

function x08226313(form,whichQuestion){var msg;var noErrors=true;var testValue=form.entry.value;if(testValue==""||testValue==null){msg="Il faut inscrire un nombre dans la case REPONSE avant de cliquer sur ENTRER";noErrors=false;}else{var tempVal=parseInt(testValue);var tempStr=tempVal.toString();if(testValue!=tempStr||tempVal<=0){msg="Entrer un nombre entier naturel supérieur à zéro, s.v.p.";noErrors=false;}}if(noErrors){x0653090547(form,whichQuestion);}else{alert(msg);form.entry.focus();form.entry.select();}}function x0653090547(form,whichQuestion){var stringEntered=form.entry.value;if((whichQuestion==1&&stringEntered==6)||(whichQuestion==2&&stringEntered==72)||(whichQuestion==3&&stringEntered==61)||(whichQuestion==3&&stringEntered==67)||(whichQuestion==4&&stringEntered==3)||(whichQuestion==4&&stringEntered==9)||(whichQuestion==4&&stringEntered==31)||(whichQuestion==4&&stringEntered==93)||(whichQuestion==5&&stringEntered==568)||(whichQuestion==6&&stringEntered==246)||(whichQuestion==7&&stringEntered==144)||(whichQuestion==8&&stringEntered==512)||(whichQuestion==9&&stringEntered==2401)||(whichQuestion==10&&stringEntered==4096)){form.result.value="Exact!";}else{form.result.value="Erreur. Clique RECOMMENCER et essaie encore.";}form.entry.focus();form.entry.select();}function x05844687(form){form.entry.value="";form.entry.focus();form.entry.select();}
