Index: trunk/grails-app/i18n/messages.properties
===================================================================
--- trunk/grails-app/i18n/messages.properties	(revision 824)
+++ trunk/grails-app/i18n/messages.properties	(revision 825)
@@ -321,4 +321,5 @@
 default.create.failure={0} could not be created.
 default.create.revision.failure=Could not create revision.
+default.could.not.perform.operation=Could not perform operation.
 default.optimistic.locking.failure=Another user has updated this item while you were editing, please check the updated values.
 default.file.over.max.size=Supplied file is greater than max size of {0} {1}.
Index: trunk/grails-app/views/layouts/main.gsp
===================================================================
--- trunk/grails-app/views/layouts/main.gsp	(revision 824)
+++ trunk/grails-app/views/layouts/main.gsp	(revision 825)
@@ -28,4 +28,10 @@
                     <img src="${resource(dir:'images',file:'loading_bar.gif')}" alt="Spinner" />
                 </div>
+                <div id="jQueryAjaxLoading" class="jQueryAjaxLoading" style="display:none;">
+                    <img src="${resource(dir:'images',file:'loading.gif')}" alt="Loading" title="Loading" />
+                </div>
+                <div id="jQueryAjaxDefaultError" class="message_error" style="display:none;">
+                    <g:message code="default.could.not.perform.operation" />
+                </div>'
                 <g:if env="production">
                     <div id="Header">
Index: trunk/web-app/css/main.css
===================================================================
--- trunk/web-app/css/main.css	(revision 824)
+++ trunk/web-app/css/main.css	(revision 825)
@@ -231,5 +231,5 @@
 .jQueryAjaxLoading {
     margin: 10px 0 5px 0;
-    padding: 5px 5px 5px 0px
+    padding: 5px 5px 5px 0px;
 }
 
Index: trunk/web-app/js/application.js
===================================================================
--- trunk/web-app/js/application.js	(revision 824)
+++ trunk/web-app/js/application.js	(revision 825)
@@ -15,11 +15,9 @@
 // jQuery AJAX utils.
 
-function getLoadingHtml() {
-    var imgSrc = getContextPath()+"/images/loading.gif";
-    return '<div class="jQueryAjaxLoading"><img src="'+imgSrc+'" />.</div>';
+function loadingIndication() {
+    return jQuery('#jQueryAjaxLoading').clone();
 }
 
-function getErrorHtml() {
-    var html =  '<div class="message_error">Could not perform operation.</div>';
-    return html;
+function errorIndication() {
+    return jQuery('#jQueryAjaxDefaultError').clone();
 }
