Index: trunk/MagicSoft/Mars/datacenter/db/plotdb.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/plotdb.php	(revision 8204)
+++ trunk/MagicSoft/Mars/datacenter/db/plotdb.php	(revision 8249)
@@ -19,4 +19,10 @@
 
         printf("</select>\n");
+
+        if (empty($_GET[$_GET[$column."Col".$num]."Start".$num]))
+            $_GET[$_GET[$column."Col".$num]."Start".$num]=0;
+        if (empty($_GET[$_GET[$column."Col".$num]."Stop".$num]))
+            $_GET[$_GET[$column."Col".$num]."Stop".$num]=0;
+
         printf(" from&nbsp;<input name='%sStart%s' type='text' size='6' maxlength='6' value='%s'>", $_GET[$column."Col".$num], $num, $_GET[$_GET[$column."Col".$num]."Start".$num]);
         printf(" to&nbsp;<input name='%sStop%s' type='text' size='6' maxlength='6' value='%s'><br>\n", $_GET[$column."Col".$num], $num, $_GET[$_GET[$column."Col".$num]."Stop".$num]);
@@ -30,4 +36,38 @@
 
     include("plotinclude.php");
+
+    //init
+    if (empty($_GET["plot"]))
+        $_GET["plot"]=0;
+    if (empty($_GET["primstart"]))
+        $_GET["primstart"]=0;
+    if (empty($_GET["primstop"]))
+        $_GET["primstop"]=0;
+    if (empty($_GET["prim"]))
+        $_GET["prim"]=0;
+    if (empty($_GET["fSequenceFirstCol"]))
+        $_GET["fSequenceFirstCol"]=0;
+    if (empty($_GET["fSequenceFirstCol2"]))
+        $_GET["fSequenceFirstCol2"]=0;
+    if (empty($_GET["fRunNumberCol"]))
+        $_GET["fRunNumberCol"]=0;
+    if (empty($_GET["fRunNumberCol2"]))
+        $_GET["fRunNumberCol2"]=0;
+    if (empty($_GET["fDataSetNumberCol"]))
+        $_GET["fDataSetNumberCol"]=0;
+    if (empty($_GET["fDataSetNumberCol2"]))
+        $_GET["fDataSetNumberCol2"]=0;
+    if (empty($_GET["0Start"]))
+        $_GET["0Start"]=0;
+    if (empty($_GET["0Stop"]))
+        $_GET["0Stop"]=0;
+    if (empty($_GET["0Start2"]))
+        $_GET["0Start2"]=0;
+    if (empty($_GET["0Stop2"]))
+        $_GET["0Stop2"]=0;
+    if (empty($_GET["Set"]))
+        $_GET["Set"]=0;
+    if (empty($_GET["Set2"]))
+        $_GET["Set2"]=0;
 
     printf("<center>\n<table cellpadding='0'>\n");
