/* Adds the errors into an array of li's */
function ajax_error_formatting_join_errors( errors ) {
	var ret = new Array();
	errors.each( function(e,i) {
		ret.push( (new Element( 'li' )).update(e) );
	} );
	return $A(ret);
}
function ajax_error_formatting_set_errors( errors ) {
	errors.each( function(pair) {
		$(pair.key).classNames().add( 'ajax_error_field' );
		$(pair.key + '_error_list').childElements()
		ajax_error_formatting_join_errors( pair.value ).each( function(e,i) {
			$(pair.key + '_error_list').appendChild( e );
		} );
		$(pair.key + '_error_list').show();
	} );
}