In an ASP file, if the definition of the function F() is taken out from within <% %> and placed within
<script>
</script>
then the server returns with an error.
Is there some rule governing function placement?



<script>
</script>

<%
function F()
{
return 7.0;
}
var Seven = F();
Response.write("Seven = " + Seven);
%>