Index: trunk/FACT++/www/smartfact/index.js
===================================================================
--- trunk/FACT++/www/smartfact/index.js	(revision 13942)
+++ trunk/FACT++/www/smartfact/index.js	(revision 13943)
@@ -477,8 +477,12 @@
         var tr = $new("tr");
         tr.setAttribute("class", "row");
+
+        var cols0 = cols[0];
         if (valid(cols[0]))
-            tr.setAttribute("onclick", "this.style.background='#ccb'; loadPage('"+cols[0]+"', "+z+", -1);");
+            tr.onclick = function () { this.style.background='#ccb'; loadPage(cols0, z, -1); };
+
+        var cols3 = cols[3];
         if (valid(cols[3]))
-            tr.setAttribute("onclick", "this.style.background='#ccb'; loadPage('"+cols[3]+"', "+z+", +1);");
+            tr.onclick = function () { this.style.background='#cbb'; loadPage(cols3, z, +1); };
 
         var td0 = $new("td");
