Javascript hideshow function

I use mozilla and the hideshow function sometimes does not work.
The chunk always dissepears, but sometimes I can’t make it appear back.
I don’t have this problem in internet explorer.

This is the function:
function hideshow(num) {
idstring = “element-” + num;
chunk = document.getElementById(idstring);
if ( chunk.style.display == “none”) {
chunk.style.display = chunk.style.tag;
} else {
chunk.style.tag = chunk.style.display;
chunk.style.display = “none”;
}
}

This function doesn’t follow standard and has been changed in RT-3.5 branch.On 4/27/06, Sterpu Victor victor@ambra.ro wrote:

I use mozilla and the hideshow function sometimes does not work.
The chunk always dissepears, but sometimes I can’t make it appear back.
I don’t have this problem in internet explorer.

This is the function:
function hideshow(num) {
idstring = “element-” + num;
chunk = document.getElementById(idstring);
if ( chunk.style.display == “none”) {
chunk.style.display = chunk.style.tag;
} else {
chunk.style.tag = chunk.style.display;
chunk.style.display = “none”;
}
}

Best regards, Ruslan.