Index: trunk/MagicSoft/Mars/datacenter/db/builddatasets.php
===================================================================
--- trunk/MagicSoft/Mars/datacenter/db/builddatasets.php	(revision 8768)
+++ trunk/MagicSoft/Mars/datacenter/db/builddatasets.php	(revision 8798)
@@ -531,5 +531,12 @@
                 mysql_free_result($result);
 
-
+                //check dt for on-sequences
+                $query="SELECT fDiscriminatorThresholdTableKEY FROM Sequences where fSequenceFirst IN (" . $on . ") GROUP BY fDiscriminatorThresholdTableKEY";
+                $result = mysql_query($query, $db_id);
+                $numdtkeys=mysql_num_rows($result);
+                mysql_free_result($result);
+
+
+                //set limit
                 $runtimelimit=5;
                 $unsuitablemaxlimit=15;
@@ -543,4 +550,5 @@
 
 
+                //check values for infos, warnings and errors
                 $numerr=0;
                 if (!empty($on))
@@ -623,4 +631,9 @@
 //                        $numerr=$numerr+1;
                     }
+                    if ($numdtkeys>1)
+                    {
+                        printf("<li style='color:%s'>%s: Your selected on sequences have more than one (%s) different discriminator threshold tables ",
+                               $color["ERROR"], "WARN", $numdtkeys);
+                    }
                     if (empty($_POST["fObservationModeKEY"]) && !empty($_GET["obsmode"]))
                         $_POST["fObservationModeKEY"]=$_GET["obsmode"];
