Is there a limit to the number of javascript functions which can be included in a javascript source file, e.g.
<script type="text/javascript" src = "myscript.js"></script>

In the myscript.js file, I have multiple functions. The second one is called alertMessage() simply outputs a message and then returns a false:

function alertMessage() {
alert("made it here");
return false; }

The first javascript function in the js file is executed when every page is loaded, and works correctly.

The alertMessage function is called by an onsubmit attribute in a form:
<form id="myForm" name="myForm" method="post" action="confirm.php" onsubmit="return alertMessage()">

When the alertMessage function is in the js file and the submit button is hit, nothing happens. When it is included in the page's xhtml (surrounded by script tags), it executes when the submit button in the form is hit.

What is causing this? The code is on-line if needed.