//  Copyright 2009 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 101 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;var testChar="";var testZero="";var i=0;var temp="false";if(testValue==""||testValue==null){msg="Please enter a number in the ANSWER BOX before clicking ENTER.";noErrors=false;}else{testZero=testValue.toString();for(i=0;i<testZero.length;i++){testChar=testZero.charAt(i);if(i==0&&testChar=="-"&&testValue!="-"){msg="Please enter a positive number.";noErrors=false;break;}else{temp=parseFloat(testChar);if(isNaN(temp)&&testValue=="."){msg="Please enter a number.";noErrors=false;break;}else{if(isNaN(temp)&&testChar!="."){msg="Please enter a number.";noErrors=false;break;}}}}}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==0.231)||(whichQuestion==1&&stringEntered==.231)||(whichQuestion==2&&stringEntered==9.6)||(whichQuestion==3&&stringEntered==3.5325)||(whichQuestion==4&&stringEntered==4)||(whichQuestion==4&&stringEntered==4.)||(whichQuestion==4&&stringEntered==4.0)||(whichQuestion==5&&stringEntered==360.67)){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=="shim"){msg="A "+"<STRONG>shim</STRONG>"+" is a thin, often tapered piece of material, such ";msg+="as wood, stone, or metal, used to fill gaps, make something level, or adjust something ";msg+="to fit properly.";}return msg}function x2826022670(definition){passDef=definition;x1096653(passDef);var newTags="<HTML><HEAD><TITLE>Definition Window</TITLE></HEAD>";newTags+="<BODY BGCOLOR='#FFFFFF'>";newTags+="<H2>Definition</H2>";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();}//








