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 = {
        "poll1209":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1209' colspan='2' class='question'>Do you think Research in Motion made the right decision to settle its patent dispute with NTP Inc. for US $612.5 million?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1219'>50%</span><br />"
            + "<span id='pollOptionVotes1219' style='display:none;'>20</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1220'>50%</span><br />"
            + "<span id='pollOptionVotes1220' style='display:none;'>20</span></td></tr>"
                + "</table>",
        "poll1207":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1207' colspan='2' class='question'>Would 100 megabits per second satisfy your broadband needs at home?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1214'>82%</span><br />"
            + "<span id='pollOptionVotes1214' style='display:none;'>264</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1215'>18%</span><br />"
            + "<span id='pollOptionVotes1215' style='display:none;'>58</span></td></tr>"
                + "</table>",
        "poll1208":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1208' colspan='2' class='question'>How would you describe the importance of the wireless revolution occurring in Africa to the future of technology?</td></tr>"
                    + "<tr><td class='results'>Very important: <span id='pollOptionPercentage1216'>71%</span><br />"
            + "<span id='pollOptionVotes1216' style='display:none;'>29</span></td></tr>"
                    + "<tr><td class='results'>Somewhat important: <span id='pollOptionPercentage1217'>17%</span><br />"
            + "<span id='pollOptionVotes1217' style='display:none;'>7</span></td></tr>"
                    + "<tr><td class='results'>Not important: <span id='pollOptionPercentage1218'>12%</span><br />"
            + "<span id='pollOptionVotes1218' style='display:none;'>5</span></td></tr>"
                + "</table>",
        "poll1211":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1211' colspan='2' class='question'>Have you ever heard of Olin College, the new engineering-only university?</td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1223'>67%</span><br />"
            + "<span id='pollOptionVotes1223' style='display:none;'>95</span></td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1224'>33%</span><br />"
            + "<span id='pollOptionVotes1224' style='display:none;'>46</span></td></tr>"
                + "</table>",
        "dummy_for_ie": "dummy_for_ie"
}