var callback1 =
{
    success: function(o) {
        pollDiv = document.getElementById("poll");
        pollDiv.innerHTML = o.responseText;
    },
    failure: function(o) {
        alert("Momentan chestionarul este indisponibil.");
    },
    argument: ['biz','cafe']
};

function pollVote()
{
    YAHOO.util.Connect.setForm("zapoll");
    YAHOO.util.Connect.asyncRequest("POST", "/chestionar", callback1);
}

function pollSeeResults(pollId)
{
    YAHOO.util.Connect.asyncRequest("GET", "/chestionar?action=results&poll_ident=" + pollId, callback1);
}

function pollBack2Vote()
{
    YAHOO.util.Connect.asyncRequest("GET", "/chestionar", callback1);
}
