function SetAllCheckBoxes(FormName, AreaID, CheckValue)
{
	if(!document.forms[FormName])
	return;
	var objCheckBoxes = document.getElementById(AreaID).getElementsByTagName('input');
	if(!objCheckBoxes)
	return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
	objCheckBoxes.checked = CheckValue;
	else
	for(var i = 0; i < countCheckBoxes; i++)
	objCheckBoxes[i].checked = CheckValue;
}
