function setTextDiv(rootName, q_idx, a_idx, a_max, q_descr)
{
	for ( var i = 0; i < a_max; i++ )
	{
		var text_div = document.getElementById(rootName + "_" + q_idx + "_" + i );
		if ( text_div )
		{
			if ( a_idx == i )
			{
				text_div.innerHTML = "<input type=\"Text\" class=\"EVALUATION_ANSWER\" name=\"squestion_descr_" + q_idx + "_" + a_idx + "\" id=\"squestion_descr_" + q_idx + "_" + a_idx + "\" value=\"" + q_descr + "\" style=\"width:96%\" onkeyup=\"setTextValue('squestion_descr','" + q_idx + "','" + a_idx + "')\">";
			}// if ( a_idx == i )
			else
			{
				var txt = document.getElementById("squestion_descr_" + q_idx );
				if ( txt )
					txt.value = "";
				text_div.innerHTML = "&nbsp;";
			}
		}// if ( sct_text_div )
	}// for i
}

function setTextValue(rootName, q_idx, a_idx)
{
	var text = document.getElementById(rootName + "_" + q_idx);
	var div = document.getElementById(rootName + "_" + q_idx + "_" + a_idx);
	if ( text && div )
	{
		text.value = div.value;
	}
}
