$(document).ready(function() {
	$('#pollform').submit(function(e) {
		//Empty the log and show the spinning indicator.
		  var opval = $('input:radio[name=op1]:checked').val();  
		  var theid = $("input#theid").val();  
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		 var dataString = 'submit=1&op1=' + opval + '&theid=' + theid;  
 $.ajax({  
   type: "POST",  
   url: "submitpoll.php",  
   data: dataString,  
   success: function(response) {
     $('.thepollform').html(response);   
  }  
 });  
   return false;
	});
});

