function rsvp_submit() {
	if($F('name') && $F('email') && $F('num')) {
		new Ajax.Request('index.php', {
			method: 'post',
			parameters: Form.serialize('rsvp_form'),
			onSuccess: function() {
				$('rsvp_form').setStyle({
					backgroundImage: 'url(images/form_bg_complete.png)'
				})
				new $('rsvp_form').update('<p>Thank you for your RSVP! <br />We\'ll see you there!</p>');
			}
		})
	} else {
		new Insertion.Before($('submit'), '<p class="error">There\'s not enough data here!</p>');
	}
	
	return false;
}