+ fadeInWindow(prefix, 'error');
+}
+
+// Displays the progress window for given prefix and content
+function displayProgressWindow (prefix, ajax_content) {
+ //* DEBUG: */ alert('displayProgressWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
+ // Fade all windows out
+ closeAllWindows(prefix);
+
+ // Abort here if progressDisplayed is still true
+ if (isElementVisible(prefix, 'progress')) {
+ // Make sure this doesn't happen
+ return;
+ } // END - if
+
+ // Copy the response text to the progress variable
+ if (ajax_content.reply_content != undefined) {
+ // Set HTML content
+ setProgressContent(prefix, ajax_content.reply_content);
+ } else {
+ setProgressContent(prefix, ajax_content);
+ }
+
+ // Fade the progress in
+ fadeInWindow(prefix, 'progress');
+}
+
+// Displays the success window for given prefix and content
+function displaySuccessWindow (prefix, ajax_content) {
+ //* DEBUG: */ alert('displaySuccessWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
+ // Fade all windows out
+ closeAllWindows(prefix);
+
+ // Abort here if successDisplayed is still true
+ if (isElementVisible(prefix, 'success')) {
+ // Make sure this doesn't happen
+ return;
+ } // END - if
+
+ // Copy the response text to the success variable
+ if (ajax_content.reply_content != undefined) {
+ // Set HTML content
+ setSuccessContent(prefix, ajax_content.reply_content);
+ } else {
+ setSuccessContent(prefix, ajax_content);
+ }
+
+ // Fade the success in
+ fadeInWindow(prefix, 'success');
+}
+
+// Sets "warning content"
+function setWarningContent (prefix, content) {
+ // Set HTML content
+ $('#' + prefix + '_warning_content').html(content);
+}
+
+// Sets "error content"
+function setErrorContent (prefix, content) {
+ // Set HTML content
+ $('#' + prefix + '_error_content').html(content);
+}
+
+// Sets "progress content"
+function setProgressContent (prefix, content) {
+ // Set HTML content
+ $('#' + prefix + '_progress_content').html(content);
+}
+
+// Sets "success content"
+function setSuccessContent (prefix, content) {
+ // Set HTML content
+ $('#' + prefix + '_success_content').html(content);
+}
+
+// Close all windows
+function closeAllWindows (prefix) {
+ //* DEBUG: */ alert('closeAllWindows(): Calling closeWarningWindow(' + prefix + ', true, false)');
+ closeWarningWindow(prefix, true, false);
+ //* DEBUG: */ alert('closeAllWindows(): Calling closeErrorWindow(' + prefix + ', true, false)');
+ closeErrorWindow(prefix, true, false);
+ //* DEBUG: */ alert('closeAllWindows(): Calling closeProgressWindow(' + prefix + ', true, false)');
+ closeProgressWindow(prefix, true, false);
+ //* DEBUG: */ alert('closeAllWindows(): Calling closeSuccessWindow(' + prefix + ', true, false)');
+ closeSuccessWindow(prefix, true, false);
+ //* DEBUG: */ alert('closeAllWindows(): EXIT!');