We have recently had our website redesigned. The site was built using frames (which I hate, but that's another issue), and the navigation uses javascript. The problem we are having at this point in time is that the navigation works fine within I/E and Netscape, but Mozilla is of course giving us a problem.
The site is
www.cthosp.org. Within Mozilla browsers, users are unable to navigate through the site. Any of the buttons clicked from the left-hand navigation generates an error. The error generated within Mozilla is “curPolicy is Null”. The line it is pointing to is underlined below.
Code:
function toggleDiv(selectedDiv, setting){
var curPolicy = document.getElementById(selectedDiv);
if (curPolicy == null) {
alert(selectedDiv);
}
curPolicy.style.display = setting;
return curPolicy;
}
Does any of this make sense to any of the experts here? Is there a quick fix? We're going back to the designer but the site has already launched today and we need to get this resolved.
Any assistance is greatly appreciated.
Thanks
Kellie