// Displays a welcome message to user if he had already been here before
function displayFirstName(poll)
{
  var firstName = getCookie('firstName');
  if (firstName != null)
  {
    document.write("<DIV ALIGN=CENTER><STRONG>" + firstName + ", feel free to vote again.&nbsp;&nbsp;</STRONG><a href=javascript:eraseName() CLASS=quiz>(not " + firstName + "?)</A></DIV>");
    document.write("<P ALIGN=CENTER><a href=PollResults.php?poll=" + poll + ">Or see the results so far &gt;&gt;</a></P>");
  }
  else
  {
    document.write("<P>Please enter your first name: <INPUT NAME=firstNameBox TYPE=text SIZE=6 MAXLENGTH=13></P>");
  }
}
