Javascript how to put variable in a URICOMPONENT
<pre><code>var frank_param = gup( 'frank' );
var pageURL = encodeURIComponent("directory_doctor_page.php?DoctorID=23"); 
</code></pre>

<p>I have those two lines of code I want to replace the 23 with the var frank.
How will I accomplish this?</p>

<p>Thanks</p>
