+// Displays the process window for given prefix and content
+function displayProcessWindow (prefix, ajax_content) {
+ // Fade out warning window, if open
+ //* DEBUG: */ alert('displayProcessWindow(): prefix=' + prefix + ' - calling closeWarningWindow()');
+ closeWarningWindow(prefix);
+
+ // Fade it out for eye-candy
+ closeErrorWindow(prefix);
+
+ // Fade it out for eye-candy
+ closeProcessWindow(prefix);
+
+ // Abort here if processDisplayed is still true
+ if (processDisplayed == true) {
+ // Make sure this doesn't happen
+ return;
+ } // END - if
+
+ // Copy the response text to the process variable
+ if (ajax_content.reply_content != undefined) {
+ $('#' + prefix + '_process_content').html(ajax_content.reply_content);
+ } else {
+ $('#' + prefix + '_process_content').html(ajax_content);
+ }
+
+ // Fade the process in
+ $('#' + prefix + '_process').fadeIn('slow', function() {
+ // Mark process as displayed
+ processDisplayed = true;
+ });
+}
+