//  Copyright 1998-2005 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 81 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 a number in the ANSWER BOX before clicking ENTER.";noErrors=false;}else{var tempVal=parseInt(testValue);var tempStr=tempVal.toString();if(testValue!=tempStr||tempVal<=0){msg="Please enter a whole number greater than zero.";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==39)||(whichQuestion==2&&stringEntered==32)||(whichQuestion==3&&stringEntered==48)||(whichQuestion==4&&stringEntered==5)||(whichQuestion==5&&stringEntered==20)){form.result.value="Correct!";}else{form.result.value="Incorrect.  Please press CLEAR and try again.";}form.entry.focus();form.entry.select();}function x05844(msg){window.status=msg;return true;}function x13248260(form){form.entry.value="";form.entry.focus();form.entry.select();}function x1155295267049924(){if(tempWindow&&!tempWindow.closed){tempWindow.close();tempWindow=false;return tempWindow;}}function x1096653(Def){if(Def=="polygon"){msg="A"+" <STRONG>polygon</STRONG>"+" is a closed shape bounded by only straight lines.";}else{if(Def=="rectangle"){msg="A"+" <STRONG>rectangle</STRONG>"+" is a 4-sided polygon with opposite sides equal ";msg+="and parallel.  All 4 angles are right angles (90 degrees).";}else{if(Def=="square"){msg="A"+" <STRONG>square</STRONG> is a rectangle with 4 equal sides.";}else{if(Def=="equilateral_triangle"){msg="An"+" <STRONG>equilateral triangle</STRONG> is a triangle with 3 equal sides and 3 equal angles.";}else{if(Def=="regular_polygon"){msg="In a"+" <STRONG>regular polygon</STRONG>"+" all sides are equal in length (and all angles have equal measure).";}else{if(Def=="regular_pentagon"){msg="A"+" <STRONG>regular pentagon</STRONG> is a polygon with 5 equal sides and 5 equal angles.";}else{if(Def=="regular_hexagon"){msg="A "+"<STRONG>regular hexagon</STRONG> is a polygon with 6 equal sides and 6 equal angles.";}else{if(Def=="triangle")msg="A"+" <STRONG>triangle</STRONG> is a polygon made with 3 straight sides.";}}}}}}}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=160,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();}//
