Index: trunk/MagicSoft/Mars/datacenter/db/index-header.html
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/index-header.html	(revision 8161)
+++ trunk/MagicSoft/Mars/datacenter/db/index-header.html	(revision 8162)
@@ -15,5 +15,4 @@
      -->
    </style>
-<script type="text/javascript" src="dhtml.js"></script>
 <script type="text/javascript" src="menu.js"></script>
 </head>
@@ -31,4 +30,5 @@
 <A HREF="index.html">H</A>&nbsp;
 <A HREF="http://www.astro.uni-wuerzburg.de/datacenter/index.html#db">Docu</A>&nbsp;
+<A HREF="printtable.php?fTable=MarsVersion">Mars</A>
 Info:&nbsp;
 <A HREF="runinfo-aio.php">Run</A>&nbsp;
@@ -42,5 +42,5 @@
 <A HREF="sources.php">Sources</A>&nbsp;
 <A HREF="statussbs.php">SequBuildStatus</A>&nbsp;
-<A HREF="printtable.php?fTable=MarsVersion">Mars</A>
+<A HREF="plotdb.php">Plots</A>
 <hr SIZE=1 NOSHADE WIDTH="80%">
 </td>
Index: trunk/MagicSoft/Mars/datacenter/db/menu.js
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/menu.js	(revision 8161)
+++ trunk/MagicSoft/Mars/datacenter/db/menu.js	(revision 8162)
@@ -1,3 +1,4 @@
 
+//functions and arrays needed for showing and hiding the menu on the db websites
 ids = new Array( "all", "info", "info2", "stat", "fail", "cal", "star", "ranges", "limits", "showquery");
 statarr = new Array( 1, 0, 0, 0, 0, 0, 0, 0, 0, 0);
@@ -55,2 +56,59 @@
     }
 }
+
+//functions and arrays needed for the function for plotdb.php
+primaries = new Array( "fSequenceFirst", "fRunNumber", "fDataSetNumber");
+
+function showpulldown (id2)
+{
+    var el = document.getElementById(id2);
+    el.style.display="inline";
+    for (var i = 0 ; i < primaries.length ; i++)
+    {
+        if (primaries[i]==id2)
+            continue;
+        var el2 = document.getElementById(primaries[i]);
+        el2.style.display="none";
+        var el3 = document.getElementById(primaries[i]+"2");
+        if (el3.style.display=='inline')
+            var add=id2;
+        el3.style.display="none";
+    }
+    if (add)
+    {
+        var el4 = document.getElementById(id2+"2");
+        el4.style.display="inline";
+    }
+}
+
+function showpulldown2 ()
+{
+    count=0;
+    for (var i = 0 ; i < primaries.length ; i++)
+    {
+        var el = document.getElementById(primaries[i]);
+        if (el.style.display=='inline')
+        {
+            var el2 = document.getElementById(primaries[i]+"2");
+            el2.style.display="inline";
+        }
+        else
+            count++;
+    }
+    if (count==3)
+        for (var i = 0 ; i < primaries.length ; i++)
+        {
+            var el2 = document.getElementById(primaries[i]+"2");
+            el2.style.display="inline";
+        }
+}
+
+function hidepulldown2 ()
+{
+    for (var i = 0 ; i < primaries.length ; i++)
+    {
+        var el2 = document.getElementById(primaries[i]+"2");
+        el2.style.display="none";
+    }
+}
+
Index: trunk/MagicSoft/Mars/datacenter/db/plotdb.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/plotdb.php	(revision 8161)
+++ trunk/MagicSoft/Mars/datacenter/db/plotdb.php	(revision 8162)
@@ -86,5 +86,5 @@
     printf("doesn't work with ChartDirector.</li>\n");
     printf("<li>In Set1 and Set2 Sets can be given (e.g. on sequences in Set1 and off sequences in Set2) - they ");
-    printf("are displayed in colour (Set:blue, Set2: red). Please give the numbers with space as separator (e.g. 40004 40022).</<li>\n");
+    printf("are displayed in colour (Set: blue, Set2: red). Please give the numbers with space as separator (e.g. 40004 40022).</<li>\n");
     printf("<li>0 is not accepted in the ranges fields, please write .0 or 00</li>");
     printf("<li>Be aware, that plotting timestamps, e.g. fRunStart, doesn't work. </li>");
