537: #line 643 "web_weaver.ipk" 538: MSIE_treehandler = """ 539: <SCRIPT type="text/javascript"> 540: <!-- 541: function clickHandler() { 542: var targetId, srcElement, targetElement; 543: srcElement = window.event.srcElement; 544: if (srcElement.className == "Button") { 545: targetId = srcElement.id + "d"; 546: targetElement = document.all(targetId); 547: if(targetElement.style.display == "none") { 548: targetElement.style.display = ""; 549: srcElement.checked = true; 550: } else { 551: targetElement.style.display = "none"; 552: srcElement.checked = false; 553: } 554: } 555: } 556: 557: // this function restores the status of the contents tree 558: // IE4 preserves the buttons states, but not the visibility 559: function loadHandler() { 560: for (var srcId in document.all) { 561: srcElement = document.all(srcId); 562: if (srcElement != null && srcElement.className == "Button") { 563: var targetId = srcId + "d"; 564: var targetElement = document.all(targetId); 565: if(srcElement.checked == true) { 566: targetElement.style.display = ""; 567: } else { 568: targetElement.style.display = "none"; 569: } 570: } 571: } 572: } 573: //document.onclick = clickHandler 574: //document.onload = loadHandler 575: // --> 576: </SCRIPT> 577: """ 578: