I have been trying to use the function show_hide() included in \includes\jscript.js without success.
First off, no core 6.01.6 files make use of the function show_hide(), so that's probably why it hasn't been noted that the function is not working.
The code for present function show_hide() that is not working and throws a FF "Error: msg_id.style has no properties":
function show_hide(msg_id) {
msg_id.style.display = msg_id.style.display == 'none' ? 'block' : 'none';
}
To get it working it can be changed to:
function show_hide(msg_id) {
var el = document.getElementById(msg_id);
el.style.display = el.style.display == 'none' ? 'block' : 'none';
}
Suggestion:
Either remove the function show_hide() or update the jscript.js to a working version of the function.
Since the function was probably working at some point back in time, best solution in my mind would be to update the jscript.js to the working version.