	<!-- Hide from JavaScript-Impaired Browsers
ctr=0;
/* Put the title of your test here, just
   as you want it to appear on screen. */
ttl="Baby Trivia";

/* Now, what is a perfect score? Although
   it will usually be 100, you can alter 
   it if you wish. However, it may not
   exceed 999 and must be a whole number. */
psco=100;

/* Deduction for each wrong answer. May
   be the perfect score divided by the
   number of questions.  But if you "weight"
   wrong answers, as we have done in this
   little demo script, it may be higher,
   but must be a whole number.  */
wrans=25;

/* Deduction for each "no answer". Usually
   this will be the simple arithmetical
   perfect score divided by number of
   questions. (A whole number) However,
   again, you are in charge. */
noans=20;

/* Change "nr" below to be equal to the
   number of questions you have on this
   test. (Our demo has 5 questions) */
nr=5;

/* Simply replace the "questions" below with
   the ones you wish to use for this test. If
   you wish more than 5 questions, simply add
   ques[5], ques[6], etc. But be sure that the
   "nr" just above is changed to reflect the
   actual number of questions you have
   prepared.  NOTE: do not use any double
   quote signs in your questions.  If you
   need them, use the HTML &quot; instead.
   Or, single quote signs may be safely used. */
ques=new Array();
ques[0]="<FONT SIZE=-1>The heaviest baby at birth weighed ";
ques[1]="<FONT SIZE=-1>The water (amniotic fluid) surrounding the baby";
ques[2]="<FONT SIZE=-1><P ALIGN=JUSTIFY>The oldest mother on record was";
ques[3]="<FONT SIZE=-1>The lightest baby at birth weighed";
ques[4]="<FONT SIZE=-1><P ALIGN=JUSTIFY>The most surviving births from a multiple gestation is";
// add as many questions as you wish here

/* Now the tedious part.  You must put the
   letter equivalent for each correct answer
   (a, b, c, d, or e) in order in a row for
   your particular test.  As you can see
   below, I've done so for the demo test. */
cor="ddcbc";

/* When entering your own answers, do not
   use any double quote signs in your 
   answers.  Instead, use the HTML &quot;
   so the JS will not get confused. */
ans=new Array();
ans[0]="<FONT SIZE=-1>16 pounds";
ans[1]="<FONT SIZE=-1>18 pounds";
ans[2]="<FONT SIZE=-1>20 pounds";
ans[3]="<FONT SIZE=-1>24 pounds";
ans[4]="<FONT SIZE=-1>28 pounds";

ans[5]="<FONT SIZE=-1>is made by the bag of water";
ans[6]="<FONT SIZE=-1>comes from the mom's abdomen";
ans[7]="<FONT SIZE=-1>is made by the placenta";
ans[8]="<FONT SIZE=-1>is mostly baby urine";
ans[9]="<FONT SIZE=-1>appears by magic";

ans[10]="<FONT SIZE=-1>46 years old";
ans[11]="<FONT SIZE=-1>56 years old";
ans[12]="<FONT SIZE=-1>66 years old";
ans[13]="<FONT SIZE=-1>76 years old";
ans[14]="<FONT SIZE=-1>86 years old";

ans[15]="<FONT SIZE=-1>170 grams (6 ounces)";
ans[16]="<FONT SIZE=-1>270 grams (10 ounces)";
ans[17]="<FONT SIZE=-1>370 grams (13 ounces)";
ans[18]="<FONT SIZE=-1>470 grams (1 pound 1 ounce)";
ans[19]="<FONT SIZE=-1>570 grams (1 pound 4 ounce)";

ans[20]="<FONT SIZE=-1>5";
ans[21]="<FONT SIZE=-1>6";
ans[22]="<FONT SIZE=-1>7";
ans[23]="<FONT SIZE=-1>8";
ans[24]="<FONT SIZE=-1>9";
// Continue adding answers here

ns="0123456789"
ls="abcde";
astr="";
ack=new Array();
for (var i=0;i<nr;i++){
 ack[i]=(nr*5)+1;
 }

function lightIt(){
 document.images[flg+ad].src="nr/rbl.gif";
 }
function dimIt(){
 if (ack[Math.floor(flg/5)]!=flg){
  document.images[flg+ad].src="nr/rbd.gif";
  }
 }
function dumpIt(){
 if (ack[Math.floor(flg/5)]==flg){
  document.images[ack[Math.floor(flg/5)]+ad].src="nr/rbd.gif";
  ack[Math.floor(flg/5)]=(nr*5)+1;
  }
 else{
  if (ack[Math.floor(flg/5)]!=flg&&ack[Math.floor(flg/5)]!=(nr*5)+1){
   document.images[ack[Math.floor(flg/5)]+ad].src="nr/rbd.gif";
   }
  document.images[flg+ad].src="nr/rbl.gif";
  ack[Math.floor(flg/5)]=flg;
  }
 }
function ckSco(){
 document.images[ad+(nr*5)].src="nr/cwf2.gif";
 setTimeout('document.images[ad+(nr*5)].src="nr/cwf0.gif"',1000);

 for (var i=0;i<nr;i++){
  u=cor.charAt(i);
  v=ls.indexOf(u)+(i*5);
  document.images[ad+v].src="nr/gbl.gif";
  }
 sco=psco;
 for (var i=0;i<nr;i++){
  if (ack[i]==(nr*5)+1){
   sco-=noans;
   }
  else{
   u=cor.charAt(i);
   v=ls.indexOf(u)+(i*5);
   sco=(v==ack[i]?sco:sco-wrans);
   }
  }
 sco=(sco<0?0:sco); // prevent minus score
 scos=""+sco;
 while (scos.length<3){
  scos="0"+scos;
  }
 document.images[ad+(nr*5)+1].src="nr/yts.gif";
 ctr=ad+(nr*5)+2;
 for (var i=0;i<3;i++){
  nj=ns.indexOf(scos.charAt(i));
  document.images[ctr].src="nr/"+nj+".gif";
  ctr++;
  }
 }
function litbut(){
 document.images[ad+(nr*5)].src="nr/cwf1.gif";
 }
function dimbut(){
 document.images[ad+(nr*5)].src="nr/cwf0.gif";
 }
/* This little routine is simply used to count the
   number of images you may place on your web page
   prior to the radio buttons.  Just makes the routine
   independent of how you lay your page out. */
var ad = 0;
function getImgAdd(){
 for (var i=0;i<20;i++){
  if (document.images[i].src.indexOf("rbd.gif")>-1){
   ad=i;
   i=20;
   }
  }
 }
// End Hiding -->
