function xtoggleDisplay(aid, atagname, aclassname, adisplayvalue) {
var obj = document.getElementById(aid);
var elements = obj.getElementsByTagName(atagname);
for (var i = 0; i < elements.length; i++) {
if ((aclassname == '') || (elements[i].className == aclassname)) elements[i].style.display = adisplayvalue;
}
}
function xtoggleOn(aid, atagname, aclassname) {
xtoggleDisplay(aid, atagname, aclassname, '');
}
function xtoggleOff(aid, atagname, aclassname) {
xtoggleDisplay(aid, atagname, aclassname, 'none');
}
|