Little help with some (simple) Javascript code
<p>I'm a newb when it comes to javascript. Perhaps somebody could help me with this. I assume it is not very complicated. This is what I would like:</p>

<pre><code>&lt;SCRIPT type=text/javascript&gt;
    var StandardURL = "http://site/Lists/test/AllItems.aspx";
&lt;/script&gt;

&lt;SCRIPT type=text/javascript&gt;
    var FilterURL = "http://site/Lists/test//AllItems.aspx?FilterField1=Judge&amp;FilterValue1=";
&lt;/script&gt;
</code></pre>

<p><code>var DynamicURL = FilterURL + DynamicUserInf</code> (no space between it should be like one url link), dynamicuserinf contains different value depending on the user that is logged in no need to worry what is in it. It already contains a value befor this runs</p>

<p><code>var CurrentURL = current URL where this script is loading</code></p>

<pre><code>&lt;script language="JavaScript" type="text/javascript"&gt;
    if (CurrentURL == StandardURL) { location.href= (DynamicURL);}
&lt;/script&gt;
</code></pre>

<p>ElSE do nothing (i assume this is not neccarry with only one if statement)</p>

<p>Hopefully not much of a mess.</p>
