Index: /trunk/FACT++/www/smartfact/index.js
===================================================================
--- /trunk/FACT++/www/smartfact/index.js	(revision 14207)
+++ /trunk/FACT++/www/smartfact/index.js	(revision 14208)
@@ -136,4 +136,10 @@
 function sendCommand(command)
 {
+    if (command=="stop")
+    {
+        if (!confirm("Do you really want to stop a running script?"))
+            return;
+    }
+
     var debug = false;
 
@@ -416,4 +422,5 @@
     fdiv1.id = "localtime"+z;
 
+    fdiv0.onclick = function () { window.location='https://www.fact-project.org/logbook/misc.php?action=mobile'; }
     fdiv0.appendChild($txt("logbook"));
     fdiv1.appendChild($txt("loading..."));
@@ -505,5 +512,5 @@
             img.src = "img/dummy.png";//needed in firefox
             img.id = "image"+z;
-            img.setAttribute("style", "width:1px;height:1px;display:none;");
+            img.setAttribute("style", "width:1px;height:15px;display:none;");
             td.appendChild(img);
 
@@ -622,4 +629,5 @@
                 input.maxlength = 80;
                 input.style.textAlign = "right";
+                input.style.width = "100%";
                 if (opt.length>2)
                     input.value=opt[2];
@@ -706,4 +714,7 @@
 
     table.pageName = name;//setAttribute("data-file", name);
+
+    // This is needed so that the page is extended in height
+    // _before_ the sliding (in case it contains graphics
     doresize(z);
 }
@@ -775,8 +786,12 @@
     if (oldz==newz)
     {
-        $("table"+newz).style.left="0px";
+        var tab = $("table"+newz);
+
+        tab.style.left="0px";
+        tab.style.position="absolute";
+
         $("body").visiblePage = newz; //.setAttribute("data-visible", newz);
 
-        doresize(0);
+        doresize(newz);
 
         //setInterval(refresh_text, 1000);
