function submitGetinvolvedForm() {
	var valid = new Validation('getinvolvedForm', {immediate: true, onSubmit:false});
	var validated = valid.validate();
	
	if (validated == true) {
		submitForm();
	} else {
		alert('There was an error with your submission. Please ensure that all required fields were filled. If the problem persists, please contact info[at]votemarkshelton[dot]com.');
	}
}

function submitForm () {
     var url = '/ajax/submit.php';
     var pars = $('getinvolvedForm').serialize();
     var target = 'formResponse';
     new Effect.SlideUp('formContainer');
     var myAjax = new Ajax.Updater(target, url, {method: 'post', parameters: pars, onSuccess: function(transport) {
          var teamID = transport.responseText;
          new Effect.SlideDown('formResponse');
     }});
}