//
// user-login.js
//
// requires :
//   trader.js
//   

var develModuleInstance = new DevelModule();
develModuleInstance.pageLoad();

function DevelModule () {

    this.URL_XML = "./";
    this.MENU_CONTAINER_ID = "menu";
    this.PAGE_CONTAINER_ID = "page";
    this.SECTION_CONTAINER_ID = "devel";
    
    this.pageLoad = function() {
        this.initVars();
    }
    
    this.initVars = function() {
    }
    
    this.container;
    
    this.fetchXmlData = function() {
        var xmlGet = this.generateGet();
        var xmlPost = this.generatePost();
        fetchXmlData(this.URL_XML, xmlGet, xmlPost);
        
        this.initVars();
    }
    
    this.module;
    this.method;
    this.target;
    
    this.generateGet = function() {
        var params = "";

        params = appendUrlParam(params, "m", this.module);
        params = appendUrlParam(params, "method", this.method);
        params = appendUrlParam(params, "target", this.target);
        if(this.section) {
            params = appendUrlParam(params, "section", this.section);
        }
        
        return params;
    }
    
    this.generatePost = function() {
        var params = "";

        return params;
    }
    
    this.section;
    
    this.loadSection = function(section, target) {
        this.section = section;
        
        this.module = "dev-corner";
        this.method = "ajax";
        this.target = this.SECTION_CONTAINER_ID;
        
        this.fetchXmlData();
        
        return false;
    }
    
    this.xmlrpc = function() {
        this.section = "xmlrpc";

        this.module = "dev-corner";
        this.method = "ajax";
        this.target = this.SECTION_CONTAINER_ID;

        this.fetchXmlData();

        return false;
    }
}