function profileFunction(fcn_cd, fcn_nm) {
   this.getCode = getFunctionCode;
   this.fcn_cd = fcn_cd;
   this.fcn_nm = fcn_nm;
   this.levels = new Array();
   this.addLevel = addLevel;
}
profileFunction.prototype.getLevels = getLevels;
profileFunction.prototype.getCode = getFunctionCode;
profileFunction.prototype.getString = getFunctionName;


function addLevel(levelObj) {
   this.levels[this.levels.length] = levelObj;
}

function getLevels() {
   return this.levels;
}

function getFunctionCode() {
   return this.fcn_cd;
}

function getFunctionName() {
   return this.fcn_nm;
}


function profileLevel(fcn_cd, level_cd, level_nm) {
   this.fcn_cd = fcn_cd;
   this.level_cd = level_cd;
   this.level_nm = level_nm;
   this.rolearr = new Array();
}
profileLevel.prototype.addRole = addRole;
profileLevel.prototype.getRoles = getRoles;
profileLevel.prototype.getCode = getLevelCode;
profileLevel.prototype.getString = getLevelName;

function addRole(roleObj) {
   this.rolearr[this.rolearr.length] = roleObj;
}

function getRoles() {
   return this.rolearr;
}

function getLevelCode() {
   return this.level_cd;
}

function getLevelName() {
   return this.level_nm;
}

function profileRole(role_cd, role_disp_nm) {
   this.role_cd = role_cd;
   this.role_disp_nm = role_disp_nm;
   this.subrolearr = new Array();
}
profileRole.prototype.addSubrole = addSubrole;
profileRole.prototype.getSubroles = getSubroles;
profileRole.prototype.getCode = getRoleCode;
profileRole.prototype.getString = getRoleName;

function addSubrole(subroleobj) {
   this.subrolearr[this.subrolearr.length] = subroleobj;
}

function getSubroles() {
   return this.subrolearr;
}
function getRoleCode() {
   return this.role_cd;
}

function getRoleName() {
   return this.role_disp_nm;
}


function profileSubrole(subrole_cd, subrole_disp_nm) {
   this.subrole_cd = subrole_cd;
   this.subrole_disp_nm = subrole_disp_nm;
}
profileSubrole.prototype.getCode = getSubroleCode;
profileSubrole.prototype.getString = getSubroleName;

function getSubroleCode() {
   return this.subrole_cd;
}

function getSubroleName() {
   return this.subrole_disp_nm;
}


function subroleIndex(fcnndx, lvlndx, rolendx) {
   this.fcnndx = fcnndx;
   this.lvlndx = lvlndx;
   this.rolendx = rolendx;
}

