$(function() {
    $('.error').hide();
    $("#formbutton2").click(function() {

	 var datastring = $(submail).serialize(); 
  //alert (datastring);return false;
  $.ajax({
    type: "POST",
    url: "/inc/send_mail_lead.php",
    data: datastring,
    success: function() {
      $('#lead_email').html("<div id='message'></div>");
      $('#message').html("<p>Your Information was received.  Thank you.</p>")
    },
	error:function (xhr, ajaxOptions, thrownError){
                    alert(xhr.status);
                    alert(thrownError);
                }
  });
  return false;

    });
  });

  


