function validateForm(formEl) {
  for(i=0;i<formEl.pollVoteID.length;i++) {
    if(formEl.pollVoteID[i].checked) {
      window.open('http://polls.freewebs.com/Members/Polls/viewPollResults.jsp?pollID=2232469&userID=4964882','pollresults','width=100,height=100,toolbar=no,locaion=no,menubar=no,scrollbars,statusbar=no');
      return true;
      break;
    }
  }
    alert('Please make a selection.');
    return false;
}

document.write("<FORM action=\"http://polls.freewebs.com/Members/Polls/vote.jsp\" target=\"pollresults\" onSubmit=\"javascript:return validateForm(this);\">");
document.write("<input type=hidden name=\"userID\" value=\"4964882\">");
document.write("<input type=hidden name=\"pollID\" value=\"2232469\">");

document.write("<TABLE cellspacing=0 cellpadding=2 style=\"border:1px solid #000000;background-color:#FFFFFF;font-size:x-small;\">");
document.write("<CAPTION style=\"font-weight:bold;border:1px solid #000000;background-color:#727272;color:#000000;\" nowrap>Is the new layout more useful than before?</CAPTION>");

 document.write("<TR><TD style=\"background-color:#727272;border-bottom:1px solid #000000;color:#000000;\" nowrap>");
 document.write("<input type=\"radio\" name=\"pollVoteID\" id=\"pollOption0\" value=\"13626896\">");
 document.write("<label for=\"pollOption0\">Yes</label><BR>"); 
 document.write("</TD></TR>");

 document.write("<TR><TD style=\"background-color:#727272;border-bottom:1px solid #000000;color:#000000;\" nowrap>");
 document.write("<input type=\"radio\" name=\"pollVoteID\" id=\"pollOption1\" value=\"13626897\">");
 document.write("<label for=\"pollOption1\">No</label><BR>"); 
 document.write("</TD></TR>");

 document.write("<TR><TD style=\"background-color:#727272;border-bottom:1px solid #000000;color:#000000;\" nowrap>");
 document.write("<input type=\"radio\" name=\"pollVoteID\" id=\"pollOption2\" value=\"13626898\">");
 document.write("<label for=\"pollOption2\">I don\'t know the old layout.</label><BR>"); 
 document.write("</TD></TR>");

document.write("<TR><TD style=\"text-align:center;font-size:smaller;background-color:#727272;\">");
document.write("<input type=\"submit\" style=\"cursor:hand;\" value=\"Cast My Vote!\"><BR>");
document.write("<A href=\"#\" onClick=\"window.open('http://polls.freewebs.com/Members/Polls/viewPollResults.jsp?pollID=2232469&userID=4964882',null,'width=100,height=100,toolbar=no,locaion=no,menubar=no,scrollbars');return false;\" style=\"color:#000000;\">View Results</A>");
document.write("</TD></TR>"); document.write("</TABLE>");
document.write("</FORM>");