Index: /trunk/Mars/datacenter/db/run_comment.php
===================================================================
--- /trunk/Mars/datacenter/db/run_comment.php	(revision 13340)
+++ /trunk/Mars/datacenter/db/run_comment.php	(revision 13341)
@@ -162,5 +162,5 @@
 
     if (strcmp($_GET["fTable"], "RunComments")==0 &&
-        (!(preg_match("/[0-9][0-9][0-9]/",$_GET["fRunID"])
+        (!(preg_match("/[0-9][0-9]?[0-9]?/",$_GET["fRunID"])
            || (preg_match("/all/",$_GET["fRunID"]) && strcmp($_GET["fMode"], "view")==0))))
     {
@@ -170,5 +170,5 @@
 
     if (strcmp($_GET["fTable"], "SequenceComments")==0 &&
-        (!(preg_match("/[0-9][0-9][0-9]/",$_GET["fSequenceID"])
+        (!(preg_match("/[0-9][0-9]?[0-9]?/",$_GET["fSequenceID"])
           || (preg_match("/all/",$_GET["fSequenceID"]) && strcmp($_GET["fMode"], "view")==0))))
     {
@@ -250,7 +250,7 @@
         {
             if (strcmp($_GET["fTable"], "RunComments")==0)
-                printf("%s_%s: %s\n", $_GET["fNight"], $_GET["fRunID"], $row1[1]);
+                printf("%s_%03d: %s\n", $_GET["fNight"], $_GET["fRunID"], $row1[1]);
             if (strcmp($_GET["fTable"], "SequenceComments")==0)
-                printf("%s_%s: %s\n", $_GET["fNight"], $_GET["fSequenceID"], $row1[1]);
+                printf("%s_%03d: %s\n", $_GET["fNight"], $_GET["fSequenceID"], $row1[1]);
         }
     }
