function CheckBoxForm( options ) {
	this.trigger = options['str_trigger'];
	this.element = options['str_element'];
	this.message = options['message'];
};
CheckBoxForm.prototype = {
	init: function() {
		Event.observe($(this.trigger), 'submit', this.check.bindAsEventListener(this), false);
		this.nodes = Form.getInputs($(this.trigger), 'checkbox', this.element);
	},
	check: function(event) {
		var self = this;
		this.checked = 0;
		$A(this.nodes).each(function(item) {
			if (item.checked) {
				self.checked = 1;
      }
		});		
		if (!this.checked) {
			PPrompt.alert(this.message);
      var pmsg = document.getElementsByClassName('pmsg')[0];
			pmsg.style.color = 'red';
			Event.stop(event);
			return false;
		}
  }
};