//
// QUOSA Information Manager
// Copyright © 2000-2008 QUOSA, Inc.
// All Rights Reserved.
//
function xObjectsCollection() {
	var x = this; x.xObjects = new Array();
	x.xSetObjectByName = function(objName, obj) {
		x.xObjects[objName] = obj;
		return obj;
	}
	x.xGetObjectByName = function(objName) {
		var x = this;
		if (!x.xObjects[objName]) return null;
		return x.xObjects[objName];
	}
	x.xIsExists = function(obj) {
		var x = this;
		if (xIsString(obj)) {
			for (objName in x.xObjects)
				if (objName == obj) return true;
		} else
		if (xIsObject(obj)) {
			for (objName in x.xObjects)
				if (x.xObjects[objName] == obj) return true;
		}
		return false;
	}
}

function xFramesCollection() {
	var x = this; x.xFrames = new Array();	
	
	x.xAppendFrame = function (frmName, frmObj) {
		var x = this; x.xFrames[frmName] = frmObj;
	};
	
	x.xShiftFrameSize = function(shift_x, shift_y) {
		var x = this; for (frmName in x.xFrames)
			x.xFrames[frmName].xShiftFrameSize(shift_x, shift_y);
	};
	
	x.xSetFrameSize = function(size_w, size_h) {
		var x = this; for (frmName in x.xFrames)
			x.xFrames[frmName].xSetFrameSize(size_w, size_h);		
	};
}