document.open();
document.writeln('');
// below we write any error messages or if all clear we write the html for the poll itself
// here we are writing a script file that checks to make sure that people have both predicted and voted when they submit
// note we split up the script tag
// note we are even making sure of a unique form name based on the poll id
// we do this because on a site with more than one poll for instance the Tapoll Tech blog, we would run into trouble with the same form name
// this happens to be one of those debugging fixes ;-)
// this is a good example of when you might need a combination of PHP and JavaScript happening
// note how we return the results of the validate function on the onClick() of the form submit button
// the validate function checks the entries and if not complete it alerts a message and returns false;
// finally when ready and all is filled in we return true; and the submit click goes through
// look on the radio buttons to see how we change predictCheck and voteCheck to 1 using the onClick() event
document.writeln('