Ok I got it.
This is the function:
Code:
function show(object) {
if(document.getElementById && document.getElementById(object)) {
document.getElementById(object).style.visibility = 'visible';
}
else if (document.all && document.all(object)) {
document.all(object).style.visibility = 'visible';
}
else if (document.layers && document.layers[object]) {
return document.layers[object].visibility = 'visible';
}
}
And to call it:
<a href="javascript:;" onClick="window.show('loginbox');">
Remember to remove the space from between Javascript.
Edit:
Oh yeah, this will work even in Netscape 4
Bookmarks