jq13(document).ready(function (){
	jq13("#inquiries").submit(function () {
		send();
		return false;
	});
	jq13("#reset_button").click(function () {
		clearError();
	})
});

function send()
{
	var data = jq13("#inquiries").serialize();
	jq13.ajax({
		url: 'send_inquiries.php',
		type: 'post',
		data: data,
		success: function message(response) {
			if (response == 1) {
				jq13("#error").html('Information has been sent');
				jq13("#inquiries")[0].reset();
			}
			else jq13("#error").html(response);
		}
	})
}

function clearError()
{
	jq13("#error").html('');
}
