diff --git a/html/include/focus.js b/html/include/focus.js
index 2ee14d6b63c2cc088f12346022fbc4120f1af1c0..cc6bc15dff4cce53bcce59d4d18b70d27c7ff411 100644 (file)
--- a/html/include/focus.js
+++ b/html/include/focus.js
form.javascript.value = 'true';
}
+function divtoggle(element) {
+ var cell;
+ var cellname="tr_"+(element);
+
+ if (browserType == "gecko" ) {
+ document.poppedLayer = document.getElementById(element);
+ cell= document.getElementById(cellname);
+
+ if (document.poppedLayer.style.visibility == "visible") {
+ hide (element);
+ cell.style.height="0px";
+ document.poppedLayer.style.height="0px";
+ } else {
+ show (element);
+ document.poppedLayer.style.height="";
+ if(document.defaultView) {
+ cell.style.height=document.defaultView.getComputedStyle(document.poppedLayer,"").getPropertyValue('height');
+ }
+ }
+ } else if (browserType == "ie") {
+ document.poppedLayer = document.getElementById(element);
+ cell= document.getElementById(cellname);
+ if (document.poppedLayer.style.visibility == "visible") {
+ hide (element);
+ cell.style.height="0px";
+ document.poppedLayer.style.height="0px";
+ document.poppedLayer.style.position="absolute";
+ } else {
+ show (element);
+ cell.style.height="";
+ document.poppedLayer.style.height="";
+ document.poppedLayer.style.position="relative";
+ }
+ }
+}
+
window.onload = adjust;
window.onresize = adjust;