javascript round robin url click
<p>i want to implement url click link random method by use javascript.</p>

<p>for example,  if visitor A,B,C,D visited my site</p>

<p>and if click url link i want visitor visit my two website example1.com and example2.com  randomly.</p>

<pre><code>&lt;area shape="rect" coords="140,350,890,440" href="http://somesite.com" target="_blank"&gt;
</code></pre>

<p>i found some javascript with array method but how can i modify it and can adopt to my case?</p>

<pre><code>&lt;SCRIPT Language="Javascript"&gt;
&lt;!--
function Randomlink()
{
    Url = new Array;
    Url[0] = "http://www.ccm.net/index.php3";
    Url[1] = "http://www. ccm.net/wifi";
    Url[2] = "http://www. ccm.net/php";
    Url[3] = "http://www. ccm.net/forum/";

    Chooselink = Math.round(Math.random() * (Url.length+1));
    window.open(Url[Chooselink],'_blank');
}
//--&gt;
&lt;/SCRIPT&gt;
</code></pre>