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 = {
        "poll1545":
        "<table border='0' cellpadding='0' cellspacing='0'>"
        + "<tr><td id='pollTitle1545' colspan='2' class='question'>Will technology be able to make the megacities of tomorrow secure and sustainable?</td></tr>"
                    + "<tr><td class='results'>Yes: <span id='pollOptionPercentage1569'>67%</span><br />"
            + "<span id='pollOptionVotes1569' style='display:none;'>195</span></td></tr>"
                    + "<tr><td class='results'>No: <span id='pollOptionPercentage1570'>33%</span><br />"
            + "<span id='pollOptionVotes1570' style='display:none;'>97</span></td></tr>"
                + "</table>",
        "dummy_for_ie": "dummy_for_ie"
}