function writeListNPLinks(islow,ishigh,status,logon,lowstart,highstart,count,templ) {
  document.write('<table width=100% cellspacing=0 cellpadding=0 border=0>');
  document.write('<tr><td ALIGN="RIGHT">');
  if (islow) {
   document.write('<A HREF="/polls/list/',templ,'?direction=lt&status=',status,'&logon=',logon,'&start=',lowstart,'&count=',count,'">');
  }
  document.write('<b><FONT SIZE="2" FACE="Arial">&lt;&lt; Previous ',count,'</FONT></B>');
  if (islow) {
   document.write('</A>');
  }
  document.write('<b> | </b>');
  if (ishigh) {
   document.write('<A HREF="/polls/list/',templ,'?direction=gt&status=',status,'&logon=',logon,'&start=',highstart,'&count=',count,'">');
  }
  document.write('<b><FONT SIZE="2" FACE="Arial">Next ',count,' &gt;&gt;</FONT></b>');
  if (ishigh) {
   document.write('</A>');
  }
  document.write('</td></tr></table>');
}

var bgcolor=1;
function writeListItem(timage,name,nameurl,description,simage,status) {
  if (bgcolor == 1) {
      document.write('<tr BGCOLOR="#F0F0F9">');
	  bgcolor = 0
  }
  else {
      document.write('<tr BGCOLOR="#FCFCFF">');
	  bgcolor = 1
  }
  document.write('<td>');
    document.write('<img src="/images/polls/',timage,'">&nbsp;');
    document.write('<a href="/polls/take/?pollname=',nameurl,'">',name,'</a>');
  document.write('</td><td>');
    document.write(description);
  document.write('</td><td>');
    document.write('<img src="/images/polls/',simage,'">&nbsp;');
    document.write(status);
  document.write('</td></tr>');
}

var bgcolor=1;
function writeListItemResults(timage,name,nameurl,description,simage,status) {
  if (bgcolor == 1) {
      document.write('<tr BGCOLOR="#F0F0F9">');
	  bgcolor = 0
  }
  else {
      document.write('<tr BGCOLOR="#FCFCFF">');
	  bgcolor = 1
  }
  document.write('<td>');
    document.write('<img src="/images/polls/',timage,'">&nbsp;');
    document.write('<a href="/polls/results/?qnumber=0&pollname=',nameurl,'">',name,'</a>');
  document.write('</td><td>');
    document.write(description);
  document.write('</td><td>');
    document.write('<img src="/images/polls/',simage,'">&nbsp;');
    document.write(status);
  document.write('</td></tr>');
}

function writeListItemManage(timage,name,nameurl,description,simage,status) {
  document.write('<tr><td>');
    document.write('<img src="/images/polls/',timage,'">&nbsp;');
    document.write('<img src="/images/polls/',simage,'">&nbsp;');
    document.write('<a href="/poll-manager/polls/edit/?pollname=',nameurl,'" target="_manage">',name,'</a>');
  document.write('</td><td>');
    document.write(description);
  document.write('</td><td>');
  document.write('</td></tr>');
}


