Passing URL parameter with JavaScript
<p>I have some JavaScript that creates Forward and Back buttons. However, I need to pass a parameter in the URL (<code>?id=$idd</code>):</p>

<pre><code>&lt;a href="javascript:submitForm('mainForm','back');" title="Go back to the kit home page" style="float: left;"&gt;&lt;img src="images/back.gif" alt="Go back to the kit home page" border="0" /&gt;&lt;/a&gt;
&lt;a href="javascript:submitForm('mainForm','proceed');" title="Submit the order details" style="float: right;"&gt;&lt;img src="images/proceed.gif" alt="Proceed to the next page" border="0" /&gt;&lt;/a&gt;
</code></pre>

<p>The JavaScript is below:</p>

<pre><code>// Used in all pages to submit a form and optionally set a hidden 
// form varaible called 'navigate' to direct navgiation
function submitForm(formName, navigateValue) {
    if (navigateValue != null &amp;&amp; navigateValue != "") {
     document.forms[formName].navigate.value = navigateValue;
    }
    document.forms[formName].submit();
}
</code></pre>

<p>Thanks.</p>
