function vote(pollid,choiceid) {
        $.ajax({
            type: "GET",
            url: "/sv/application/poll/vote.php?pollid="+pollid+"&aid="+choiceid,
            success: function(msg){
                $("#vote").replaceWith(msg);
            }
          });
     }
     
function viewresults(pollid) {
        $.ajax({
            type: "GET",
            url: "/sv/application/poll/results.php?pollid="+pollid,
            success: function(msg){
                $("#vote").replaceWith(msg);
            }
          });
     }