function submitForm( id ) {
	form = $('#' + id + ' form');
	if (form) {
		var options = {
			 target: '#' + id,
			 beforeSubmit: function(formData, jqForm, options) {
				$('html,body').animate({scrollTop: $('#' + id).offset().top},100);
			 }
		};
		form.ajaxSubmit(options);
		
		// destroy recaptcha object if instanciated
		if (typeof Recaptcha != 'undefined') {
			Recaptcha.destroy();
		}
	}
}

