selCat = function(str, mark){
	var collection = document.getElementsByTagName('input');
	for (i = 0; i < collection.length; i++)
	{
		var item=collection[i];
		if (item.name.indexOf(str)>=0)
		{
			item.checked = mark;
		};
	}
}