Index: /trunk/www/db_po/edit_po.php
===================================================================
--- /trunk/www/db_po/edit_po.php	(revision 12448)
+++ /trunk/www/db_po/edit_po.php	(revision 12449)
@@ -8,5 +8,5 @@
     //call get_progs() at startup
     printf("<script type=\"text/javascript\" >\n");
-    printf("window.onload = function () { get_progs(\"\",\"10\",\"edit\"); }\n");
+    printf("window.onload = function () { get_progs(\"\",\"edit\"); }\n");
     printf("</script>\n");
 
Index: /trunk/www/db_po/get_keys.php
===================================================================
--- /trunk/www/db_po/get_keys.php	(revision 12448)
+++ /trunk/www/db_po/get_keys.php	(revision 12449)
@@ -11,6 +11,4 @@
     if (empty($_GET["fKey"]))
         $_GET["fKey"]="";
-    if (empty($_GET["fSelectSize"]))
-        $_GET["fSelectSize"]="10";
     if (empty($_GET["fMode"]))
         $_GET["fMode"]="view";
@@ -45,9 +43,9 @@
 
     if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
-        printf("<select style='width:300px' id='key' size='%s' onchange='get_values(1,\"%s\",this.value,\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n",
-               $_GET["fSelectSize"], $_GET["fProgram"], $_GET["fMode"]);
+        printf("<select style='width:300px' id='key' size='1' onchange='get_values(1,\"%s\",this.value,\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n",
+               $_GET["fProgram"], $_GET["fMode"]);
     else
-        printf("<select style='width:300px' id='key' size='%s' onchange=\"get_values(1,'%s',this.value,'%s')\" class='Width'>\n",
-               $_GET["fSelectSize"], $_GET["fProgram"], $_GET["fMode"]);
+        printf("<select style='width:300px' id='key' size='20' onchange=\"get_values(1,'%s',this.value,'%s')\" class='Width'>\n",
+               $_GET["fProgram"], $_GET["fMode"]);
 
     if (!empty($_GET["fKey"]) && strcmp("all", $_GET["fKey"])==0)
Index: /trunk/www/db_po/get_progs.php
===================================================================
--- /trunk/www/db_po/get_progs.php	(revision 12448)
+++ /trunk/www/db_po/get_progs.php	(revision 12449)
@@ -6,6 +6,4 @@
     if (empty($_GET["fProgram"]))
         $_GET["fProgram"]="";
-    if (empty($_GET["fSelectSize"]))
-        $_GET["fSelectSize"]="20";
     if (empty($_GET["fMode"]))
         $_GET["fMode"]="view";
@@ -33,13 +31,9 @@
     if (strcmp($_GET["fMode"], "edit")==0)
         printf("select program: <br>\n");
-//    else
-//        printf("select program: \n");
 
-    if (strcmp($_GET["fMode"], "view")==0)//reload tables in case of mode 'view'
-        printf("<select style='width: 150px' id='prog' size='%s' onchange='get_keys(this.value,\"\",\"%s\",\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n",
-               $_GET["fSelectSize"], $_GET["fSelectSize"], $_GET["fMode"]);
+    if (strcmp($_GET["fMode"], "view")==0)
+        printf("<select style='width: 150px' id='prog' size='1' onchange='get_keys(this.value,\"\",\"%s\");get_values(2,\"all\",\"all\");get_values(3,\"all\",\"all\");CompareValues();' class='Width'>\n", $_GET["fMode"]);
     else
-        printf("<select style='width: 150px' id='prog' size='%s' onchange=\"get_keys(this.value,'','%s','%s');get_values(1,this.value,'all');\" class='Width'>\n",
-               $_GET["fSelectSize"], 20, $_GET["fMode"]);//select size can be removed when fMode is used instead and only the two cases are needed
+        printf("<select style='width: 150px' id='prog' size='10' onchange=\"get_keys(this.value,'','%s');get_values(1,this.value,'all');\" class='Width'>\n", $_GET["fMode"]);
 
     if (!empty($_GET["fProgram"]) && strcmp("all", $_GET["fProgram"])==0)
Index: /trunk/www/db_po/po.js
===================================================================
--- /trunk/www/db_po/po.js	(revision 12448)
+++ /trunk/www/db_po/po.js	(revision 12449)
@@ -10,7 +10,7 @@
 
 //function to get programs from the db
-function get_progs(prog, selectsize, mode)
-{
-    xmlhttp.open("GET","get_progs.php?fProgram="+prog+"&fSelectSize="+selectsize+"&fMode="+mode,false);
+function get_progs(prog, mode)
+{
+    xmlhttp.open("GET","get_progs.php?fProgram="+prog+"&fMode="+mode,false);
     xmlhttp.send();
     if (xmlhttp.readyState==4 && xmlhttp.status==200)
@@ -26,7 +26,7 @@
 
 //function to get keys from the db
-function get_keys(prog, key, selectsize, mode)
-{
-    xmlhttp.open("GET","get_keys.php?fProgram="+prog+"&fKey="+key+"&fSelectSize="+selectsize+"&fMode="+mode,false);
+function get_keys(prog, key, mode)
+{
+    xmlhttp.open("GET","get_keys.php?fProgram="+prog+"&fKey="+key+"&fMode="+mode,false);
     xmlhttp.send();
     if (xmlhttp.readyState==4 && xmlhttp.status==200)
Index: /trunk/www/db_po/view_po.php
===================================================================
--- /trunk/www/db_po/view_po.php	(revision 12448)
+++ /trunk/www/db_po/view_po.php	(revision 12449)
@@ -8,5 +8,5 @@
     //call get_progs() at startup
     printf("<script type=\"text/javascript\" >\n");
-    printf("window.onload = function () { get_progs(\"all\",1,'view'); get_keys(\"all\",\"all\",1,'view'); }\n");
+    printf("window.onload = function () { get_progs(\"all\",'view'); get_keys(\"all\",\"all\",'view'); }\n");
     printf("</script>\n");
 
