﻿// JScript File
function Answer(){

}

function getAnswersByPollId(pollid, objectid){
   showWaitDiv(document.getElementById(objectid),false,false,true);
                  
   new Ajax.Request("/ajaxservices/answers/answers.aspx",
    { method:'post',asynchronous:true,postBody:'pollid=' + pollid + '&action=getanswersbypollid', onSuccess:function(t){         
           document.getElementById(objectid).innerHTML = t.responseText;
           showSuccessfulMsg("");
        }, onFailure:function(t){
           alert(t.responseText);
    }}); 
}

Answer.prototype.getanswersbypollid = getAnswersByPollId;
