Dan,
I cannot remove label attributes as they are used in the script to dynamically swap dollar amounts in the first row of the table. Again, this worked fine in IE6.
I also tried to validate. Thanks for the tip on that.
FYI, I have recently inherited this site and am not a whiz at Javascript. I have pasted the script below in case anyone would like to look at it.
****************
<script type="text/javascript" language="JavaScript"><!--
function countyList() {
turnOffCounty();
var region = document.getElementById(county.options[county.selectedIndex].label);
var countyOption = document.getElementById(county.value);
var oCare = document.getElementById("oc");
countyOption.style.backgroundColor="#E4CFCF";
var bname = navigator.appName;
if (bname.search(/microsoft/i) == 0)
{
region.style.display="block";
countyOption.style.display = "block";
oCare.style.display = "block";
}
else
{
countyOption.style.display = "table-row";
region.style.display="table-row";
oCare.style.display = "table-row";
}
}
function turnOffCounty() {
var county = document.getElementById("county");
var elem;
for (i=0; i<county.length; i=i+1)
{
if (county.options.label != "")
{elem = document.getElementById(county.options.label);}
if (elem != null){
elem.style.display="none";
}
if (county.options.value != "")
{elem = document.getElementById(county.options.value);}
if (elem != null) {elem.style.display="none";}
}
}
//--></script>