function process_vote() {
  selected_option = 0;
  for (i=0; i<document.poll.polloption.length; i++) {
    if (document.poll.polloption[i].checked == true) {
      selected_option = document.poll.polloption[i].value;
    }
  }
  if (selected_option == 0) {
    alert("please selected an option");
  } else {
  	$.ajax({
	  type: "POST",
   	  url: "/newsite/polloption/process_vote/" + selected_option,
   	  data: "",
      success: function(msg){
		$('#poll_td').html(msg);
      },
      failure: function(msg){
		 alert( "Error Loading item, please refresh the page" );
      }
    });  
  }
}