diff --git a/bin/fval.xsl b/bin/fval.xsl
index 09c1b92..cf24bc6 100644
--- a/bin/fval.xsl
+++ b/bin/fval.xsl
@@ -21,25 +21,16 @@
{
display_row(document.FORM1.cbErr, "class_E");
}
- function display_table(table_id)
+ function display_table(checked, table_id)
{
- table_id.style.display = (table_id.style.display == "none" ) ? "" : "none";
+ table_id.style.display = checked ? "" : "none";
}
function display_row(cb_id, row_classname)
{
- rowColl = document.all.tags("TR");
+ rowColl = document.body.querySelectorAll("TR." + row_classname);
for (i=0; i!=rowColl.length; i++) {
- if (rowColl(i).className == row_classname)
- {
- if (cb_id.checked)
- {
- rowColl(i).style.display = "";
- }
- else
- {
- rowColl(i).style.display = "none";
- }
- }
+ rowColl.item(i).style.display =
+ cb_id.checked ? "" : "none";
}
}
@@ -79,30 +70,26 @@
- <INPUT
- id='cbInfo' type='checkbox' name='cbInfo' onclick='cbInfo_onclick()'
- checked>
+
Info
|
- <INPUT
- id='cbPass' type='checkbox' name='cbPass' onclick='cbPass_onclick()'
- checked >
- Pass
+
+ Pass
|
- <INPUT
- id='cbWarn' type='checkbox' name='cbWarn' onclick='cbWarn_onclick()'
- checked >
- Warning
+
+ Warning
|
- <INPUT
- id='cbErr' type='checkbox' name='cbErr' onclick='cbErr_onclick()'
- checked >
+
Error
|
@@ -153,11 +140,9 @@
|
- <A
- HREF='#_'
- >
-
- </A>
+
+
+
|
|
|
@@ -179,80 +164,78 @@
- <INPUT
- id='cb__' type='checkbox' name='cb__' onclick='display_table(table__)'
- checked >
+
- <A
- NAME='_'
- >
-
- </A>
+
+
+
- <TABLE
- WIDTH='100%' id='table__'
- >
-
- | Error code |
- Message |
- Details |
-
-
- </TABLE>
+
+
+ | Error code |
+ Message |
+ Details |
+
+
+
- <INPUT
- id='cb__' type='checkbox' name='cb__' onclick='display_table(table__)'
- checked >
+
Rasterization Test, BW
- <TABLE
- WIDTH='100%' id='table__'
- >
+
| Error code |
Message |
Details |
- </TABLE>
+
- <INPUT
- id='cb__' type='checkbox' name='cb__' onclick='display_table(table__)'
- checked >
+
Rasterization Test, Grayscale
- <TABLE
- WIDTH='100%' id='table__'
- >
+
| Error code |
Message |
Details |
- </TABLE>
+
- <INPUT
- id='cb__' type='checkbox' name='cb__' onclick='display_table(table__)'
- checked >
+
Rasterization Test, ClearType
- <TABLE
- WIDTH='100%' id='table__'
- >
+
| Error code |
Message |
Details |
- </TABLE>
+
@@ -273,13 +256,11 @@
- <TR
- class='class_'
- >
+
| |
|
|
- </TR>
+