--- openwebmail-main.pl	Sat Jun 26 01:22:49 2004
+++ openwebmail-main.pl	Sun Jun 27 09:45:15 2004
@@ -523,11 +523,11 @@
          $tr_bgcolorstr=qq|bgcolor=$style{tablerow_light} |;
          $tr_bgcolorstr=qq|bgcolor=$style{tablerow_dark} | if ($totalmessage==1); # make this msg selected if it is the only one
          $tr_bgcolorstr.=qq|onMouseOver='this.style.backgroundColor=$style{tablerow_hicolor};' |.
-                         qq|onMouseOut='if (document.getElementById("$messnum").checked) {this.style.backgroundColor=$style{tablerow_dark}} else {this.style.backgroundColor=$style{tablerow_light}};' |.
-                         qq|onClick='var cb=document.getElementById("$messnum"); cb.checked=!cb.checked;' |.
+                         qq|onMouseOut='this.style.backgroundColor=document.getElementById("$messnum").checked?$style{tablerow_dark}:$style{tablerow_light};' |.
+                         qq|onClick='if (!document.layers) {document.getElementById("$messnum").checked=!document.getElementById("$messnum").checked}' |.
                          qq|id="tr_$messnum" |;
          $td_bgcolorstr='';
-         $checkbox_onclickstr='this.checked=!this.checked';	# disable checkbox change since it is already done once by tr onclick event
+         $checkbox_onclickstr='if (!document.layers) {this.checked=!this.checked}';	# disable checkbox change since it is already done once by tr onclick event
       } else {
          $tr_bgcolorstr='';
          $td_bgcolorstr=qq|bgcolor=|.($style{"tablerow_dark"},$style{"tablerow_light"})[$messnum%2];

diff -ru etc/templates/ar.CP1256/viewfolder.template etc/templates/ar.CP1256/viewfolder.template
--- etc/templates/ar.CP1256/viewfolder.template	Fri Jun 25 07:16:26 2004
+++ etc/templates/ar.CP1256/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ar.ISO8859-6/viewfolder.template etc/templates/ar.ISO8859-6/viewfolder.template
--- etc/templates/ar.ISO8859-6/viewfolder.template	Fri Jun 25 07:16:26 2004
+++ etc/templates/ar.ISO8859-6/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/bg/viewfolder.template etc/templates/bg/viewfolder.template
--- etc/templates/bg/viewfolder.template	Fri Jun 25 07:16:26 2004
+++ etc/templates/bg/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ca/viewfolder.template etc/templates/ca/viewfolder.template
--- etc/templates/ca/viewfolder.template	Fri Jun 25 07:16:26 2004
+++ etc/templates/ca/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/cs/viewfolder.template etc/templates/cs/viewfolder.template
--- etc/templates/cs/viewfolder.template	Fri Jun 25 07:16:26 2004
+++ etc/templates/cs/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/da/viewfolder.template etc/templates/da/viewfolder.template
--- etc/templates/da/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/da/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/de/viewfolder.template etc/templates/de/viewfolder.template
--- etc/templates/de/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/de/viewfolder.template	Sun Jun 27 10:26:22 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/el/viewfolder.template etc/templates/el/viewfolder.template
--- etc/templates/el/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/el/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/en/viewfolder.template etc/templates/en/viewfolder.template
--- etc/templates/en/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/en/viewfolder.template	Sun Jun 27 10:01:20 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }
diff -ru etc/templates/es/viewfolder.template etc/templates/es/viewfolder.template
--- etc/templates/es/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/es/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/fi/viewfolder.template etc/templates/fi/viewfolder.template
--- etc/templates/fi/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/fi/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/fr/viewfolder.template etc/templates/fr/viewfolder.template
--- etc/templates/fr/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/fr/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/he.CP1255/viewfolder.template etc/templates/he.CP1255/viewfolder.template
--- etc/templates/he.CP1255/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/he.CP1255/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/he.ISO8859-8/viewfolder.template etc/templates/he.ISO8859-8/viewfolder.template
--- etc/templates/he.ISO8859-8/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/he.ISO8859-8/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/hu/viewfolder.template etc/templates/hu/viewfolder.template
--- etc/templates/hu/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/hu/viewfolder.template	Sun Jun 27 10:26:23 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/id/viewfolder.template etc/templates/id/viewfolder.template
--- etc/templates/id/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/id/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/it/viewfolder.template etc/templates/it/viewfolder.template
--- etc/templates/it/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/it/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ja_JP.Shift_JIS/viewfolder.template etc/templates/ja_JP.Shift_JIS/viewfolder.template
--- etc/templates/ja_JP.Shift_JIS/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/ja_JP.Shift_JIS/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ja_JP.eucJP/viewfolder.template etc/templates/ja_JP.eucJP/viewfolder.template
--- etc/templates/ja_JP.eucJP/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/ja_JP.eucJP/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/kr/viewfolder.template etc/templates/kr/viewfolder.template
--- etc/templates/kr/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/kr/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/lt/viewfolder.template etc/templates/lt/viewfolder.template
--- etc/templates/lt/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/lt/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/nl/viewfolder.template etc/templates/nl/viewfolder.template
--- etc/templates/nl/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/nl/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/no/viewfolder.template etc/templates/no/viewfolder.template
--- etc/templates/no/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/no/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/pl/viewfolder.template etc/templates/pl/viewfolder.template
--- etc/templates/pl/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/pl/viewfolder.template	Sun Jun 27 10:26:24 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/pt/viewfolder.template etc/templates/pt/viewfolder.template
--- etc/templates/pt/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/pt/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/pt_BR/viewfolder.template etc/templates/pt_BR/viewfolder.template
--- etc/templates/pt_BR/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/pt_BR/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ro/viewfolder.template etc/templates/ro/viewfolder.template
--- etc/templates/ro/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/ro/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ru/viewfolder.template etc/templates/ru/viewfolder.template
--- etc/templates/ru/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/ru/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/sk/viewfolder.template etc/templates/sk/viewfolder.template
--- etc/templates/sk/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/sk/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/sr/viewfolder.template etc/templates/sr/viewfolder.template
--- etc/templates/sr/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/sr/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/sv/viewfolder.template etc/templates/sv/viewfolder.template
--- etc/templates/sv/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/sv/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/th/viewfolder.template etc/templates/th/viewfolder.template
--- etc/templates/th/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/th/viewfolder.template	Sun Jun 27 10:26:25 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/tr/viewfolder.template etc/templates/tr/viewfolder.template
--- etc/templates/tr/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/tr/viewfolder.template	Sun Jun 27 10:26:26 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/uk/viewfolder.template etc/templates/uk/viewfolder.template
--- etc/templates/uk/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/uk/viewfolder.template	Sun Jun 27 10:26:26 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/ur/viewfolder.template etc/templates/ur/viewfolder.template
--- etc/templates/ur/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/ur/viewfolder.template	Sun Jun 27 10:26:26 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/zh_CN.GB2312/viewfolder.template etc/templates/zh_CN.GB2312/viewfolder.template
--- etc/templates/zh_CN.GB2312/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/zh_CN.GB2312/viewfolder.template	Sun Jun 27 10:26:26 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

diff -ru etc/templates/zh_TW.Big5/viewfolder.template etc/templates/zh_TW.Big5/viewfolder.template
--- etc/templates/zh_TW.Big5/viewfolder.template	Fri Jun 25 07:16:27 2004
+++ etc/templates/zh_TW.Big5/viewfolder.template	Sun Jun 27 10:26:26 2004
@@ -68,12 +68,14 @@
       {
          var e = document.pageform.elements[i];
          if (e.type == 'checkbox' && e.name != 'allbox') {
-            var tr = document.getElementById('tr_'+e.id);
             e.checked = document.pageform.allbox.checked;
-            if (e.checked) {
-               tr.style.backgroundColor=@@@WINDOW_DARK@@@;
-            } else {
-               tr.style.backgroundColor=@@@WINDOW_LIGHT@@@;
+            if (!document.layers) {
+               var tr = document.getElementById('tr_'+e.id);
+               if (e.checked) {
+                  tr.style.backgroundColor=@@@TABLEROW_DARK@@@;
+               } else {
+                  tr.style.backgroundColor=@@@TABLEROW_LIGHT@@@;
+               }
             }
          }
       }

