javascript basic syntax
<p>could you tell me how to pass variables using javascript? I receive two args (tid,uid), I then need to concatenate them into variables (turl, turl2) so that they become "http://www.site.com/t/t.php?testid=5" and "http://www.site.com/t/t.php?testid=5&amp;uid=12". Window.open needs to open these two variables (turl, turl2) but it is loading the var names not their values. </p>

<pre><code>function open_win(tid,uid) {
var turl = "http://www.site.com/t/t.php?testid="+tid;
var turl2 = 'http://www.site.com/t/i.php?testid= +tid+ &amp;uid=+uid +';
window.open('+ turl + ', '');
window.open('+ turl2 +', '');
}
</code></pre>
