//  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(whichSelected){var index=0;for(i=0;i<whichSelected.length;i++){if(whichSelected[i].checked){return i;}}return 0;}function x0653090547(form,whichQuestion){var optionChosen=x08226313(form.entry);if((whichQuestion==1)&&(form.entry[optionChosen].value=="Choice 3")||(whichQuestion==2)&&(form.entry[optionChosen].value=="Choice 2")||(whichQuestion==3)&&(form.entry[optionChosen].value=="Choice 2")||(whichQuestion==4)&&(form.entry[optionChosen].value=="Choice 1")||(whichQuestion==5)&&(form.entry[optionChosen].value=="Choice 3")){form.result.value="Correct!";}else{choice=optionChosen+1;form.result.value="Choice "+choice+" is incorrect.  Please try again.";}}function x05844(msg){window.status=msg;return true;}function x1324826050681797(){if(tempWindow&&!tempWindow.closed){tempWindow.close();tempWindow=false;return tempWindow;}}function x1155295(Def){if(Def=="answer1"){msg="<IMG SRC='images/ninety6_hundredths.gif' WIDTH='19' HEIGHT='19' BORDER='0'>";}else{if(Def=="answer2"){msg="<IMG SRC='images/nine_hundredths.gif' WIDTH='19' HEIGHT='19' BORDER='0'>";}else{if(Def=="answer3"){msg="<IMG SRC='images/seventy7_hundredths.gif' WIDTH='19' HEIGHT='19' BORDER='0'>";}else{if(Def=="ratio"){msg="A ratio is used to compare two or more quantities.  For example, 9 to 100, 9:100 and ";msg+="<IMG SRC='images/nine_hundredths.gif' WIDTH='19' HEIGHT='19' BORDER='0' align='middle'> ";msg+="are three different ways of expressing the same ratio.";}}}}return msg;}function x1096653463(definition){passDef=definition;x1155295(passDef);var newTags="<HTML><HEAD><TITLE>Definition Window</TITLE></HEAD>";newTags+="<BODY BGCOLOR='#FFFFFF'>";if(passDef=="ratio"){newTags+="<H3>Definition</H3>";}else{newTags+="<H3>Answer</H3>";}newTags+=msg+"<P>";newTags+="<form><input TYPE='button' value='close window' name='closeup' onClick='opener.x1324826050681797()'></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;}x282602267(newTags);}else{x282602267(newTags);}}function x282602267(content){getContent=content;setTimeout("x282602267",1000);tempWindow.document.write(getContent);tempWindow.document.close();tempWindow.focus();}//


