﻿// JScript File

var ResAjaxApiPath = strSiteRoot + "Research/Resajaxapi.aspx";

function Res_ajax_api()
{
    this.getType =  Res_ajax_api.getType;
    this.getSector = Res_ajax_api.getSector;
    this.getHoldingResearch = Res_ajax_api.getHoldingResearch;
}

Res_ajax_api.getType = function(callback_handle_response)
{
    var inputparam = "f=getType";
    var con1 = new edel_communication();
    con1.send_request(callback_handle_response,ResAjaxApiPath, "POST", null, inputparam);
};

Res_ajax_api.getSector = function(callback_handle_response)
{
    var inputparam = "f=getSector";
    var con1 = new edel_communication();
    con1.send_request(callback_handle_response,ResAjaxApiPath, "POST", null, inputparam);
};

Res_ajax_api.getHoldingResearch = function(callback_handle_response,subportid,daterange,currentpage,recordsperpage)
{
    var inputparam = "f=getHoldingResearch&pid=" + subportid + "&dt=" + daterange + "&page=" + currentpage + "&rec=" + recordsperpage;    
    var con1 = new edel_communication();
    con1.send_request(callback_handle_response,ResAjaxApiPath, "POST", null, inputparam);
};
