I know I'm a newbie and most of you will spot the error, but I can't figure it out for the life of me:

Currently, I have two ways to do the same thing, a test so that I can replicate things repeatedly. One relies on a function (that I can easily have multiple hidden ids, classes, etc), the other is inline:

//Green works, red doesn't, they should produce the same result for my test.

<script type="text/javascript">
function CoverPage(transect)
{
document.getElementById(transect).style.visibility="hidden";
}
</script>

</head>
<body>

<input type="button" value="Hide Table" onclick=document.getElementById("TransectOne").style.visibility="hidden";>

<input type="button" value="Transect One" onlcick=CoverPage(TransectOne);>

Thanks in advance,
Brian