var adresseEmp = {
	message: null,
	show: function (dialog) {
		$('.modalAdrNewEmp').click(function (e) {
			e.preventDefault();
				$.ajax({
					url: 'includes/new_emp_addr.inc.php',
					data: $('#adresseNewForm').serialize() + '&action=send',
					type: 'post',
					cache: false,
					dataType: 'html',
					complete: function (xhr) {
						var txt = xhr.responseText;
						if (txt.indexOf("error_txt") >0 ) {
						$('#adresse-error').html(xhr.responseText);
						} else {
						$.modal.close()
						$('#empfaenger_adresse').html(xhr.responseText);

						window.location = "http://fmx01.nicheit.com.au/wdowns/thefundingengine/site/membersPage.php";
						};
					},
					error: adresseEmp.error
				});
		});
	},
	error: function (xhr) {
		alert(xhr.statusText);
	}
};
