function ask_a_question_onSuccess(t) {
  var result = t.responseJSON;

  // commenting didn't work?
  if(!result.success)
  {
    var errors = {};
    vailidation_failed(errors,'ask_a_question.email',result.error_code);
    display_errors(errors,'','ask_a_question');
  } 
  else 
  {
    $('ask_a_question').reset();
    display_notification('Thank you for contacting Understanding Animal Research. We will reply as soon as possible.',true);  
  }  

}

function ask_a_question_onFailure() {
  display_notification('Sorry, there was a problem posting your question.');

	// re-enable the form
	Form.enable('ask_a_question');
}

