Some code re-use in templates
As a side-effect the pre-accept and pre-accept are now first, rather
then mingled with the other buttons.
Patch by: Sverre Rabbelier
<html><head><title>We ran out of memory</title></head><body>We ran out of memory while serving your request, please try again.</body></html>