rendered paste body
<html>
<head>
<script>
<!--
function togglethis(theobj) {
if (document.getElementById(theobj).style.visibility == 'hidden') {
document.getElementById(theobj).style.visibility = 'visible';
} else {
document.getElementById(theobj).style.visibility = 'hidden';
}
return false;
}
function togglethis2(theobj) {
if (document.getElementById(theobj).style.display == 'none') {
document.getElementById(theobj).style.display = '';
} else {
document.getElementById(theobj).style.display = 'none';
}
return false;
}
//-->
</script>
</head>
<body>
<table>
<tr><td><a href="http://www.google.com" onclick="togglethis('span1'); return false;">X</a><span id="span1">This will be hidden</span> <span>This won't.</span></td></tr>
<tr><td><a href="http://www.google.com" onclick="togglethis('span2'); return false;">X</a><span id="span2">This will be hidden</span> <span>This won't.</span></td></tr>
<tr><td><a href="http://www.google.com" onclick="togglethis2('span3'); return false;">X</a><span id="span3">This will be hidden</span> <span>This won't.</span></td></tr>
<tr><td><a href="http://www.google.com" onclick="togglethis2('span4'); return false;">X</a><span id="span4">This will be hidden</span> <span>This won't.</span></td></tr>
</table>
</body>
</html>