var w1=3;var r4='';var N1='';var X1='';var p2='What does <font size=+1>';var r3='Which expression is described by:<br><b>';var q2='</font> mean?';var s3='</b><p>';var _1='';var U1='';var P1='<b><font color="navy">';var Q1='</font></b>';var B4='in blue bold letters';var r1=new Array(new Array("Resume previous test",0,0),new Array("Expressions A-B",1,14),new Array("Expressions C-E",15,26),new Array("Expressions F-L",27,39),new Array("Expressions M-P",40,55),new Array("Expressions R-S",56,71),new Array("Expressions T-Z",72,81),new Array("All expressions",1,81));var X=new Array("asteroid","astronaut","astronomer","atmosphere","axis","atom","bacteria","black hole","blur","big bang theory","bolt","boulder","brittle","bulge","Celsius","collapse","collision","comet","cosmonaut","crater","debris","detect","elliptical","energy","environment","expand","fragment","fuel","galaxy","gamma-ray","gap","gas","gravity","gravitational pull","hurricane","kilometer","light year","lunar module","lunar rover","mass","matter","meteor","meteorite","meteoroid","module","mythology","NASA","nuclear fusion","orbit","particle","payload","physicist","physics","plains","pole","radio wave","re-entry","reflect","reusable","revolve","rotate","satellite","scattered","solar","solar flare","solar wind","space probe","spectrograph","spectroscope","sunspot","supernova","telescope","ultraviolet ray","universe","valley","vehicle","visible","volcano","water vapor","weightless","X-ray");var A=new Array("A rocky space object that can be a few feet wide to several hundred miles wide; in our solar system mostly orbiting in a belt between Mars and Jupiter.","A person who travels in space.","Scientist who observes and studies planets, stars, and galaxies.","All the gases which surround a star, like our Sun, or a planet, like our Earth.","An imaginary straight line around which an object spins.","The tiny building block that makes up everything.","Living things that have only one cell and are so small they can only be seen with a microscope.","An invisible object in outer space formed when a massive star collapses from its own gravity. It has such a strong pull of gravity that not even light can escape from it.","To make less clear, to run together.","A theory that says the Universe began with a super-powerful explosion.","A flash of lightning.","A very large piece of rock.","Easy to break or crack.","To swell or stick out; the part that swells or sticks out.","A metric temperature scale in which water freezes at 0 degrees and boils at 100 degrees.","To fall down or fall to pieces.","A crash or forceful joining together.","A big ball of dirty ice and snow in outer space.","An astronaut from the former Soviet Union or present day Russia.","A hole caused by an object hitting the surface of a planet or moon.","Broken, scattered remains; rubble; pieces of rubbish or litter.","To discover something which is hidden or unknown.","Shaped like an egg that has ends which are equal.","The power to do work.","Everything that surrounds anything.","To make larger.","A broken piece of something.","Anything that is burned to give heat or power.","A giant collection of gas, dust, and millions or billions of stars.","An invisible form of energy that is given off by atoms.","An empty space.","A form of matter which is not a liquid or a solid. It will spread out to fill up all of the space that is open to it.","The invisible force between objects that makes objects attract each other.","The attraction that one object has for another object due to the invisible force of gravity.","A very, very strong windstorm where the wind blows in circles at more than 46 kilometers per hour. Heavy rains often come with the winds.","1,000 meters; it equals 0.6214 miles.","The distance light can travel in one year, which is 9,500,000,000,000 kilometers.","The section of the Apollo spacecraft designed to land on the Moon.","The car-like vehicle used by Apollo astronauts while exploring the Moon's surface.","The amount of matter in an object.","What all things are made of.","An object from space that becomes glowing hot when it passes into Earth's atmosphere.","A piece of stone or metal from space that falls to Earth's surface.","A piece of stone or metal that travels in outer space.","A part of a set that can be arranged together in different ways.","Old stories that usually explain how something came to be.","The National Aeronautics and Space Administration which is in charge of all space programs for the United States.","A process where atoms are joined and tremendous amounts of energy are released.","The path followed by an object in space as it goes around another object; to travel around another object in a single path.","A very, very tiny piece of matter such as an electron, proton, or neutron found inside of an atom.","Cargo which is carried on the Space Shuttle.","A person who studies physics.","The study of how objects (from the very tiny to the very big) behave.","Large pieces of flat land.","The point at either end of the invisible line known as the axis. Planets have a south pole and a north pole.","A type of energy that is made by charged particles such as electrons moving back and forth.","The return of a spacecraft into Earth's atmosphere.","To throw back light, heat, or sound.","Can be used again.","To move in an orbit or circle around something.","To turn around a center point, or axis, like a wheel turns on a bicycle.","An object that moves around a larger object. They can be natural (such as moons) or man-made (such as the Hubble Space Telescope).","Going in many different directions.","Having to do with the Sun.","A storm or eruption of hot gases on the Sun.","Streams of gas particles flowing out from the Sun.","An unmanned research craft sent into space.","The picture produced by a spectroscope.","An instrument that breaks up the white light from a star into its different colors.","A dark area on the Sun's surface that is cooler than the area around it. They are caused by magnetic storms on the Sun.","An explosion of a star that causes the star to shine millions of times brighter than usual.","A device which creates a larger image of a far away object.","An invisible form of energy which is given off by the Sun. It causes people to get sunburned.","The huge space which contains all of the matter and energy in existence.","A piece of low land lying between hills or mountains.","Something used to carry people and things over land or in space.","Able to be seen.","An opening in a planet's surface through which hot liquid rock is thrown up.","Water which is in the form of a gas.","Having little or no weight; not feeling the effects of gravity.","An invisible form of energy which can go through most solid objects.");var b1=new Array("");var I=new Array("");var L2=new Array("");var Z1=false;var t4=true;var V2=r1.length;var T=Math.min(Math.max(X.length,b1.length),Math.max(A.length,I.length));var L=new Array();var P=0;var b=new Array(0,0,0,0,0,0,0,0,0,0);var T1=false;var f=new Array(T+1);var s=new Array(T+1);var v=new Array(T+1);var z=new String("");var V=new String("");var r=new Array(w1);var t=new Array(w1);var v2=new Array();var F2=new Array();var n1=0;var z1=0;var O1=0;var J2=new String('abcdefghijklmnopqrstuvwxyz');var j1=1000000,X2=-j1;var p1=new String('/_*@.');function L4(X3,R3){return X3-R3}function y(j){return((j!=null)&&(typeof(j)!='string')&&(j.length!=null))}function D2(j){for(var a=0;a<j.length;a++)if(!isNaN(j[a]))j[a]=Number(j[a])}function g1(P2){if(P2<0)P2=0;return Math.round(Math.random()*P2)}function F3(C1){if(typeof(C1)!='string')return C1;var e2=0,Y1=C1.length;while((e2<Y1)&&(C1.charAt(e2)==' '))e2++;while((e2<Y1)&&(C1.charAt(Y1-1)==' '))Y1--;return C1.substring(e2,Y1)}function c4(j,d,e){if(d<0)d=0;if(e>=j.length)e=j.length-1;if(e<=d)return;var a,k,m,W3=e-d;for(a=d;a<=e;a++){m=d+g1(W3);if(a!=m){k=j[a];j[a]=j[m];j[m]=k}}}function I4(j){if(!j.length)return 0;var c=j[0];for(var a=1;a<j.length;a++)if(c<j[a])c=j[a];return c}function H3(j){var c=0;for(var a=0;a<j.length;a++)if(j[a]>0)c++;return c}function p3(j,q3,M){var c=new String('');var y1=(M>=p1.length)?':':p1.charAt(M);for(var a=q3;a<j.length;a++){if(a)c+=y1;c+=(y(j[a]))?p3(j[a],0,M+1):j[a]}if(j.length-q3<2)c+=y1;return c}function w3(j,M,C3){var K,y1=(M>=p1.length)?':':p1.charAt(M);var c=j.split(y1);if(M<p1.length){y1=(M+1>=p1.length)?':':p1.charAt(M+1);for(var a=0;a<c.length;a++){K=c[a];if(K.indexOf(y1)>=0){if(K.charAt(K.length-1)==y1)K=K.substring(0,K.length-1);c[a]=(K.length)?w3(K,M+1,C3):new Array()}else if((C3)&&!isNaN(K))c[a]=Number(K)}}return c}function m4(){for(var a=0;a<=T;a++)f[a]=a-1;}function k4(){z1=0;O1=0;n1=0;for(var a=0;a<=T;a++){s[a]=0;v[a]=0;}}function Q3(){N("Passes",p3(L,P,0),2);N("QSP",f.join("/"),2);N("QS1",v.join("/"),2);N("QS0",s.join("/"),2);N("LastRes",z1+'/'+O1+'/'+n1,2)}function i4(){var w,D1,c=true;w=A1("Passes");if(w){L=w3(w,0,true)}else{c=false}w=A1("QSP");if(w){f=w.split("/");D2(f)}else{c=false}w=A1("QS1");if(w){v=w.split("/");D2(v)}else{c=false}w=A1("QS0");if(w){s=w.split("/");D2(s)}else{c=false}w=A1("LastRes");if(w){D1=w.split("/");D2(D1)}else{c=false}if(D1.length>=3){z1=D1[0];O1=D1[1];n1=D1[2];P=0;if(P<L.length){b=L[P]}else{P=0;b=new Array(0,0,0,0,0,0,0,0,0,0);c=false}}else{c=false}return c}function F4(){N("Passes","",0);N("QSP","",0);N("QS1","",0);N("QS0","",0);N("LastRes","",0)}function p4(){return(A1("Passes")!=null)}function a3(d4){var u3=L.length;L[u3]=new Array(d4,new Array(),new Array(),new Array(),new Array(),new Array());for(var a=1;a<arguments.length;a++)L[u3][5+a]=arguments[a]}function Y3(t3,A3){var k=f[t3];f[t3]=f[A3];f[A3]=k}function y3(d,e){var m,h4=e-d;for(var a=d;a<=e;a++){m=g1(h4)+d;if(m!=a)Y3(a,m)}}function v4(d,e,i3,Y,W1){var c=new Array();if(Y>e){if(W1)Y=d;else return c}var b2=0,a=Y;if(e<d)return c;while(b2<i3){c[b2++]=a++;if(a>e){if(W1)a=d;else break}if(a==Y)break}return c}function G4(d,e,x4,U3,V3,_3,f3,o3,e3,g3,n3,c3){if(d<0)d=0;if(e>=s.length)e=s.length-1;if(f3==null)f3=X2;if(g3==null)g3=j1;if(o3==null)o3=X2;if(n3==null)n3=j1;if(e3==null)e3=X2;if(c3==null)c3=j1;for(var a=d;a<=e;a++){if((s[f[a]]>=f3)&&(s[f[a]]<=g3)&&(v[f[a]]>=o3)&&(v[f[a]]<=n3)&&(s[f[a]]+v[f[a]]>=e3)&&(s[f[a]]+v[f[a]]<=c3)){s[f[a]]=x4*s[f[a]]+U3;v[f[a]]=V3*v[f[a]]+_3}}}function o4(d,e,i3,Y,W1,b3,T2,_2){var c=new Array();if(Y>e){if(W1)Y=d;else return c}var b2=0,a=Y;if(e<d)return c;if(!b3)b3=j1;if(!T2)T2=j1;if(!_2)_2=j1;while(b2<i3){if((s[f[a]]<b3)&&(v[f[a]]<T2)&&(s[f[a]]+v[f[a]]<_2)&&(s[f[a]]>=0)&&(v[f[a]]>=0))c[b2++]=a;a++;if(a>e){if(W1)a=d;else break}if(a==Y)break}return c}function N3(){var k;if(Z1)return;T1=!T1;k=N1;N1=X1;X1=k;k=A;A=X;X=k;k=I;I=b1;b1=k;k=r3;r3=p2;p2=k;k=s3;s3=q2;q2=k;k=U1;U1=_1;_1=k}function n4(u){var F1,u2,J3,R2,E1,c=new Array();for(var a=0;a<u.elements.length;a++){F1=u.elements[a];u2=F1.name;if(u2.substring(0,8)=='ansinput'){J3=u2.charAt(8);R2=Number(u2.substring(9));if(!isNaN(R2)){E1=null;switch(J3){case'c':E1=F1.selectedIndex;break;case'r':if(F1.checked)E1=F1.value-1;break;case't':E1=F1.value;break;}if(E1!=null)c[R2]=E1}}}return c}function z2(l,a2,B,e1,B2){var c;if(B2)c=(B)?b1[l]:X[l];else c=(B)?b1[f[l]]:X[f[l]];if(y(c))c=c[a2];if(((!B)&&!(e1&1))||((B)&&!(e1&2)))c="";return(c==null)?"":c}function x2(l,C2,B,e1,B2){var i;if(B2)i=(B)?I[l]:A[l];else i=(B)?I[f[l]]:A[f[l]];if(Z1){if(i==null)return"";else i=(B2)?i[L2[f[l]]]:i[L2[l]]}else{if(y(i)){i=i[C2]}}if(((!B)&&!(e1&4))||((B)&&!(e1&8)))i="";return(i==null)?"":i}function A2(E3,C2,B,e1){var i=(B)?I[f[E3]]:A[f[E3]];if(Z1){if(i==null)return"";else i=i[C2]}else{if(y(i))i=i[C2]}if(((!B)&&!(e1&4))||((B)&&!(e1&8)))i="";return(i==null)?"":i}function E2(m1,d1){if(y(m1)){if(y(d1)){for(var o=0;o<m1.length;o++)for(var k1=0;k1<d1.length;k1++)if(m1[o]==d1[k1])return true}else{for(var o=0;o<m1.length;o++)if(m1[o]==d1)return true}}else{if(y(d1)){for(var k1=0;k1<d1.length;k1++)if(m1==d1[k1])return true}else{if(m1==d1)return true}}return false}function K4(s2,r2){return((E2(A[s2],A[r2])&&E2(I[s2],I[r2]))||(E2(X[s2],X[r2])&&E2(b1[s2],b1[r2])))}function z3(F,Z){var k3,Q2,Y2,a,K1,k2;for(a=0;a<F.length;a++){k2=0;for(K1=0;K1<a;K1++)if(F[K1]==F[a]){k2=K1;break}if(k2){Z[a]=Z[k2]}else{k3=b1[f[F[a]]],Q2=X[f[F[a]]];Y2=Math.max((y(k3))?k3.length:0,(y(Q2))?Q2.length:0);if((Z[a]==null)||(Z[a]>=Y2))Z[a]=g1(Y2-1)}}Z.length=F.length}function E4(l,f1,o1){var G1,t1,M1,a,n2,m,k,B1;var h,p=new Array();if(Z1){G1=f[l];t1=Math.max((A[G1]==null)?0:A[G1].length,(I[G1]==null)?0:I[G1].length);for(a=0;a<t1;a++)p[a]=[l,a,l,a];h=L2[G1]}else{t1=w1;p[0]=new Array(l,0,l,0);for(a=1;a<t1;a++){M1=true;while(M1){m=g1(o1-f1)+f1;M1=false;for(n2=0;(n2<a)&&!M1;n2++)if(K4(f[p[n2][0]],f[m]))M1=true}p[a]=new Array(m,0,m,0)}for(a=0;a<t1;a++){B1=A[f[p[a]]];if(y(B1))p[a][1]=g1(B1.length-1);B1=I[f[p[a]]];if(y(B1))p[a][3]=g1(B1.length-1)}h=0}if(!(Z1&&t4)){for(a=0;a<t1;a++){m=g1(t1-1);if(m!=a){k=p[a];p[a]=p[m];p[m]=k;if(h==a)h=m;else if(h==m)h=a}}if(h>=w1){m=g1(w1-1);k=p[h];p[h]=p[m];p[m]=k;h=m}}if(p.length>w1)p.length=w1;return[h,p]}function B3(F,f1,o1){var g2,h3=F.length;for(var a=0;a<h3;a++){g2=E4(F[a],f1,o1);F2[a]=g2[0];v2[a]=g2[1]}F2.length=h3;v2.length=h3}function K2(l1,d,e,v1){var i1=1;for(var a=d;a<e;a++){i1--;if(!i1||l1[a]){l1[a]=1;i1=v1}else l1[a]=0}}function M3(l1,d,e){var a,H2,j2,h1,S2,U2,v1=0,i1=0;for(a=d;a<e;a++){if(l1[a]){if(i1>v1)v1=i1;i1=0}i1++}if(!v1)return;j2=d;for(a=d;a<=e;a++){if((a>=e)||l1[a]){h1=a-j2;if(h1&&(h1<v1)){S2=v1;for(H2=j2;H2<a;H2++){U2=Math.round(S2/h1--);S2-=U2;l1[H2]+=2*U2}}j2=a}}}function q4(w2){var l,n,C,o2;for(var g=0;g<b[1].length;g++){l=b[1][g];n=b[3][g];C=((n-1)%4)+1;switch(b[0]){case 1:o2=b[18][g];if(n>0){switch(C){case 1:case 2:b[18][g]=1;b[3][g]=n-C+4;break;case 3:case 4:if(w2[g]&&(b[17]||!o2))n1++;if(w2[g]>0){if(b[17]||!o2){v[f[l]]++;z1++}b[18][g]=0;b[3][g]=0}else if(w2[g]<0){if(b[17]||!o2){s[f[l]]++;O1++}b[18][g]=(b[16])?0:-1;b[3][g]=(b[16])?0:n-C+1}break;}}break;case 2:if((n>0)&&(C>2)){if(w2[g]>0)b[3][g]=0}break;default:;}}}function u4(I1){var a,E,q1,q,_,m;var H,c,g2,a1=false,V1=I1;do{H=false;switch(b[0]){case 0:H=true;c=false;break;case 1:E=-1;if(V1){if(!y(b[18]))b[18]=new Array();if(T1==!b[10])N3()}if(!b[1].length){if(b[11])y3(b[6],b[7]);E=b[6]}else{if(!H3(b[3])&&!V1){E=b[1][b[1].length-1]+1;b[1].length=0}}if(E>=0){b[1]=o4(b[6],b[7],b[12],E,b[22]-1,b[19],b[20],b[21]);q1=b[1].length;if((b[22]>1)&&q1&&(b[1][q1-1]<E))b[22]--;for(a=0;a<q1;a++){b[3][a]=b[13];b[4][a]=b[14];b[18][a]=0}b[3].length=q1;b[4].length=q1;b[18].length=q1;b[2].length=0;a1=true}_=b[1].length;if(a1){b[5].length=0;K2(b[5],0,_,b[15]);M3(b[5],0,_)}if(a1)z3(b[1],b[2]);if(a1||I1)B3(b[1],b[8],b[9]);H=(!_);c=!H;break;case 2:E=-1;if(V1){if(T1==!b[10])N3()}if(!b[1].length){if(b[11])y3(b[6],b[7]);E=b[6]}else{if(!H3(b[3])&&!V1){E=I4(b[1])+1;b[1].length=0}}if(E>=0){b[1]=v4(b[6],b[7],b[17],E,b[21]-1);q=b[1].length;if((b[21]>1)&&q&&(b[1][q-1]<E))b[21]--;for(a=0;a<q;a++){b[3][a]=b[18];b[4][a]=b[19]}b[3].length=q;b[4].length=q;b[2].length=0;if(q){for(a=0;a<q;a++)b[1][q+a]=b[1][a];c4(b[1],q,2*q-1);b[1].length=q+Math.min(b[12],q);for(a=q;a<q+b[12];a++){b[3][a]=b[13];b[4][a]=b[14];}}a1=true}_=b[1].length;if(a1){b[5].length=0;K2(b[5],0,q,b[20]);K2(b[5],q,_,b[15]);M3(b[5],0,_)}if(a1)z3(b[1],b[2]);if(a1||I1)B3(b[1],b[8],b[9]);H=(!_);c=!H;break;case 3:G4(b[6],b[7],b[10],b[11],b[12],b[13],b[14],b[15],b[16],b[17],b[18],b[19]);H=true;c=false;break;default:H=true;c=false;}if(H){if(++P<L.length){b=L[P];V1=true}else{H=false}}}while(!c&&H)return c}function G2(H4,M4){var b4=F3(H4.toString()),Z3=F3(M4.toString());return(b4.toLowerCase()==Z3.toLowerCase())}function y4(t2,l4,h,R1){var R=new Array();for(var a=0;a<t2.length;a++){if((R1[a]==null)||(h[a]==null))R[a]=0;else switch(t2[a]){case-1:case 0:case 1:case 2:case 5:case 6:case 9:case 10:case 13:case 14:R[a]=0;break;case 3:case 4:case 7:case 8:case 11:case 12:R[a]=(Number(R1[a])==h[a])?1:-1;break;case 15:case 16:if(R1[a]=='')R[a]=0;else{R[a]=-1;i=A[f[l4[a][h[a]][0]]];if(y(i)){for(var Q=0;Q<i.length;Q++)if(G2(R1[a],i[Q]))R[a]=1}else{if(G2(R1[a],i))R[a]=1}}break;default:R[a]=0;}}return R}function T3(F,Z,t2,f4,G3,D4,J4){var l,n,C,a2,U,O,h,D,x,G,a,h1,H1;var s1,m3,y2,S=new Array(0,0,0,0),u1=new Array(0,0,0,0),h2=2;with(parent.frames[2].document){open('text/html','replace');writeln('<html>');writeln('<head>');writeln('<title> </title>');writeln('<style> A { text-decoration: none } DIV.anslist { margin-left: 2.2em; text-indent: -1.2em } </style>');writeln('</head>');writeln('<body bgcolor="white">');writeln('<script language="JavaScript">function ProcessAns(qidx, ansidx) { parent.frames[0].l3(document.InputForm, false, qidx, ansidx) }<','/script>');writeln('<form name="InputForm" method="post" onSubmit="javascript:return false">');writeln('<table border="0" cellpadding="5" cellspacing="0">');for(var g=0;g<F.length;g++){n=t2[g];if(!n)continue;l=F[g];a2=Z[g];U=f4[g];O=D4[g];h=J4[g];h2|=G3[g]&1;h1=G3[g]>>>1;G=O.length;if(n>0){C=((n-1)%4)+1;D=((C==3)||(C==4));if(D)S[(n-C)>>>2]++;x=((C==1)||(C==3));if(x)u1[(n-C)>>>2]++}if(h2==1)writeln('</tr>');if(h2){writeln('<tr>');h2=0}write('<td align="center"');if(h1>1)write(' colspan="',h1,'"');writeln('>');V=z2(l,a2,false,U,false);z=z2(l,a2,true,U,false);if(n==-1){if(h<0){t[0]=x2(l,0,false,U,false);r[0]=x2(l,0,true,U,false)}else{t[0]=A2(O[h][0],O[h][1],false,U);r[0]=A2(O[h][2],O[h][3],true,U)}writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">');write('<tr><td align="left" width="20%">','<b>',V,'</b>');if(z.length)write('<br><img src="',X1,z,'"',_1,'>');writeln('</td>');write('<td align="left">',t[0]);if(r[0].length)write('<br><img src="',N1,r[0],'"',U1,'>');writeln('</td></tr>');writeln('</table>');continue}writeln('<table border="0" cellpadding="0" cellspacing="0"><tr><td align="left">');if(z.length)writeln('<img src="',X1,z,'"',_1,' align="left">');if(p2.length)writeln(p2);if(V.length)writeln(V);if(q2.length)writeln(q2);for(a=0;a<G;a++){t[a]=A2(O[a][0],O[a][1],false,U);r[a]=A2(O[a][2],O[a][3],true,U)}Aimgs=0;Atexts=0;for(a=0;a<G;a++){if(r[a].length)Aimgs++;if(t[a].length)Atexts++}if((n<=8)&&Aimgs){writeln('<table border="0" cellpadding="5" cellspacing="0"><tr>');for(a=0;a<G;a++){writeln('<td align="center" valign="middle">');if(r[a].length){write('<img src="',N1,r[a],'"',U1);if(D)write(' onClick="javascript:ProcessAns(',g+1,', ',a+1,')"');writeln('>')}if(Atexts)writeln('<br>');if(t[a].length){if(x&&(a==h))write(P1);writeln(t[a]);if(x&&(a==h))write(Q1)}writeln('</td>')}writeln('</tr><tr>');if(n<=4){for(a=0;a<G;a++){write('<td align="center">');if(x&&(a==h))write(P1);if(D)write('<a href="javascript:ProcessAns(',g+1,', ',a+1,')">');write(J2.charAt(a)+')');if(D)write('</a>');if(x&&(a==h))write(Q1);writeln('</td>')}writeln('</tr></table>');if(D){writeln('<select name="ansinputc'+g+'">');for(a=0;a<G;a++)write('<option value="',1+a,'">',J2.charAt(a)+') ');writeln('</select>')}}else{for(a=0;a<G;a++){write('<td align="center">');write('<input type="radio" name="ansinputr',g,'" value="',1+a,'"');if(x&&(a==h))write(' checked');if(!D)write(' readonly');writeln('></td>')}writeln('</tr></table>')}}if(!Aimgs){if(n<=4){for(a=0;a<G;a++){writeln('<div class="anslist">');if(x&&(a==h))write(P1);if(D)write('<a href="javascript:ProcessAns(',g+1,', ',a+1,')">');write(J2.charAt(a)+'. ');if(D)write('</a>');write(' ',t[a]);if(x&&(a==h))write(Q1);writeln('</div>')}writeln('<p>');if(D){writeln('<select name="ansinputc'+g+'">');for(a=0;a<G;a++)write('<option value="',1+a,'">',J2.charAt(a)+') ');writeln('</select>')}}else if(n<=8){for(a=0;a<G;a++){write('<br><input type="radio" name="ansinputr',g,'" value="',1+a,'"');if(x&&(a==h))write(' checked');if(!D)write(' readonly');write('>');if(x&&(a==h))write(P1);write(t[a]);if(x&&(a==h))write(Q1);writeln()}}else if(n<=12){writeln('<select name="ansinputc',g,'">');for(a=0;a<G;a++){write('<option value="',1+a,'"');if(x&&(a==h))write(' selected');writeln('>',t[a])}writeln('</select>')}else if(n<=16){if(x){write('? <br><font size=+2 color="navy">',t[h],'</font>')}else{write('<input type="text" name="ansinputt',g,'"');if(!D)write(' readonly >')}}}writeln('</td></tr></table>');writeln('</td>')}writeln('</tr>');writeln('</table><br>');y2=u1[0]+u1[1]+u1[2]+u1[3];if(y2){if(y2==1)write('Correct answer is printed');else write('Correct answers are printed');if((u1[0])||(u1[1]&&Atexts))writeln(' '+P1+B4+'.'+Q1+' ');else writeln('.'+' ');}m3=S[0]+S[1]+S[2]+S[3];if(m3){if(S[0]+S[1]+S[2]){if(S[3])s1='Select/enter';else s1='Select'}else s1='Enter';if(m3==1)s1+=' the correct answer';else s1+=' the correct answers';s1+=' please ';if(y2)writeln('<br>');writeln(s1,' and press the button ')}else writeln(' ');writeln('<input type="button" value=" Next " onClick="parent.frames[0].l3(this.form, false, 0, 0)">');writeln('<input type="button" value=" Finish " onClick="parent.frames[0].TheEnd(this.form, true, false)">');writeln('<p><b>Status:</b><table cellpadding="1" bgcolor="white">');writeln('<tr><td>Answer</td>');for(o=b[6];o<=b[7];o++)writeln('<td bgcolor="linen" align="center">',1+f[o],'</td>');writeln('</tr>');writeln('<tr><td>Correct</td>');for(o=b[6];o<=b[7];o++){H1=v[f[o]];if(H1<0)H1='-';writeln('<td bgcolor="linen" align="center">',H1,'</td>')}writeln('</tr>');writeln('<tr><td>Missed</td>');for(o=b[6];o<=b[7];o++){H1=s[f[o]];writeln('<td bgcolor="linen" align="center">',H1,'</td>')}writeln('</tr>');writeln('</table>');writeln('</form></body></html>');close()}}function l3(u,I1,g,I3){var l2;if(!I1){if(g&&I3){l2=new Array();l2[g-1]=I3-1}else l2=n4(u);q4(y4(b[3],v2,F2,l2))}C4();if(u4(I1)){T3(b[1],b[2],b[3],b[4],b[5],v2,F2)}else{TheEnd(u,false,true)}}function v3(u,d,e,O3,A4,w4){var d3=Number(O3),W2=Number(A4),Z2=Number(w4);d=Number(d);if(isNaN(d)||(d<1))d=1;e=Number(e);if(isNaN(e)||(e>T))e=T;if(e<d)e=d;m4();k4();var J=K3(u);if(J){var f1=r1[J][1],o1=r1[J][2];var N4=0;var i2,x1=[d],M2=1;L=[];for(var a=0;a<V2;a++){i2=r1[a][1];if((d<=i2)&&(i2<=e)){x1[M2++]=i2}}x1[M2++]=e+1;x1.sort(L4);for(var a=0;a<M2-1;a++){if(x1[a]<x1[a+1]){d=x1[a];e=x1[a+1];a3(1,d,e-1,f1,o1,Z2,W2,4,-1,5,1,d3,0,[],0,2,0,1);a3(1,d,e-1,f1,o1,Z2,W2,1,4,15,1,d3,0,[],0,1,0,0);a3(1,d,e-1,f1,o1,Z2^1,W2,1,4,15,1,d3,0,[],0,2,0,0);}}P=0;b=L[P];}else{i4()}l3(u,true,0,0)}function TheEnd(u,a4,z4){if(z4)F4();if(a4)Q3();parent.frames[2].location.href='theend.htm';}function C4(){with(parent.frames[1].document){open('text/html','replace');writeln('<html>');writeln('<body background="'+r4+'bg.gif">');writeln('<font size=+1 color="brown"><center>');writeln('<b>Questions: ',n1,' Correct: ',z1,' Incorrect: ',O1,'<br>');if(n1>0)score=String(Math.floor(100*z1/n1))+'%';else score='';writeln('Score: ',score,'<br>');writeln('</center></font></body></html>');close()}}function g4(d2,j3,d,e){var i,a,Q;for(a=d-1;a<e;a++){i=(j3)?X[a]:A[a];if(y(i)){for(Q=0;Q<i.length;Q++)if(G2(d2,i[Q]))return new Array(a,Q)}else{if(G2(d2,i))return new Array(a,0)}}return new Array(-1,0)}function e4(d2,j3,m2,d,e){if(d<0)d=1;if(e<0)e=T;if(T1)m2=!m2;var W=g4(d2,j3,d,e);var s4=(W[0]>=0);var j4=window.open("",'SearchResWindow','resizable=yes,width=400,height=150');var J1,L1,S1,f2,k;with(j4.document){open('text/html','');writeln('<html><head><title> </title></head><body>');if(s4){V=z2(W[0],W[1],false,15,true);z=z2(W[0],W[1],true,15,true);t[0]=x2(W[0],W[1],false,15,true);r[0]=x2(W[0],W[1],true,15,true);J1='<h2>';L1='</h2>';S1='';f2=''}else{V=d2;z='';t[0]='Expression was not found.';r[0]='';J1='<h2><i>';L1='</i></h2>';S1='';f2='';m2=false}if(z.length)z='<img src="'+X1+z+'"'+_1+'>';if(r[0].length)r[0]='<img src="'+N1+r[0]+'"'+U1+'>';if(m2){k=V;V=t[0];t[0]=k;k=z;z=r[0];r[0]=k;k=J1;J1=S1;S1=k;k=L1;L1=f2;f2=k}writeln('<br>');writeln('<table border="0" cellpadding="0" cellspacing="0" width="100%">');writeln('<tr><td>');writeln(J1,V,L1);writeln('</td><td width="10%"> </td><td>');writeln(S1,t[0],f2);writeln('</td></tr><tr><td>');if(z.length)writeln(z);writeln('</td><td> </td><td>');if(r[0].length)writeln(r[0]);writeln('</td></tr></table>');writeln('</body></html>');close()}}function S3(N2){N2.writeln('<select name="SelectSect" onChange="parent.frames[0].x3(this.form)">');for(var a=(p4())?0:1;a<V2;a++){N2.writeln('<option value="',a,'">',r1[a][0])}N2.writeln('</select>')}function K3(u){var D3=u.SelectSect;return Number(D3.options[D3.selectedIndex].value)}function x3(u){var J=K3(u);if((J<0)||(J>V2))J=1;u.c1.value=(J)?r1[J][1]:' ';u.c2.value=(J)?r1[J][2]:' '}