$(function() {
  $(".submit").click(function() {
		var firstName = $("#firstName").val(); 
		var lastName = $("#lastName").val(); 
		var email = $("#email").val();  
		var phone1 = $("#phone1").val(); 
		var phone2 = $("#phone2").val(); 
		var time = $("#time").val();  
		var specialty = $("#specialty").val();  
		var comments = $("#comments").val();  
		var captcha = $("#captcha").val(); 
		var dataString = 'firstName='+ firstName + '&lastName='+ lastName + '&email=' + email + '&phone1=' + phone1 + '&phone2=' + phone2 + '&time=' + time + '&specialty=' + specialty + '&comments=' + comments + '&captcha=' + captcha;
		$.ajax({
	      type: "POST",
	      url: "inquire.php",
	      data: dataString,
	      success: function(html) {
	        $('#inquire_form').html(html);
	      }
		});
    return false;
	});
});

