function pollSubmit(objectID){
  var data= $('input[name=answer_' + objectID + ']:checked').val();
  var currentUrl = document.location.href;
	if(currentUrl.indexOf('?') != -1)
		currentUrl = currentUrl+"&type=9631";
	else 
		currentUrl = currentUrl+"?type=9631";
$.ajax({
  url: currentUrl,
  cache: false,
  type: "POST",
  data: 'tx_nxpoll_pi1[pollId]=' + objectID + '&tx_nxpoll_pi1[answer]=' + data,
  success: function(html){
    $("#pollinfo" + objectID).html(html);
  }
});
}
