function writeResultsNPLinks(prev,next,name,templ) {
  document.write('<table width=100% cellspacing=0 cellpadding=0 border=0>');
  document.write('<tr><td ALIGN="RIGHT">');
  var isprev=(prev != "");
  var isnext=(next != "");
  if (isprev) {
   document.write('<A HREF="/polls/results/',templ,'?pollname=',name,'&qnumber=',prev,'">');
  }
  document.write('<b><FONT SIZE="2" FACE="Arial">&lt;&lt; Previous Question</FONT></B>');
  if (isprev) {
   document.write('</A>');
  }
  document.write('<b> | </b>');
  if (isnext) {
   document.write('<A HREF="/polls/results/',templ,'?pollname=',name,'&qnumber=',next,'">');
  }
  document.write('<b><FONT SIZE="2" FACE="Arial">Next Question &gt;&gt;</FONT></b>');
  if (isnext) {
   document.write('</A>');
  }
  document.write('</td></tr></table>');
}

function writeResultItem(atext,matches,percent) {
  document.write('<tr><td>',atext,'</td><td>',matches,'</td><td>',percent,'</td></tr>');
}

