Index: trunk/FACT++/www/smartfact/index.js
===================================================================
--- trunk/FACT++/www/smartfact/index.js	(revision 13957)
+++ trunk/FACT++/www/smartfact/index.js	(revision 13958)
@@ -166,5 +166,7 @@
         args += "&"+inputs[i].name+"="+inputs[i].value;
 
-    //alert(args);
+    var selects = document.getElementsByTagName("select");
+    for (var i=0; i<selects.length; i++)
+        args += "&"+selects[i].name+"="+selects[i].value;
 
     sendCommand(args);
@@ -558,15 +560,55 @@
         cell2.setAttribute("class", valid(cols[1]) ? "tcell2" : "tcell2l");
 
-        if (check.length==0 || check[0]!="input")
+        if (check.length>0 && check[0]=="select")
+        {
+            var args = check[1].split('/');
+
+            if (args.length<2)
+                alert("Argument name missing for'"+check[1]+"'");
+            else
+            {
+                var div = $new("div");
+                div.innerHTML = args[0];
+                cell1.appendChild(div);
+
+                var input = $new("SELECT");
+                input.name = args[1];
+                for (var j=2; j<args.length; j++)
+                    input.options.add(new Option(args[j]));
+                cell2.appendChild(input);
+            }
+
+        }
+        if (check.length>0 && check[0]=="input")
+        {
+            var opt = check[1].split('/');
+
+            if (opt.length<2)
+                alert("Argument name missing for'"+check[1]+"'");
+            else
+            {
+                var div = $new("div");
+                div.innerHTML = opt[0];
+                cell1.appendChild(div);
+
+                var input = $new("input");
+                input.name = opt[1];
+                input.type = "text";
+                input.maxlength = 80;
+                if (opt.length>2)
+                    input.value=opt[2];
+
+                cell2.appendChild(input);
+            }
+        }
+        if (check.length==0 || (check[0]!="input" && check[0]!="select"))
         {
             var div = $new("div");
             div.innerHTML = cols[1];
             cell1.appendChild(div);
-            //cell1.appendChild($txt(cols[1]));
 
             if (cols.length>2 && cols[2].length>0)
             {
                 cell2.id = "data"+z+"-"+counter;
-                //cell2.setAttribute("data-form",  cols[2]);
                 cell2.dataFormat = cols[2];
                 cell2.appendChild($txt("---"));
@@ -575,25 +617,4 @@
             else
                 cell1.setAttribute("class", "description");
-        }
-        else
-        {
-            var opt = check[1].split('/');
-
-            if (opt.length<2)
-                alert("Argument name missing for'"+check[1]+"'");
-
-            var div = $new("div");
-            div.innerHTML = opt[0];
-            cell1.appendChild(div);
-            //cell1.appendChild($txt(opt[0]));
-
-            var input = $new("input");
-            input.name = opt[1];
-            input.type = "text";
-            input.maxlength = 80;
-            if (opt.length>2)
-                input.value=opt[2];
-
-            cell2.appendChild(input);
         }
 
