Opening a page from javascript

function ok_click() {
        if ($get('<%=txtRowsPage.ClientID%>').value != '') {
            window.location.href = window.document.URL + '?rpp=1&rows=' + $get('<%=txtRowsPage.ClientID%>').value;
        }
    }