//  Copyright 1998-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 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==1024)||(whichQuestion==2&&stringEntered==625)||(whichQuestion==3&&stringEntered==1)||(whichQuestion==4&&stringEntered==237)||(whichQuestion==5&&stringEntered==4)){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=="factors"){msg="The <STRONG>factors</STRONG> of a number are those numbers that divide exactly into the number.";}else{if(Def=="answer"){msg="<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2><TR>";msg+="<TD><IMG SRC='images/boy.gif' width=160 height=75 border=0 alt='There's got to be a better way!'></TD></TR>";msg+="<TR><TD><BR>Continue reading this lesson to learn a better way!</TD>";msg+="</TR></TABLE></div>";}}return msg;}function x2826022670(definition){passDef=definition;x1096653(passDef);var newTags="<HTML><HEAD><TITLE>Definition Window</TITLE></HEAD>";newTags+="<BODY BGCOLOR='#FFFFFF'>";if(passDef!="answer"){newTags+="<H3>Definition Window</H3>";}else{newTags+="<H3>Answer Window</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=380,height=250,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();}//



