//  Copyright 1999-2004 Gisele Glosser.  All Rights Reserved.
//
//  Our interactive math lessons are shareware.  You may use our free demo lessons
//  on mathgoodies.com only.  You may NOT download nor save them.  You can purchase
//  a license to use all 70 of our lessons off line by visiting:
//  http://www.mathgoodies.com/cd/

function x08226313(form,whichQuestion){var msg;var noErrors=true;var testValue=form.entry.value;if(testValue==""||testValue==null){msg="Please enter an integer in the ANSWER BOX before clicking ENTER.";noErrors=false;}else{var tempStr=testValue.toString();for(var index=0;index<tempStr.length;index++){var testOneChar=tempStr.charAt(index);if((index==0&&testOneChar=="-")||(index==0&&testOneChar=="+")){continue;}if(testOneChar<"0"||testOneChar>"9"){msg="Please enter an integer.";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=="+15")||(whichQuestion==1&&stringEntered=="15")||(whichQuestion==2&&stringEntered=="-20")||(whichQuestion==3&&stringEntered=="+231")||(whichQuestion==3&&stringEntered=="231")||(whichQuestion==4&&stringEntered=="-1096")||(whichQuestion==5&&stringEntered=="-2")){form.result.value="Correct!";}else{form.result.value="Incorrect.  Please press CLEAR and try again.";}form.entry.focus();form.entry.select();}function x05844687(form){form.entry.value="";form.entry.focus();form.entry.select();}//


