function loadAccTypes(controlID){
	engDropDowns.getAccTypes(controlID, callback_loadAccTypes);
}

function callback_loadAccTypes(res){
	var controlTable = res.value.Tables[0];
	var control = document.getElementById(controlTable.Rows[0].controlName);
	
	var accTypeTable = res.value.Tables[1];
	
	
	for (var i=0; i<accTypeTable.Rows.length; i++)
		{
		
		var label = document.createElement("label");
		label.innerHTML = accTypeTable.Rows[i].Acc_Description;
		label.setAttribute("for","lblAccType_" + accTypeTable.Rows[i].Acc_Type_ID);
		
		var rad = document.createElement("input");
		rad.id = "lblAccType_" + accTypeTable.Rows[i].Acc_Type_ID;
		rad.type = "radio";
		rad.name = "accType";
		rad.value = accTypeTable.Rows[i].Acc_Type_ID;
		
		var li = document.createElement("li");
		li.appendChild(label);
		li.appendChild(rad);
		
		control.appendChild(li);
		}
	
	
}

