function submitForm()
{
	if (Spry) {
		var r = Spry.Widget.Form.validate($('#formular').get(0));
		if (!r)
			return r;
	}

	$.ajax({
		type: 'POST',
		url: 'php/kontakt.php',
		data: $('#formular').serialize(),
		success: function(msg) { alert(msg); document.formular.reset();},
		error: function() { alert('Fehler beim Absenden der Nachricht!'); }
	});

	return false;
}

function bindContact()
{
	$('#formular').submit(submitForm);
}

$(bindContact);
