
	function checkall(oForm)
	{
		var aCollInput = oForm.getElementsByTagName('input');
		for (i = 0; i < aCollInput.length; i++)
			if(aCollInput[i].name.substr(0,9) == 'showerror')
				aCollInput[i].checked = true;
	}

	function uncheckall(oForm)
	{
		var aCollInput = oForm.getElementsByTagName('input');
		for (i = 0; i < aCollInput.length; i++)
			if(aCollInput[i].name.substr(0,9) == 'showerror')
				aCollInput[i].checked = false;
	}

	function checkcritical(oForm)
	{
		var aCollInput = oForm.getElementsByTagName('input');
		for (i = 0; i < aCollInput.length; i++)
			if(aCollInput[i].name.substr(0,9) == 'showerror')
			{	
				var strIndex = aCollInput[i].name.substr(10,aCollInput[i].name.length-11);
				if (strIndex == '1') aCollInput[i].checked = true;
				else if (strIndex == '2') aCollInput[i].checked = true;
				else if (strIndex == '5') aCollInput[i].checked = true;
				else if (strIndex == '6') aCollInput[i].checked = true;
				else if (strIndex == '8') aCollInput[i].checked = true;
				else if (strIndex == '10') aCollInput[i].checked = true;
				else if (strIndex == '14') aCollInput[i].checked = true;
				else if (strIndex == '15') aCollInput[i].checked = true;
				else aCollInput[i].checked = false;
			}
	}
	
	function checkmode(oForm, str)
	{
		var aCollInput = oForm.getElementsByTagName('input');
		for (i = 0; i < aCollInput.length; i++)
			if(aCollInput[i].name == 'mode' && aCollInput[i].value == str)
				aCollInput[i].checked = true;

	}

