Index: trunk/ippMonitor/raw/czartool_exposures.php
===================================================================
--- trunk/ippMonitor/raw/czartool_exposures.php	(revision 30381)
+++ trunk/ippMonitor/raw/czartool_exposures.php	(revision 30382)
@@ -64,7 +64,7 @@
 
     $chipDist = array(); getChipDist($db, $date, $surveyStr, &$chipDist);
-    $dist2_hash = array(); getCamDist($db, $date, $surveyStr, &$dist2_hash);
-    $dist3_hash = array(); getWarpDist($db, $date, $surveyStr, &$dist3_hash);
-    $dist4_hash = array(); getStackDist($db, $date, $surveyStr, &$dist4_hash);
+    $camDist = array(); getCamDist($db, $date, $surveyStr, &$camDist);
+    $warpDist = array(); getWarpDist($db, $date, $surveyStr, &$warpDist);
+    $stackDist = array(); getStackDist($db, $date, $surveyStr, &$stackDist);
     $stack_hash = array(); getStackProduced($db, $date, $surveyStr, &$stack_hash);
 
@@ -75,11 +75,11 @@
     $wsDiffDist = array();
     $ww1DiffDist = array();
-    getDist5($db, $date, $surveyStr, &$wsDiffDist, &$ww1DiffDist, $wsDiffProduced);
-
-    $ww2DiffDist = array(); getDist6($db, $date, $surveyStr, &$ww2DiffDist);
-    $ssDiffDist = array(); getDist7($db, $date, $surveyStr, &$ssDiffDist);
-
-    $ww2DiffProduced = array(); getDiff2($db, $date, $surveyStr, &$ww2DiffProduced);
-    $ssDiffProduced = array(); gets1d($db, $date, $surveyStr, &$ssDiffProduced); 
+    getWSAndWW1DiffDist($db, $date, $surveyStr, &$wsDiffDist, &$ww1DiffDist, $wsDiffProduced);
+
+    $ww2DiffDist = array(); getWW2DiffDist($db, $date, $surveyStr, &$ww2DiffDist);
+    $ssDiffDist = array(); getSSDiffDist($db, $date, $surveyStr, &$ssDiffDist);
+
+    $ww2DiffProduced = array(); getWW2DiffProduced($db, $date, $surveyStr, &$ww2DiffProduced);
+    $ssDiffProduced = array(); getSSDiffProduced($db, $date, $surveyStr, &$ssDiffProduced); 
 
     $class = "list";
@@ -152,14 +152,14 @@
 
         // cam
-        if (!$dist2_hash[$exp_id]) $camDistStr = "N";
-        else $camDistStr = $dist2_hash[$exp_id];
+        if (!$camDist[$exp_id]) $camDistStr = "N";
+        else $camDistStr = $camDist[$exp_id];
 
         // warp
-        if (!$dist3_hash[$exp_id]) $warpDistStr = "N";
-        else $warpDistStr = $dist3_hash[$exp_id];
+        if (!$warpDist[$exp_id]) $warpDistStr = "N";
+        else $warpDistStr = $warpDist[$exp_id];
 
         // stack
-        if (!$stack_hash[$exp_id] && !$dist4_hash[$exp_id]) $stackDistStr = "";
-        else $stackDistStr = $stack_hash[$exp_id] . "/" . $dist4_hash[$exp_id];
+        if (!$stack_hash[$exp_id] && !$stackDist[$exp_id]) $stackDistStr = "";
+        else $stackDistStr = $stack_hash[$exp_id] . "/" . $stackDist[$exp_id];
 
         // WS diff
@@ -353,8 +353,8 @@
 ###########################################################################
 #
-# Gets count of TODO distributed
-#
-###########################################################################
-function getDist5($db, $date, $surveyStr, $hash1, $hash2, $wsDiffProduced) {
+# Gets count of WS and WW1 diffs distributed
+#
+###########################################################################
+function getWSAndWW1DiffDist($db, $date, $surveyStr, $hash1, $hash2, $wsDiffProduced) {
 
     $sql = "
@@ -387,8 +387,8 @@
 ###########################################################################
 #
-# Gets count of TODO distributed
-#
-###########################################################################
-function getDist6($db, $date, $surveyStr, $hash) {
+# Gets count of WW2 diffs distributed
+#
+###########################################################################
+function getWW2DiffDist($db, $date, $surveyStr, $hash) {
 
     $sql = "
@@ -417,8 +417,8 @@
 ###########################################################################
 #
-# Gets count of TODO distributed
-#
-###########################################################################
-function getDist7($db, $date, $surveyStr, $hash) {
+# Gets count of SS diffs distributed
+#
+###########################################################################
+function getSSDiffDist($db, $date, $surveyStr, $hash) {
 
     $sql = "
@@ -448,8 +448,8 @@
 ###########################################################################
 #
-# Gets count of TODO distributed
-#
-###########################################################################
-function getDiff2($db, $date, $surveyStr, $hash) {
+# Gets count of WW2 diffs produced
+#
+###########################################################################
+function getWW2DiffProduced($db, $date, $surveyStr, $hash) {
 
     $sql = "
@@ -478,8 +478,8 @@
 ###########################################################################
 #
-# Gets count of TODO distributed
-#
-###########################################################################
-function gets1d($db, $date, $surveyStr, $hash) {
+# Gets count of SS diffs produced
+#
+###########################################################################
+function getSSDiffProduced($db, $date, $surveyStr, $hash) {
 
     $sql = "
