<html>
<link rel="stylesheet" href="josh.css">
<body bgcolor="#FFFFFF">

		<div id="Description">
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
				<tr><td valign="top" class="name">return</td><td valign="top" nowrap class="compatibility">NN <span class="emphasis">2</span> IE <span class="emphasis">3</span> ECMA <span class="emphasis">1</span></td>
				</tr>
				<tr>
					<td valign="top" nowrap class="usage"><p class="literal"></p>
					</td><td valign="top" nowrap class="requirements"></td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="description">
						<p>Stops execution of the current function. A <span class="literal">return</span>
statement can be located anywhere within the function, including
inside control structures. You can optionally specify a value to be
returned to the calling statement. This return value can be any
JavaScript data type. If a <span class="literal">return</span> statement that
returns a value is in a loop or other control structure, there must
be a <span class="literal">return</span> statement for each branch of the
execution tree, including a default <span class="literal">return</span>
statement if execution should reach the main execution scope near or
at the end of the function.
</p>
												</td>
</tr>
				<tr>
					<td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="example"><span class="title">Example</span></td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
				</tr>
				<tr>
					<td><span class="programlisting"><pre>function validateNumber(form) {
    var oneChar;
    for (var i = 0; i &lt; userEntry.length; i++) {
        oneChar = form.entry.value.charAt(i);
        if (oneChar &lt; "0" || oneChar &gt; "9") {
            return false;
        }
    }
    return true;
}</pre>
						</span></td>
				</tr>
			</table>
		</div>

</body>
</html>