My page: does not work in Mozilla (specifically, K-Meleon)

Apparently this is because my JavaScript code does nto conform to the DOM. How am I to change the following code to be compatible with Netscape (it always has and continues to work in IE). I have highlighted the two sections that I belive there will be an issue with. Thanks!

<script type="text/javascript">
function clickHandler() {
var targetId, srcElement, targetElement;
srcElement = window.event.srcElement;
if (srcElement.className == "Outline") {
targetId = + "details";
targetElement = document.all(targetId);
if ( == "none") { = "";
} else { = "none";

document.onclick = clickHandler;