I have this script:
<script language=javascript>
function validate(bigfont){
if (bigfont.checked == 1){
document.all.poemcell.style.fontSize = “22px”;
document.all.titlecell.style.fontSize = “26px”;
document.all.poemtable.style.width= “900”;
}
else{
document.all.poemcell.style.fontSize = “16px”;
document.all.titlecell.style.fontSize = “20px”;
document.all.poemtable.style.width= “700”;
}
}
</script>
and then somewhere in the website I have this part:
<table class=”borderedtable” id=”poemtable”>
<tr>
<td class=”titlecell” id=”titlecell”>{POEMTITLE}</td>
<td class=”titlecell”><input type=”checkbox” name=”bigfont” value=”checkbox” onClick=”return validate(bigfont);”/>Big Font</td>
</tr>
<tr>
<td class=”poemcell” id=”poemcell”>{POEMBODY}</td>
<td class=”coverimg”><img src=”images/cover.jpg”></td>
</tr>
<tr>
</tr>
</table>
in IE everything works, the table and font size are increased/decreased when the box is checked/unchecked but in firefox nothing happens, what am I doing wrong?