Index: trunk/MagicSoft/Mars/datacenter/db/menu.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/menu.php	(revision 8252)
+++ trunk/MagicSoft/Mars/datacenter/db/menu.php	(revision 8333)
@@ -483,15 +483,15 @@
 }
 
-function PrintNightRangeMenu($host,$user,$pw,$db)
+function PrintNightRangeMenu($host,$user,$pw,$db, $table)
 {
     if (empty($_GET["fStartDate"]))
-        $timemin = GetMin("fRunStart", "Sequences", $host, $user, $pw, $db);
+        $timemin = GetMin("fRunStart", $table, $host, $user, $pw, $db);
     else
         $timemin = $_GET["fStartDate"];
 
     if (empty($_GET["fStopDate"]))
-        $timemax = GetMax("fRunStart", "Sequences", $host, $user, $pw, $db);
+        $timemax = GetMaxDate("fRunStart", $table, $host, $user, $pw, $db);
     else
-            $timemax = $_GET["fStopDate"];
+        $timemax = $_GET["fStopDate"];
 
     printf("Night&nbsp;(yyyy-mm-dd)&nbsp;from&nbsp;<input name=\"fStartDate\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"%s\">\n", $timemin);
