For some reason my javascript code is messed up. When run through firebug, I get the error "proceedToSecond not defined". But it is defined! please help
<script type = "text/javascript">
function proceedToSecond ()
{
document.getElementById("div1").style.visibility="hidden";
document.getElementById("div2").style.visibility="visible";
}
function reset_Form()
{
document.personalInfo.reset();
}
function showList()
{
alert("hey");
if (document.getElementsById("favSports").style.visibility=="hidden") {
document.getElementsById("favSports").style.visibility="visible");
}
}
//function showList2() {
//}
</script>
<body>
<!--various code -->
<input type="button" onClick="proceedToSecond()" value="Proceed to second form"/>
</body>