function toggleVis(elementId,t) {
if(document.getElementById(elementId)){
-if( document.getElementById(elementId).style.maxHeight == "600px") {
- //document.getElementById(elementId).style.visibility = "collapse";
- document.getElementById(elementId).style.maxHeight = "1px";
+if( document.getElementById(elementId).style.visibility == "visible") {
+ document.getElementById(elementId).style.visibility = "collapse";
+ document.getElementById(elementId).style.height = "0px";
visHash[elementId]=false;
t.innerHTML = " + ";
} else {
document.getElementById(elementId).style.visibility = "visible" ;
- document.getElementById(elementId).style.maxHeight = "600px";
+ document.getElementById(elementId).style.height = "auto";
visHash[elementId]=true;
t.innerHTML = " − ";
}
function showElement(elementId) {
if(document.getElementById(elementId)){
document.getElementById(elementId).style.visibility = "visible" ;
- document.getElementById(elementId).style.maxHeight = "600px";
+ document.getElementById(elementId).style.height = "auto";
visHash[elementId]=true;
}
}
function hideElement(elementId) {
if(document.getElementById(elementId)){
- //document.getElementById(elementId).style.visibility = "hidden" ;
- document.getElementById(elementId).style.maxHeight = "1px";
+ document.getElementById(elementId).style.visibility = "hidden" ;
+ document.getElementById(elementId).style.height = "0px";
visHash[elementId]=false;
}
}