function outputLookBar(pollnameu,prevq,nextq,pfx,uid)
{
     document.write('<table BGCOLOR="#FFFFFF" width=100% cellspacing=0 cellpadding=0><tr><td ALIGN="RIGHT">');
     if (prevq != "" && nextq != "") {
          document.write('<b>[</b><A HREF="/polls/take/?pollname=');
          document.write(pollnameu);
          document.write('&lookup=');
          document.write(uid);
          if (pfx != "") {
               document.write('&prefix=');
               document.write(pfx);
          }
          document.write('"><b>Start Over</b></A><b>]</b>');
          document.write('&nbsp;<A HREF="/polls/take/?pollname=');
          document.write(pollnameu);
          document.write('&lookup=');
          document.write(uid);
          document.write('&qnumber=');
          document.write(prevq);
          if (pfx != "") {
               document.write('&prefix=');
               document.write(pfx);
          }
          document.write('"><b>&lt;&lt; Previous Question</b></A>');
          document.write('&nbsp; | <A HREF="/polls/take/?pollname=');
          document.write(pollnameu);
          document.write('&lookup=');
          document.write(uid);
          document.write('&qnumber=');
          document.write(nextq);
          if (pfx != "") {
               document.write('&prefix=');
               document.write(pfx);
          }
          document.write('"><b>Next Question &gt;&gt;</b></A>');
     }
     else if (nextq != "") {
          document.write('<b>[Start Over] &lt;&lt; Previous Question</b>');
                    document.write(' | <A HREF="/polls/take/?pollname=');
          document.write(pollnameu);
          document.write('&lookup=');
          document.write(uid);
          document.write('&qnumber=');
          document.write(nextq);
          if (pfx != "") {
               document.write('&prefix=');
               document.write(pfx);
          }
          document.write('"><b>Next Question &gt;&gt;</b></A>');

     }
     else if (prevq != "") {
          document.write('<B>[</B><A HREF="/polls/take/?pollname=');
          document.write(pollnameu);
          document.write('&lookup=');
          document.write(uid);
          if (pfx != "") {
               document.write('&prefix=');
               document.write(pfx);
          }
          document.write('"><b>Start Over</b></A><b>]</b>');
          document.write('| <A HREF="/polls/take/?pollname=');
          document.write(pollnameu);
          document.write('&lookup=');
          document.write(uid);
          document.write('&qnumber=');
          document.write(prevq);
          if (pfx != "") {
               document.write('&prefix=');
               document.write(pfx);
          }
          document.write('"><b>&lt;&lt; Previous Question</b></A>');
          document.write('<b>Next Question &gt;&gt;</b>');
     }
     else {
          document.write('<b>[Start Over] &lt;&lt; Previous Question | Next Question &gt;&gt;</b>');
     }
     if (getCookie("pollframe") == "0") {
          document.write('</td><td align=right><b>[</b><A HREF="/polls/?useframes=0"><b>Menu</b></A><b>]</b>');
     }
     document.write('</td></tr></table>');
}

function outputQuestionBar(number)
{
     document.write('<table border=0 bgcolor="88FFFF" width=100% cellspacing=0 cellpadding=0 cellspacing=0><tr bgcolor="#B9D2EB"><td>');
     document.write('<FONT FACE="Arial" COLOR="#606060" SIZE="2"><B>Question #:');
     document.write(++number);
     document.write('</B></FONT></td></tr></table><BR>');
}


function handleFrames()
{
     var inframe=(getCookie("pollframe") == "1");
     if (!inframe) {
          writeHeader();
     }
}

function initOutput()
{
     document.write('<TABLE bgcolor="FFFFFF" bordercolor="808080" BORDER=0 width=100% cellwidth=0 cellspacing=0 cellpadding=0>');
     document.write('<TR><TD bgcolor="#FFFFFF">');
}

