Index: /trunk/FACT++/www/index.js
===================================================================
--- /trunk/FACT++/www/index.js	(revision 13494)
+++ /trunk/FACT++/www/index.js	(revision 13495)
@@ -279,5 +279,5 @@
     var x = table.offsetLeft;
 
-    var ix = parseInt(x);
+    var ix = parseInt(x, 10);
     if (ix>W)
     {
@@ -310,5 +310,5 @@
     var x = table.offsetLeft;
 
-    var ix = parseInt(x);
+    var ix = parseInt(x, 10);
     if (ix==0)
     {
@@ -353,12 +353,12 @@
             if (xmlHttp.readyState == 4)
             {
-                if (this.status!=0 && this.status!=200)
+                if (xmlHttp.status!=0 && xmlHttp.status!=200)
                 {
-                    alert("ERROR[1] - HTTP request '"+fname+".txt': "+this.statusText+" ["+this.status+"]");
+                    alert("ERROR[1] - HTTP request '"+fname+".txt': "+xmlHttp.statusText+" ["+xmlHttp.status+"]");
                     setTimeout("refresh_text()", 10000);
                     return;
                 }
 
-                update_text(fname, this.responseText);
+                update_text(fname, xmlHttp.responseText);
                 setTimeout("refresh_text()", 3000);
             }
@@ -523,7 +523,7 @@
     hue %= 6;
 
-    if (hue<1) return parseInt(255*hue);
-    if (hue<3) return parseInt(255);
-    if (hue<4) return parseInt(255*(4-hue));
+    if (hue<1) return parseInt(255*hue,     10);
+    if (hue<3) return parseInt(255,         10);
+    if (hue<4) return parseInt(255*(4-hue), 10);
 
 /*
@@ -719,2 +719,4 @@
 }
 */
+
+window['onload'] = onload;
