<script type="text/javascript">
    function loginToSolusVM()
    {
        clientexec.mask();
        $.ajax({
            url: 'index.php?fuse=clients&action=callpluginaction',
            success: function(xhr) {
                var json = xhr.message
                if ( json.hasha && json.hashb ) {
                    url = '<?php echo $this->serverURL; ?>?_a=' + json.hasha + '&_b=' + json.hashb;
                    window.location = url;
                } else {
                    clientexec.error(clientexec.lang('Currently unable to login to SolusVM.'));
                }
                clientexec.unMask();
            },
            data: {
                id: <?php echo $this->packageId; ?>,
                actioncmd: 'authenticateClient'
            }
        });

    }
</script>