Index: trunk/MagicSoft/Mars/datacenter/db/plotinclude.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/plotinclude.php	(revision 8402)
+++ trunk/MagicSoft/Mars/datacenter/db/plotinclude.php	(revision 8421)
@@ -1,4 +1,5 @@
 <?php
 
+//arrays and functions for plot.php and plotdb.php
 include("include.php");
 include("magicdefs.php");
@@ -120,4 +121,31 @@
 }
 
+//functions for showplots.php and showplots2.php
+function gettypename($type2)
+{
+    switch ($type2)
+    {
+    case "calib":
+        $type="callisto";
+        break;
+    case "signal":
+        $type="callisto";
+        break;
+    case "star":
+        $type="star";
+        break;
+    }
+    return $type;
+}
+
+function getplotname($seq, $tabnum, $type, $type2)
+{
+    $seqlong=str_pad($seq, 8, "0", STR_PAD_LEFT);
+    $seqshort=substr($seqlong, 0, 4);
+    $plot  = "http://datacenter.astro.uni-wuerzburg.de/";
+    $plot .= $type . "/" . str_pad( $seqshort, 4, "0", STR_PAD_LEFT);
+    $plot .= "/" . $seqlong . "/" . $type2 . $seqlong . "-tab" . $tabnum . ".png";
+    return $plot;
+}
 
 ?>
