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 = {
        "poll1385":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1385' colspan='2' class='question'>Will you buy videogame software for the holidays? </td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1389'>66%</span><br />"
            + "<span id='pollOptionVotes1389' style='display:none;'>91</span></td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1390'>34%</span><br />"
            + "<span id='pollOptionVotes1390' style='display:none;'>47</span></td></tr>"
                + "</table>",
        "poll1405":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1405' colspan='2' class='question'>Will you build humanitary concerns into your goals for the upcoming year?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1409'>73%</span><br />"
            + "<span id='pollOptionVotes1409' style='display:none;'>110</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1410'>27%</span><br />"
            + "<span id='pollOptionVotes1410' style='display:none;'>40</span></td></tr>"
                + "</table>",
        "dummy_for_ie": "dummy_for_ie"
}