TargetDashboardHandler = function()
{
    var nextId = 0;
	var url = "http://produceworld.credit360.com/csr/site/portal/portlets/targetdashboard.ashx";
	
    var proxy = {
        
        "getData" : function(dashboardSid, indSid, callback, scope) {
            Call("getData", [ dashboardSid, indSid ], callback, scope, Array.prototype.slice.call(arguments, 4));
        },
        
        "system.about" : function(callback, scope) {
            Call("system.about", [ ], callback, scope, Array.prototype.slice.call(arguments, 2));
        },
        
        "system.listMethods" : function(callback, scope) {
            Call("system.listMethods", [ ], callback, scope, Array.prototype.slice.call(arguments, 2));
        },
        
        "system.version" : function(callback, scope) {
            Call("system.version", [ ], callback, scope, Array.prototype.slice.call(arguments, 2));
        }
    };
    
    function Call(method, params, callback, scope, callbackParams)
    {
        var request = { 
            id     : ++nextId, 
            method : method, 
            params : params 
        };
        Jayrock.Rpc.asyncRequest(url, request, callback, scope, callbackParams);
    }
        
    return proxy;
}();
