function display_errors(d,a){var c=new Array();$H(d).each(function(e){$H(e[1]).each(function(f){f[1].each(function(g){c.push(render_error(e[0].toLowerCase(),f[0].toLowerCase(),g.toLowerCase()))})})});var b="";if(a){a.each(function(e){b+=e+"<br />"})}c.each(function(e){b+=e+"<br />"});display_notification(b)}function render_error(c,d,b){var a=Try.these(function(){if(!system_errors[c][d][b]){throw"not_found"}return system_errors[c][d][b]},function(){return system_errors[c]["default"][b]},function(){return system_errors["default"]["default"][b]});var e=d;e=e.replace("_id","");e=e.replace("_"," ");return a.replace("{name}",e.capitalize())}var system_errors={"default":{"default":{not_unique:"{name} is already in use by someone else.",required:"{name} is a required field. You must choose or enter a value.",type:"{name} is not valid.",after_end:"The end date must be after the start date.",invalid_email:"The email address is wrong.",invalid_html:"The html entered is wrong.",invalid_news:"The news is wrong.",invalid_url:"The link you entered is wrong.",bad_tags:"The field {name} has HTML tags that are not allowed.",has_html:"HTML is not allowed in the {name} field."}},comment:{body:{has_link:"Sorry, you can not post comments that contain html links."}},member:{password:{already_used:"The new password you have attempted to set has already been used by you previously. Please enter a password you have not used before and try again."}}};