function getCookie(Name) {
  var search=Name+"=";

  if (document.cookie.length > 0) { // if there are any cookies
    offset=document.cookie.indexOf(search);
    if (offset != -1) { // if cookie exists
      offset+=search.length;
      // set index of beginning of value
      end=document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1) {
       end=document.cookie.length;
      }
      return(unescape(document.cookie.substring(offset, end)));
    }
  }
  return("");
}

function writeHeader() {
document.write('  <TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0" BORDER="0">');
document.write('   <TR>');
document.write('    <TD WIDTH="100%" ALIGN="CENTER" VALIGN="MIDDLE" BGCOLOR="#B9D2EB">');
document.write('     <IMG SRC="/totals.gif" WIDTH="239" HEIGHT="57" BORDER="0">');
document.write('    </TD>');
document.write('   </TR>');
document.write('   <TR>');
document.write('    <TD WIDTH="100%" HEIGHT="20" ALIGN="CENTER" VALIGN="MIDDLE" BGCOLOR="#F0F0F0">');
document.write('     <FONT FACE="Arial" SIZE="2">');
document.write('      <B>');
document.write('       [ <A HREF="/polls/list/?status=new" TARGET="[PNQ_TARGET_2]">New Polls</A> |');
document.write('        <A HREF="/polls/list/?status=any" TARGET="[PNQ_TARGET_2]">All Polls</A> |');
document.write('        <A HREF="/polls/list/results.htm?results" TARGET="[PNQ_TARGET_2]">Results for Poll</A> |');
document.write('        <A HREF="/polls/list/look-up.htm?lookup" TARGET="[PNQ_TARGET_2]">Results for Individual</A> |');
document.write('        <A HREF="/polls/?useframes=1+set" target="_top">Frames</A> ]');
document.write('      </B>');
document.write('     </FONT>');
document.write('    </TD>');
document.write('   </TR>');
document.write('  </TABLE><BR>');
}



