
var i;
i=0;

function _test(the_form, champ, a) {
	if(a==-1) {
		if(the_form[champ].checked == 1) i++;
		else i--;
	}
	else
	{
		if(the_form[champ][a])
		{
			if(the_form[champ][a].checked == 1) i++;
			else i--;
		}
		else
		{
			if(the_form[champ].checked == 1) i++;
			else i--;
		}
	}
}

function _valid(the_form) {
	if (i == 0) {
		alert('Please choose at least one item.');
		return false;
	}
	else {
	  return true;
	 	//the_form.submit()
	}
}

