opens window using jquery
<pre><code>function openSelectWindow()
{
    var selectScn = document.getElementById("updtGrid:selectScn");
    var selectScnVal = selectScn.value;

    if ((selectScnVal != null) &amp;amp;&amp;amp; (selectScnVal != ""))
    {
        var checkedIndex = getCheckedIndex(document);
        var nextActionHref = selectScnVal.toLowerCase() + ".xhtml";

        var jsessionid = document.getElementById("updtGrid:jsessionid").value;

        if (jsessionid != null)
        {
            nextActionHref += (";jsessionid=" + jsessionid);
        }

        nextActionHref += ("?parentScn=azrubbefhs1");
        nextActionHref += ("&amp;amp;mode=UPDATE");
        nextActionHref += ("&amp;amp;remFlt=t");

        if (selectScnVal == "AZRUBXDFHS1")
        {
            var fltFld = document.getElementById("updtGrid:" + "C_Menu");

            if (fltFld == null)
            {
                fltFld = document.getElementById("updtGrid:grid:" + checkedIndex + ":" + "C_Menu");
            }

            if (fltFld != null)
            {
                nextActionHref += ("&amp;amp;parm0=" + fltFld.value);
            }

            nextActionHref += ("&amp;amp;fromFld=Oggetto_procedura")
            nextActionHref += ("&amp;amp;toFld=Sgt_Menu")
            nextActionHref += ("&amp;amp;gridRow=" + checkedIndex);
            nextActionHref += ("&amp;amp;gridAction=AZRUBXDFHS1");
        }

        if (selectScnVal == "AZRUAVDFHS1")
        {
            var fltFld = document.getElementById("updtGrid:" + "C_prodotto");

            if (fltFld == null)
            {
                fltFld = document.getElementById("updtGrid:grid:" + checkedIndex + ":" + "C_prodotto");
            }

            if (fltFld != null)
            {
                nextActionHref += ("&amp;amp;parm0=" + fltFld.value);
            }

            nextActionHref += ("&amp;amp;fromFld=Oggetto_procedura")
            nextActionHref += ("&amp;amp;toFld=C_procedura")
            nextActionHref += ("&amp;amp;gridRow=" + checkedIndex);
            nextActionHref += ("&amp;amp;gridAction=AZRUAVDFHS1");
        }

        wnd = window.open (nextActionHref,selectScnVal,"menubar=0,toolbar=0,scrollbars=yes,resizable=yes,width=500,height=300"); 
        document.getElementById('updtGrid:selectScn').value = "";
    }
}
</code></pre>

<p>How to use jquery for opening the window</p>
