Package: bugs.debian.org Severity: normal The toggle() function should check if the element it tries to get using getElementById() actually exists:
function toggle(i) { var a = document.getElementById("a_" + i); + if (!a || typeof a == 'undefined') return; if (a.style.display == "none") { a.style.display = ""; } else { a.style.display = "none"; } } Additionally, the pagemain() function shouldn't call toggle(2) at all :) Cheers, Igor -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]