Answer = function() {
	this.Id = null;
	this.Statement = null;
	this.Value=null;
	this.QuestionId = null;
	this.isEven = null;
	
	getAsHTMLEntity = function(){
		var div = document.createElement("div");
		div.setAttribute("id","answer_"+this.Id);
		(this.isEven) ? className = "Answer": className="Answer_Odd" ;
		div.setAttribute("class",className);
		div.className = className;
		
		var label = document.createElement("label");
		label.setAttribute("id","labelAnswer_"+this.QuestionId);
		label.innerHTML = this.Statement;
		label.setAttribute("class","AnswerStatement");
		label.className = "AnswerStatement";
		div.appendChild(label);
		
		try {
			var name = "answer_question_" + this.QuestionId;
			input = document.createElement("<input type=\"radio\" name=\""+name+"\" class=\"AnswerValue\" value=\""+this.Value+"\">");
		}
		catch(err) {
			input = document.createElement("input");
			input.setAttribute("type","radio");
			input.setAttribute("name","answer_question_"+this.QuestionId);
			input.setAttribute("class","AnswerValue");
			input.className = "AnswerValue";
			input.value = this.Value;
			input.setAttribute("value",this.Value);
		}
		div.appendChild(input);
		return div;
	};
	this.getAsHTMLEntity = getAsHTMLEntity;
};
