function callbackReadingDirection(iResponse)
{
	if (iResponse.status == ERROR_NO_FAULT)
    {
		document.getElementById('word').dir = iResponse.object;
	}
}

function updateReadingDirection(iLangId)
{
	getReadingDirection(document.getElementById(iLangId).value, callbackReadingDirection);
}