Index: trunk/ippTasks/detrend.norm.pro
===================================================================
--- trunk/ippTasks/detrend.norm.pro	(revision 11476)
+++ trunk/ippTasks/detrend.norm.pro	(revision 11546)
@@ -118,7 +118,6 @@
     end
 
-    # delete existing entries which are DONE
-    book delpage detPendingNormStatImfile -key state DONE
-    book delpage detPendingNormStatImfile -key state DATA_ERR
+    # delete existing entries in the appropriate states
+    process_cleanup detPendingNormStatImfile
   end
 
@@ -231,7 +230,6 @@
     end
 
-    # delete existing entries which are DONE
-    book delpage detPendingNormImfile -key state DONE
-    book delpage detPendingNormImfile -key state DATA_ERR
+    # delete existing entries in the appropriate states
+    process_cleanup detPendingNormImfile
   end
 
@@ -346,7 +344,6 @@
     end
 
-    # delete existing entries which are DONE
-    book delpage detPendingNormExp -key state DONE
-    book delpage detPendingNormExp -key state DATA_ERR
+    # delete existing entries in the appropriate states
+    process_cleanup detPendingNormExp
   end
 
