Javascript simple UDF
<p>I'm now developing one JS UDF which seems following coding.</p>

<pre><code>&lt;script&gt;
&lt;!-- 
 function alertmsg()
 {
  alert("Hello World");
 }
 for(p=1; p &lt;= 2; p++)
 {
  alertmsg();
 }
 --&gt;
&lt;/script&gt;
</code></pre>

<p>Normally, Alert Msg will be came out two times because of loop count is 2. What I want is Alert Msg will be came out only one time even loop count is 3. Any idea will be appreciated in advance.</p>
