function submitForm()
{	
	if (Spry) {
		var r = Spry.Widget.Form.validate($('#kontakt_form').get(0));
		if (!r)
			return r;
	}
	$.ajax({
		type: 'POST',
		url: 'php/kontakt.php',
		data: $('#kontakt_form').serialize(),
		success: function(msg) { alert(msg); document.kontakt_form.reset();},
		error: function() { alert('Fehler beim Absenden der Nachricht!'); }
	});

	return false;
}

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

$(bindContact);
