<head>
<script>
function test()
{
...
}
</script>
</head><body>
<script>
<%For i = 1 to row_num%>
test()
<%Next%>
</script>
</body>
<script>
function test()
{
...
}
</script>
</head><body>
<script>
<%For i = 1 to row_num%>
test()
<%Next%>
</script>
</body>
<script language="javascript">
test();
</script>
<%Next%>
<script>
function test(x)
{
...
}
</script>
</head><body>
<script>
<%For i = 1 to row_num%>
<script language="javascript">
test(i);
</script>
<%Next%>
</script>
</body>