function Other_Object ( form_name, element_name, element_label) {
	this.form_name = form_name;
	this.element_name = element_name;
	this.element_label = element_label;
	
	this.Conditional_Logic_Object_Container = "";
	this.element_name_to_focus_on = "";
	this.alert_message = "";
		
	if (element_name != ""){
		this.process();
	}
}
Other_Object('','','');

function process_other_object () {
	var conditional_logic_string = 
	"(" +
	"(" + this.element_name + " == " + "'Other'" + ")" +
	" && " +
	"(" + "other_" + this.element_name + " == " + "''" + ")" +
	")";
	
	this.Conditional_Logic_Object_Container = new Conditional_Logic_Object (
					this.form_name,
					conditional_logic_string,
					'other_' + this.element_name,
					"If 'Other' is selected for: " + this.element_label + " then it must be specified"
	);

	this.element_name_to_focus_on = this.Conditional_Logic_Object_Container.element_name_to_focus_on;
	this.alert_message = this.Conditional_Logic_Object_Container.alert_message;	
}

function get_other_object_query_string (debug) {
	return this.Conditional_Logic_Object_Container.get_query(debug);
}

function required_other_object_logic_satisfied () {
	return eval(this.get_query());
}


// new conditional_logic_object('','','',''); // To Satisfy NN 3, you need to create and discard one object
Other_Object.prototype.process = process_other_object;
Other_Object.prototype.get_query = get_other_object_query_string;
Other_Object.prototype.logic_satisfied = required_other_object_logic_satisfied;


