function checkAll(sel, check)
{
	$$(sel).each(function(el)
	{
	    el.checked = check;
	});
}