function EmitQuiz(Right, Wrong1, Wrong2, Wrong3, RightLink)
  {
  var
    Right_Available=1;
  var
    Wrong1_Available=1;
  var
    Wrong2_Available=1;
  var
    Wrong3_Available=1;
  document.writeln("<form><table cellpad=5>");
  var
    rindex;
  var
    tindex;
  taunts=new Array("Is it this one?",
                   "Could I be right?",
                   "Is that your final answer?",
                   "Are you sure about this one?",
                   "How much do I lose if I get it wrong?",
                   "I\'m not sure about that one.");

  while(Right_Available||Wrong1_Available||Wrong2_Available||Wrong3_Available)
    {
    rindex=parseInt(Math.random()*4.0);
    if((rindex==0)&&(Right_Available))
      {
      document.writeln("<tr><td align=center><INPUT TYPE=\"button\" VALUE=\"" + Right + "\" onMouseOver=window.status=taunts[parseInt(Math.random()*6.0)] onClick=\"window.location=\'" + RightLink + "\'\"></td></tr>");
      Right_Available=0;
      }
    else if((rindex==1)&&(Wrong1_Available))
      {
      document.writeln("<tr><td align=center><INPUT TYPE=\"button\" VALUE=\"" + Wrong1 + "\" onMouseOver=window.status=taunts[parseInt(Math.random()*6.0)] onClick=\"window.location=\'blincorrect.htm\'\"></td></tr>");
      Wrong1_Available=0;
      }
    else if((rindex==2)&&(Wrong2_Available))
      {
      document.writeln("<tr><td align=center><INPUT TYPE=\"button\" VALUE=\"" + Wrong2 + "\" onMouseOver=window.status=taunts[parseInt(Math.random()*6.0)] onClick=\"window.location=\'blincorrect.htm\'\"></td></tr>");
      Wrong2_Available=0;
      }
    else if((rindex==3)&&(Wrong3_Available))
      {
      document.writeln("<tr><td align=center><INPUT TYPE=\"button\" VALUE=\"" + Wrong3 + "\" onMouseOver=window.status=taunts[parseInt(Math.random()*6.0)] onClick=\"window.location=\'blincorrect.htm\'\"></td></tr>");
      Wrong3_Available=0;
      }
    }
  document.writeln("</table></form>");
  }
