if(document.getElementById(elementId)){
if( document.getElementById(elementId).style.visibility == "visible") {
document.getElementById(elementId).style.visibility = "collapse";
+ document.getElementById(elementId).style.maxHeight = "0px";
visHash[elementId]=false;
t.innerHTML = " + ";
} else {
document.getElementById(elementId).style.visibility = "visible" ;
+ document.getElementById(elementId).style.maxHeight = "none";
visHash[elementId]=true;
t.innerHTML = " − ";
}
function showElement(elementId) {
if(document.getElementById(elementId)){
document.getElementById(elementId).style.visibility = "visible" ;
+ document.getElementById(elementId).style.maxHeight = "none";
visHash[elementId]=true;
}
}
function hideElement(elementId) {
if(document.getElementById(elementId)){
document.getElementById(elementId).style.visibility = "hidden" ;
+ document.getElementById(elementId).style.maxHeight = "0px";
visHash[elementId]=false;
}
}
function collapseElement(elementId) {
if(document.getElementById(elementId)){
document.getElementById(elementId).style.visibility = "collapse" ;
+ document.getElementById(elementId).style.maxHeight = "0px";
visHash[elementId]=false;
}
}