//  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/

var msg="";var tempWindow;var newTags;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=="+30340")||(whichQuestion==1&&stringEntered=="30340")||(whichQuestion==2&&stringEntered=="-21")||(whichQuestion==3&&stringEntered=="-550")||(whichQuestion==4&&stringEntered=="-7")||(whichQuestion==5&&stringEntered=="+985")||(whichQuestion==5&&stringEntered=="985")||(whichQuestion==6&&stringEntered=="-128")||(whichQuestion==7&&stringEntered=="-750")||(whichQuestion==8&&stringEntered=="+186")||(whichQuestion==8&&stringEntered=="186")||(whichQuestion==9&&stringEntered=="+118")||(whichQuestion==9&&stringEntered=="118")||(whichQuestion==10&&stringEntered=="+75")||(whichQuestion==10&&stringEntered=="75")){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();}function x13248(msg){window.status=msg;return true;}function x1155295267049924(){if(tempWindow&&!tempWindow.closed){tempWindow.close();tempWindow=false;return tempWindow;}}function x1096653(Def){if(Def=="hint1"){msg="Owing money implies a negative integer.";}else{if(Def=="hint2"){msg="Paying the clerk implies a negative integer.";}else{if(Def=="hint3"){msg="Subtract the smaller integer from the larger integer.  ";msg+="The smaller integer is farther from zero on the ";msg+="number line.";}}}return msg;}function x2826022670(definition){passDef=definition;x1096653(passDef);var newTags="<HTML><HEAD><TITLE>Hint Window</TITLE></HEAD>";newTags+="<BODY BGCOLOR='#FFFFFF'>";if(passDef=="answer"){newTags+="<H3>Answer</H3>";}else{newTags+="<H3>Hint</H3>";}newTags+=msg+"<P>";newTags+="<form><input TYPE='button' value='close window' name='closeup' onClick='opener.x1155295267049924()'></form>";newTags+="</BODY></HTML>";if(!tempWindow||tempWindow.closed){tempWindow=window.open("temp.html","tempWindow","toolbar=no,width=500,height=180,directories=no,status=no,scrollbars=yes,resize=yes,menubar=no");if(!tempWindow.opener){tempWindow.opener=window;}x265748087(newTags);}else{x265748087(newTags);}}function x265748087(content){getContent=content;setTimeout("x265748087",1000);tempWindow.document.write(getContent);tempWindow.document.close();tempWindow.focus();}//



