var myFilterList = new Array();
function myFilters() {
	//step through all checkboxes
	for(i=0;i<document.subCatForm.elements.length;i++) {
		//create an array of values
		if (document.subCatForm.elements[i].type === "checkbox" && document.subCatForm.elements[i].checked === true) {
			myFilterList.push(document.subCatForm.elements[i].name);
			//alert("added to filter list: " + document.subCatForm.elements[i].name);
		}
	}
	if (myFilterList.length === 1) {
		document.subCatForm.fv.value = myFilterList[0];
	} else {
		for(i=0;i<myFilterList.length;i++) {
			if (i === (myFilterList.length - 1)) {
				document.subCatForm.fv.value += myFilterList[i];
			} else {
				document.subCatForm.fv.value += myFilterList[i] + ",";
			}
		}
	}
document.subCatForm.submit();
}