




function vote(uri, type, pollId) {
                
/**
* This empties the log and shows the spinning indicator
*/

   var log = $('poll_'+pollId);
                            
   log.empty().addClass('ajax-loading');
 			    
   new Ajax('/voter.html', 
   {
      update: $('poll_'+pollId),
      data : Object.toQueryString({action: "vote", uri: uri, type : type, pollid : pollId }),
      method: 'post', 
      onComplete: function(request) { 
                     log.removeClass('ajax-loading');                                   		   
               } 
   }).request();
                      

}  // end of funct

