/*   
    encapsulates all license related functionality
*/
function CliLicenseActions() {
       
    /*  Stores a license  */
    CliLicenseActions.prototype.StoreLicense = function (license) {
    
        // store the license in the local drm store
        var drmApi = new ActiveXObject("DRM.GetLicense");
        var retVal;
        
        try {
            retVal = drmApi.StoreLicense(license);
        }
        catch (e) {
            return e.number;
        }
        
        if (retVal != null) 
            return retVal;
                    
        return 0;
    }

}