//////////////// dependencies  ///////////////////////////////
//	must have "jdCourse.js" included
//
///////////////////////////////////////////////////////////////////////////////
// 2006/5/9, Jalen: Property "Type" added to indicate the course type.
// 2005/12/6, Jalen: Code cleaned up.
// Revised on 2005/7/12, Jalen: function 'getUserID' added.
// Revised on 2005/5/30, Jalen

jdCourse_LC.prototype = new jdCourse();
function jdCourse_LC() {
	this.init = init;
	this.getQuizUserAns = getQuizUserAns;
	this.setQuizUserAns = setQuizUserAns;
	this.setQuizUserAns4OneQst = setQuizUserAns4OneQst;

	this.init();

	function init() {
		jdCourse_LC.prototype.init.call(this);	// Generates error on IE5, so it's commented just for IE5.
		// Added Properties
		this.comeFromQuiz = false;
		this.Type = "LC";
		// Internal variables
		this.aQuizUserAns = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	}
	
	function getQuizUserAns() {
		return this.aQuizUserAns;
	}
	function setQuizUserAns(vArr) {
		if (typeof(vArr) == "string") {
			vArr = vArr.split(",");
		}
		this.aQuizUserAns = vArr;
	}
	
	function setQuizUserAns4OneQst(str) {
		va = str.split(",");
		if (va.length == 2) {
			vIndex = va[0] - 1;
			vValue = va[1];
			this.getQuizUserAns();
			this.aQuizUserAns[vIndex] = vValue;
		}
	}

}

