How to pass 2values to window.location.href
<p>I have a script in which I have to pass 2 values to window.location.href to open a new window which accepts these two values from the URL.  </p>

<pre>
onclick="showrestdetail($urlpagename)"
</pre>

<p>The function is as follows:  </p>

<pre>
function showrestdetail(urlpage)
{
    window.location.href=urlpage;
}
</pre>

<p>But I want two values to be passed in this function and catch thse two values when new window opens.
Is there any way to do this?<br>
Thanks in advance.</p>
