function subscribe(type)
{
	var data = {'email':$("#email").attr("value"), 'type':type};
	$.ajax({
		url: 'send_contacts.php',
		type: 'post',
		data: data,
		success: function message(response) {
			if (response == 1) {
				$("#error").html('Information is sent');
				$("#contacts")[0].reset();
			}
			else $("#error").html(response);
		}
	})
}

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