var index1=Math.round(Math.random()*(4-1))+1;
var question1=new Array(5);
var truevalue1=new Array(5);
var closevalue1=new Array(5);
var exp1=new Array(5);
	
question1[0]='<TABLE CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" WIDTH="75%"><TR><TD ALIGN="CENTER">12.2 cm to m = <INPUT TYPE="TEXT" SIZE="10" NAME="question1">mm</TD></TR></TABLE>';
truevalue1[0]='0.122';
closevalue1[0]='.122';

question1[1]='<TABLE CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER" WIDTH="75%"><TR><TD ALIGN="CENTER">12.2 cm to m = <INPUT TYPE="TEXT" SIZE="10" NAME="question1">mm</TD></TR></TABLE>';
truevalue1[1]='0.122';
closevalue1[1]='.122';

question1[2]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">17.0 m to mm = <input type="TEXT" size="10" name="question1"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent1"><br><img src="medialib/1pixel.gif" width="1" height="15" border="0"> </td><td align="CENTER">mm</td></tr></table>';
truevalue1[2]='1.70';
closevalue1[2]='1.7';
exp1[2]='4';

question1[3]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">18.0 dm to nm = <input type="TEXT" size="10" name="question1"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent1"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER">nm</td></tr></table>';
truevalue1[3]='1.8';
closevalue1[3]='1.80';
exp1[3]='9';

question1[4]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">3.10 x 10<sup>6</sup> &micro;m to cm = <input type="TEXT" size="10" name="question1"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent1"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER">cm</td></tr></table>';
truevalue1[4]='3.10';
closevalue1[4]='3.1';
exp1[4]='2';

question1[5]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">34.8 nm to &micro;m = <input type="TEXT" size="10" name="question1"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent1"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> &micro;m</td></tr></table>';
truevalue1[5]='3.48';
closevalue1[5]='3.48';
exp1[5]='-2';

window.document.write('<CENTER><H2><B>Metric-Metric Conversions</B></H2></CENTER><BR><HR><BR><P ALIGN="LEFT"><FONT SIZE=+2>A. General Conversion Method:</FONT><BR>When you first determine a math problem involves the conversion of one unit to another, you may find it useful to use the following general approach.</P><OL><LI>Decide on the sequence of conversions and write down the path.</LI><LI>Write the starting term, along with units, and all the conversion factors that follow.</LI><LI>Make sure that the units cancel properly.</LI><LI>Calculate the answer.</LI><LI>Determine if the answer is reasonable by estimating the answer (if possible).</LI></OL><P ALIGN="LEFT">Let&acute;s try carrying out some conversions of length, volume, and mass.</P>');

window.document.write('<P ALIGN="LEFT"><FONT SIZE=+2>B. Length Conversions:</FONT><BR>Let&acute;s start with a one step conversion.   Convert 71 km to m.</P><P ALIGN="LEFT">This conversion can be accomplished in one step.  The initial requirement is that we know that:</P><P ALIGN="CENTER">1 km  =  10<SUP>3</SUP> m</P><P ALIGN="LEFT">Now we write down the starting term, and then the conversion factor.  Don&acute;t forget to include all the units.</P><table cellspacing="0" cellpadding="0" align="CENTER"><tr><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>3</sup> m</td></tr><tr><td align=CENTER> 71 km x </td><td align=CENTER> <hr NOSHADE> </td></tr><tr><td align=CENTER>&nbsp;</td><td align=CENTER>1 km</td></tr></table><p align="LEFT">Notice that the units of km cancel out, leaving the desired unit of meters.</p><table cellspacing="0" cellpadding="0" align="CENTER"><tr><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>3</sup> m</td></tr><tr><td align=CENTER>71 <strike><font color="#FF0000">km</font></strike> x </td><td align=CENTER> <hr NOSHADE> </td></tr><tr><td align=CENTER>&nbsp;</td><td align=CENTER>1 <strike><font color="#FF0000">km</font></strike></td></tr></table><P ALIGN="LEFT">Now multiply the two numbers, and then convert the answer to scientific notation.</P><P ALIGN="CENTER">71 x 10<SUP>3</SUP> m = 7.1 x 10<SUP>4</SUP> m</P><P ALIGN="LEFT">Is the answer reasonable?  Since a kilometer is large compared to a meter, if kilometers are converted to meters, we would expect a larger number to result.</P><P ALIGN="LEFT">If neither of the units in the problem are the basic unit (meter), then several steps are required. In general the starting unit should be converted to the basic unit, and then the basic unit may be converted to the desired unit.  Here&acute;s an example.  Convert 477 nm to mm.</P><P ALIGN="LEFT">The sequence of conversions would be: <IMG SRC="/wps/media/objects/602/616516/mathtutorial/nm_m_mm.gif" WIDTH="116" HEIGHT="9" BORDER="0"></P><table cellspacing="0" cellpadding="0" align="CENTER"><tr><td align=CENTER>&nbsp;</td><td align=CENTER>1 m</td><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>3</sup> mm</td></tr><tr><td align=RIGHT> 477 nm x </td><td align=CENTER> <hr NOSHADE> </td><td align=CENTER> x </td><td align=CENTER> <hr NOSHADE> </td></tr><tr><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>9</sup> nm</td><td align=CENTER>&nbsp;</td><td align=CENTER> 1 m</td></tr></table><p align="LEFT">The units now cancel out to give only the desired unit of millimeters.</p><table cellspacing="0" cellpadding="0" align="CENTER"><tr><td width="48" align=CENTER>&nbsp;</td><td width="41" align=CENTER>1 <strike><font color="#0000FF">m</font></strike></td><td width="8" align=CENTER>&nbsp;</td><td width="44" align=CENTER>10<sup>3</sup> mm</td></tr><tr><td align=RIGHT>477 <strike><font color="#FF0000">nm</font></strike> x </td><td align=CENTER> <hr NOSHADE> </td><td align=CENTER> x </td><td align=CENTER> <hr NOSHADE> </td></tr><tr><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>9</sup> <strike><font color="#FF0000">nm</font></strike></td><td align=CENTER>&nbsp;</td><td align=CENTER> 1 <strike><font color="#0000FF">m</font></strike></td></tr></table><P ALIGN="LEFT">Multiply the numbers, and then convert the answer to scientific notation.</P><P ALIGN="CENTER">477  x  10<SUP>-6</SUP> mm = 4.77 x 10<SUP>-4</SUP> mm</P><P ALIGN="LEFT">Try the following conversions among different length units.</P>' + question1[index1]);

var index2=Math.round(Math.random()*(4-1))+1;
var question2=new Array(5);
var truevalue2=new Array(5);
var exp2=new Array(5);

question2[0]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">1,470,000 mL to L = <input type="TEXT" size="10" name="question2"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent2"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> L</td></tr></table>';
truevalue2[0]='1.47';
exp2[0]='3';

question2[1]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">1,470,000 mL to L = <input type="TEXT" size="10" name="question2"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent2"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> L</td></tr></table>';
truevalue2[1]='1.47';
exp2[1]='3';

question2[2]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">8.71 &micro;L to L = <input type="TEXT" size="10" name="question2"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent2"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> L</td></tr></table>';
truevalue2[2]='8.71';
exp2[2]='-6';

question2[3]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">34.8 mL to &micro;L = <input type="TEXT" size="10" name="question2"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent2"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> &micro;L</td></tr></table>';
truevalue2[3]='3.48';
exp2[3]='4';

question2[4]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">1.29 x 10<sup>8</sup> nL to mL = <input type="TEXT" size="10" name="question2"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent2"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> mL</td></tr></table>';
truevalue2[4]='1.29';
exp2[4]='2';

question2[5]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">893 mL to &micro;L = <input type="TEXT" size="10" name="question2"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent2"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> &micro;L</td></tr></table>';
truevalue2[5]='8.93';
exp2[5]='5';

window.document.write('<P ALIGN="LEFT"><FONT SIZE=+2>C. Volume Conversions:</FONT><BR>As with the conversions of the units of length, if the basic unit is not present in the problem, you will have to use several conversion factors.  Convert the starting unit to the basic unit, and then convert the basic unit to the desired unit.  Let&acute;s try the following example.  Convert 50 &micro;L to mL.</P><P ALIGN="LEFT">The sequence of conversions would be:<IMG SRC="/wps/media/objects/602/616516/mathtutorial/mL_L_mL.gif" WIDTH="116" HEIGHT="13" BORDER="0"></P><table cellspacing="0" cellpadding="0" align="CENTER"><tr><td align=CENTER>&nbsp;</td><td align=CENTER>1 L</td><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>3</sup> mL</td></tr><tr><td align=RIGHT> 50 &micro;L x </td><td align=CENTER> <hr NOSHADE> </td><td align=CENTER> x </td><td align=CENTER> <hr NOSHADE> </td></tr><tr><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>6</sup> &micro;L</td><td align=CENTER>&nbsp;</td><td align=CENTER>1 L</td></tr></table><p align="LEFT">The units now cancel out to give only the desired unit of milliliters.</p><table cellspacing="0" cellpadding="0" align="CENTER"> <tr><td align=CENTER>&nbsp;</td><td align=CENTER>1 <strike><font color="#0000FF">L</font></strike></td><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>3</sup> mL</td></tr><tr><td align=RIGHT> 50 <font color="#FF0000"><strike>&micro;L</strike></font> x </td><td align=CENTER> <hr NOSHADE> </td><td align=CENTER> x </td><td align=CENTER> <hr NOSHADE> </td></tr><tr><td align=CENTER>&nbsp;</td><td align=CENTER>10<sup>6</sup> <strike><font color="#FF0000">&micro;L</font></strike></td><td align=CENTER>&nbsp;</td><td align=CENTER>1 <strike><font color="#0000FF">L</font></strike></td></tr></table><P ALIGN="LEFT">Multiply the numbers, and then convert the answer to scientific notation.</P><P ALIGN="CENTER">50 x 10<SUP>-3</SUP> &micro;L = 5 x 10<SUP>-2</SUP> mL</P><P ALIGN="LEFT">The answer could also be expressed in decimal form as 0.05 mL.</P><P ALIGN="LEFT">Try another conversion using different volume units.</P>' + question2[index2]);

var index3=Math.round(Math.random()*(4-1))+1;
var question3=new Array(5);
var truevalue3=new Array(5);
var exp3=new Array(5);

question3[0]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">57.8 kg to g = <input type="TEXT" size="10" name="question3"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent3"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> g</td></tr></table>';
truevalue3[0]='5.78';
exp3[0]='4';

question3[1]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">57.8 kg to g = <input type="TEXT" size="10" name="question3"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent3"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> g</td></tr></table>';
truevalue3[1]='5.78';
exp3[1]='4';

question3[2]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">8,750 ng to g = <input type="TEXT" size="10" name="question3"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent3"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> g</td></tr></table>';
truevalue3[2]='8.75';
exp3[2]='-6';

question3[3]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">1.67 x 10<sup>5</sup> kg to mg = <input type="TEXT" size="10" name="question3"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent3"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> mg</td></tr></table>';
truevalue3[3]='1.67';
exp3[3]='11';

question3[4]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">8.89 x 10<sup>9</sup> &micro;g to mg = <input type="TEXT" size="10" name="question3"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent3"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> mg</td></tr></table>';
truevalue3[4]='8.89';
exp3[4]='6';

question3[5]='<table cellspacing="0" cellpadding="0" align="CENTER"><tr> <td align="CENTER">936 cg to mg = <input type="TEXT" size="10" name="question3"> x 10</td><td align="CENTER"> <input type="TEXT" size="5" name="exponent3"><br><img src="medialib/1pixel.gif" width="1" height="15"> </td><td align="CENTER"> mg</td></tr></table>';
truevalue3[5]='9.36';
exp3[5]='3';

window.document.write('<P ALIGN="LEFT"><FONT SIZE=+2>D. Mass Conversions:</FONT><BR>The conversion of one mass unit to another follows the same procedure that we looked at in the discussion of length and volume conversions.  Let&acute;s try the following example.  Convert 15,900 mg to kg.</P><P ALIGN="LEFT">The sequence of conversions would be: <IMG SRC="/wps/media/objects/602/616516/mathtutorial/mg_g_kg.gif" WIDTH="116" HEIGHT="13" BORDER="0"><TABLE CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER"><TR><TD WIDTH="67" ALIGN=CENTER>&nbsp;</TD><TD WIDTH="41" ALIGN=CENTER>1 g</TD><TD WIDTH="11" ALIGN=CENTER>&nbsp;</TD><TD WIDTH="34" ALIGN=CENTER>1 kg</TD></TR><TR><TD ALIGN=CENTER>15,900 mg x</TD><TD ALIGN=CENTER><HR NOSHADE></TD><TD ALIGN=CENTER>x</TD><TD ALIGN=CENTER><HR NOSHADE></TD></TR><TR><TD ALIGN=CENTER>&nbsp;</TD><TD ALIGN=CENTER>10<SUP>3</SUP> mg</TD><TD ALIGN=CENTER>&nbsp;</TD><TD ALIGN=CENTER>10<SUP>3</SUP> g</TD></TR></TABLE><P ALIGN="LEFT">The units now cancel out to give only the desired unit of kilograms.</P><TABLE CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER"><TR><TD WIDTH="67" ALIGN=CENTER>&nbsp;</TD><TD WIDTH="41" ALIGN=CENTER>1 <STRIKE><FONT COLOR="#0000FF">g</FONT></STRIKE></TD><TD WIDTH="11" ALIGN=CENTER>&nbsp;</TD><TD WIDTH="34" ALIGN=CENTER>1 kg</TD></TR><TR><TD ALIGN=CENTER>15,900 <STRIKE><FONT COLOR="#FF0000">mg</FONT></STRIKE> x</TD><TD ALIGN=CENTER><HR NOSHADE></TD><TD ALIGN=CENTER>x</TD><TD ALIGN=CENTER><HR NOSHADE></TD></TR><TR><TD ALIGN=CENTER>&nbsp;</TD><TD ALIGN=CENTER>10<SUP>3</SUP> <STRIKE><FONT COLOR="#FF0000">mg</FONT></STRIKE></TD><TD ALIGN=CENTER>&nbsp;</TD><TD ALIGN=CENTER>10<SUP>3</SUP> <STRIKE><FONT COLOR="#0000FF">g</FONT></STRIKE></TD></TR></TABLE><P ALIGN="LEFT">Multiply the numbers, and then convert the answer to scientific notation.</P><P ALIGN="CENTER">15,900  x  10<SUP>-6</SUP> kg   =   1.59  x  10<SUP>-2</SUP> kg</P><P ALIGN="LEFT">Try another conversion using different mass units.</P>' + question3[index3]);
3]);
