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 = {
        "poll1225":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1225' colspan='2' class='question'>When do you expect Moore's Law to fail? </td></tr>"
                    + "<tr><td class='results'>2010 to 2020: <span id='pollOptionPercentage1229'>29%</span><br />"
            + "<span id='pollOptionVotes1229' style='display:none;'>48</span></td></tr>"
                    + "<tr><td class='results'>2020 to 2030: <span id='pollOptionPercentage1230'>21%</span><br />"
            + "<span id='pollOptionVotes1230' style='display:none;'>35</span></td></tr>"
                    + "<tr><td class='results'>It won't fail: <span id='pollOptionPercentage1231'>21%</span><br />"
            + "<span id='pollOptionVotes1231' style='display:none;'>34</span></td></tr>"
                    + "<tr><td class='results'>It has already: <span id='pollOptionPercentage1232'>29%</span><br />"
            + "<span id='pollOptionVotes1232' style='display:none;'>48</span></td></tr>"
                + "</table>",
        "poll1212":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1212' colspan='2' class='question'>How important will power generated from wind be to future energy production efforts?</td></tr>"
                    + "<tr><td class='results'>Very important: <span id='pollOptionPercentage1225'>56%</span><br />"
            + "<span id='pollOptionVotes1225' style='display:none;'>104</span></td></tr>"
                    + "<tr><td class='results'>Somewhat important: <span id='pollOptionPercentage1226'>29%</span><br />"
            + "<span id='pollOptionVotes1226' style='display:none;'>53</span></td></tr>"
                    + "<tr><td class='results'>Not very important: <span id='pollOptionPercentage1227'>15%</span><br />"
            + "<span id='pollOptionVotes1227' style='display:none;'>28</span></td></tr>"
                + "</table>",
        "poll1226":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1226' colspan='2' class='question'>Are the technical precautions Germany put in place for the World Cup helping to ensure public safety?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1233'>55%</span><br />"
            + "<span id='pollOptionVotes1233' style='display:none;'>36</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1234'>11%</span><br />"
            + "<span id='pollOptionVotes1234' style='display:none;'>7</span></td></tr>"
                    + "<tr><td class='results'>Not sure: <span id='pollOptionPercentage1235'>34%</span><br />"
            + "<span id='pollOptionVotes1235' style='display:none;'>22</span></td></tr>"
                + "</table>",
        "dummy_for_ie": "dummy_for_ie"
}