function updatePoll(pollId) {
    var vote = getCookie("SpectrumPollVote") || "";
    var hasVoted = vote.indexOf("p" + pollId + "p") > -1;
    var voteOver = pollVote["poll" + pollId] == null;
    $("pollHolder" + pollId).innerHTML = ((hasVoted || voteOver) ? pollResult : pollVote)["poll" + pollId];
}

function docRefresh() {
 window.location.reload( true);
}

function submitPollResult(pollOptionId) {

var params = 'pollOptionId=' + pollOptionId;
new  Ajax.Request('polldata', {parameters: params,
onComplete: docRefresh,
evalScripts: true });

}





pollVote = {
                                        "dummy_for_ie": "dummy_for_ie"
}


pollResult = {
        "poll1285":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1285' colspan='2' class='question'>Would you be interested in working with the Science and Technology Council of the Academy of Motion Picture Arts and Sciences?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1289'>92%</span><br />"
            + "<span id='pollOptionVotes1289' style='display:none;'>45</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1290'>8%</span><br />"
            + "<span id='pollOptionVotes1290' style='display:none;'>4</span></td></tr>"
                + "</table>",
        "poll1306":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1306' colspan='2' class='question'>Is Silicon Valley posed for another historic growth spurt of new start-ups?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1312'>58%</span><br />"
            + "<span id='pollOptionVotes1312' style='display:none;'>42</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1313'>42%</span><br />"
            + "<span id='pollOptionVotes1313' style='display:none;'>31</span></td></tr>"
                + "</table>",
        "poll1267":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1267' colspan='2' class='question'>Do you think bioelectric therapy has a chance to one day help cure cancers?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1274'>69%</span><br />"
            + "<span id='pollOptionVotes1274' style='display:none;'>44</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1275'>8%</span><br />"
            + "<span id='pollOptionVotes1275' style='display:none;'>5</span></td></tr>"
                    + "<tr><td class='results'>Not sure: <span id='pollOptionPercentage1276'>23%</span><br />"
            + "<span id='pollOptionVotes1276' style='display:none;'>15</span></td></tr>"
                + "</table>",
        "poll1305":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1305' colspan='2' class='question'>How concerned are you about the safety of batteries in laptop computers?</td></tr>"
                    + "<tr><td class='results'>Very: <span id='pollOptionPercentage1309'>45%</span><br />"
            + "<span id='pollOptionVotes1309' style='display:none;'>21</span></td></tr>"
                    + "<tr><td class='results'>Somewhat: <span id='pollOptionPercentage1310'>17%</span><br />"
            + "<span id='pollOptionVotes1310' style='display:none;'>8</span></td></tr>"
                    + "<tr><td class='results'>Not: <span id='pollOptionPercentage1311'>38%</span><br />"
            + "<span id='pollOptionVotes1311' style='display:none;'>18</span></td></tr>"
                + "</table>",
        "dummy_for_ie": "dummy_for_ie"
}