Focussing the curser to a field

Sys.Application.add_load(function() {
        var popup = $find('mpeRowsPage');
        popup.add_shown(function() {
            $get('<%= txtRowsPage.ClientID %>').focus();
        });
    });