/* ----------------------------------------------------------------------------------------
File Name: UserAnswerClasses.js

	This file holds all constructors to all Classes.
	Super Class: clsUserAnswer(type)- Holds the Logic Type.
	Sub Classes (Inheritance)-
	To remember user's answer, each constructor has 2 private data members 
	that can be set or get by the public data methods.

	
	Written By:  Yonit Rusho
	Date:	     15 June 2003

 ----------------------------------------------------------------------------------------*/


function clsUserAnswer(type)
{
	//public data member
	this.strLogicType = type;
}


function objUserAnswer_DFL()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strParentGroup;

	//public data methods
	this.setAll = function(d, p) {strDistractorID = d; strParentGroup = p;};
	this.getAllAsString = function() {return strDistractorID + "|" + strParentGroup;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getParentGroup = function() {return strParentGroup;};
}


function objUserAnswer_DMC()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var boolChecked;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; boolChecked = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + boolChecked;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getChecked = function() {return boolChecked;};

}


function objUserAnswer_MF1()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strParentID;

	//public data methods
	this.setAll = function(d, p) {strDistractorID = d; strParentID = p;};
	this.getAllAsString = function() {return strDistractorID + "|" + strParentID;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getParentID = function() {return strParentID;};
}


function objUserAnswer_MF3()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strParentID;

	//public data methods
	this.setAll = function(d, p) {strDistractorID = d; strParentID = p;};
	this.getAllAsString = function() {return strDistractorID + "|" + strParentID;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getParentID = function() {return strParentID;};
}


function objUserAnswer_MMC()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var boolChecked;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; boolChecked = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + boolChecked;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getChecked = function() {return boolChecked;};
}


function objUserAnswer_MRW()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var boolChecked;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; boolChecked = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + boolChecked;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getChecked = function() {return boolChecked;};
}


function objUserAnswer_MT1()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strParentID;

	//public data methods
	this.setAll = function(d, p) {strDistractorID = d; strParentID = p;};
	this.getAllAsString = function() {return strDistractorID + "|" + strParentID;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getParentID = function() {return strParentID;};
}

function objUserAnswer_SFL()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strParentID;

	//public data methods
	this.setAll = function(d, p) {strDistractorID = d; strParentID = p;};
	this.getAllAsString = function() {return strDistractorID + "|" + strParentID;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getParentID = function() {return strParentID;};
}


function objUserAnswer_SLS()
{
	//private data members
	var strFilledSPAN_ID;//The selected by the user distractors' id.
	var strInnerElement;

	//public data methods
	this.setAll = function(f, i) {strFilledSPAN_ID = f; strInnerElement = i;};
	this.getAllAsString = function() {return strFilledSPAN_ID + "|" + strInnerElement;};
	this.getFilledSPAN_ID = function() {return strFilledSPAN_ID;};
	this.getInnerElement = function() {return strInnerElement;};
}


function objUserAnswer_SLW()
{
	//private data members
	var strFilledSPAN_ID;//The selected by the user distractors' id.
	var strInnerElement;

	//public data methods
	this.setAll = function(f, i) {strFilledSPAN_ID = f; strInnerElement = i;};
	this.getAllAsString = function() {return strFilledSPAN_ID + "|" + strInnerElement;};
	this.getFilledSPAN_ID = function() {return strFilledSPAN_ID;};
	this.getInnerElement = function() {return strInnerElement;};
}


function objUserAnswer_SMC()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var boolChecked;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; boolChecked = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + boolChecked;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getChecked = function() {return boolChecked;};
}


function objUserAnswer_CST()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var boolChecked;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; boolChecked = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + boolChecked;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getChecked = function() {return boolChecked;};
}


function objUserAnswer_TAB()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var boolChecked;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; boolChecked = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + boolChecked;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getChecked = function() {return boolChecked;};
}


function objUserAnswer_TYP()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strValueTyped; //The value typed in the input=text by the user.

	//public data methods
	this.setAll = function(d, v) {strDistractorID = d; strValueTyped = v;};
	this.getAllAsString = function() {return strDistractorID + "|" + strValueTyped;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getstrValueTyped = function() {return strValueTyped;};
}


function objUserAnswer_ELS()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strDisplayed;

	//public data methods
	this.setAll = function(d, c) {strDistractorID = d; strDisplayed = c;};
	this.getAllAsString = function() {return strDistractorID + "|" + strDisplayed;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getDisplayed = function() {return strDisplayed;};
}


function objUserAnswer_MFL()
{
	//private data members
	var strDistractorID;//The selected by the user distractors' id.
	var strParentID;

	//public data methods
	this.setAll = function(d, p) {strDistractorID = d; strParentID = p;};
	this.getAllAsString = function() {return strDistractorID + "|" + strParentID;};
	this.getDistractorID = function() {return strDistractorID;};
	this.getParentID = function() {return strParentID;};
}
