Formidable.Classes.CheckBox = Formidable.Classes.RdtBaseClass.extend({
	isParentObj: function() {
		return this.config.bParentObj == true;
	},
	checkAll: function() {
		var k = 0;
		while((oChk = $(this.config.id + "[" + k + "]")) != null) {
			oChk.checked = true;
			k++;
		}
	},
	checkNone: function() {
		var k = 0;
		while((oChk = $(this.config.id + "[" + k + "]")) != null) {
			oChk.checked = false;
			k++;
		}
	},
	getValue: function() {
		if(this.isParentObj()) {

			var aValues = [];

			console.log(this.config.checkboxes);
			for(var k in this.config.checkboxes) {
				//console.log("parent:value:" + this.oForm.o(this.config.checkboxes[k]).getValue());
				sValue = this.oForm.o(this.config.checkboxes[k]).getValue();
				if(sValue != null) {
					aValues[aValues.length] = sValue;
				}
			}
			return aValues;
		} else {
			return $F(this.domNode());
		}
	}
});
