function KeepCount() {
var NewCount = 0
if (document.cat.arts.checked) {NewCount = NewCount + 1}
if (document.cat.beauty.checked) {NewCount = NewCount + 1}
if (document.cat.creativity.checked) {NewCount = NewCount + 1}
if (document.cat.culture.checked) {NewCount = NewCount + 1}
if (document.cat.diversity.checked) {NewCount = NewCount + 1}
if (document.cat.education.checked) {NewCount = NewCount + 1}
if (document.cat.family.checked) {NewCount = NewCount + 1}
if (document.cat.friendship.checked) {NewCount = NewCount + 1}
if (document.cat.health.checked) {NewCount = NewCount + 1}
if (document.cat.heritage.checked) {NewCount = NewCount + 1}
if (document.cat.knowledge.checked) {NewCount = NewCount + 1}
if (document.cat.life.checked) {NewCount = NewCount + 1}
if (document.cat.love.checked) {NewCount = NewCount + 1}
if (document.cat.money.checked) {NewCount = NewCount + 1}
if (document.cat.nature.checked) {NewCount = NewCount + 1}
if (document.cat.problemsolving.checked) {NewCount = NewCount + 1}
if (document.cat.religion.checked) {NewCount = NewCount + 1}
if (document.cat.rules.checked) {NewCount = NewCount + 1}
if (document.cat.science.checked) {NewCount = NewCount + 1}
if (document.cat.spirituality.checked) {NewCount = NewCount + 1}
if (document.cat.sports.checked) {NewCount = NewCount + 1}
if (document.cat.traditions.checked) {NewCount = NewCount + 1}
if (document.cat.happiness.checked) {NewCount = NewCount + 1}
if (document.cat.values.checked) {NewCount = NewCount + 1}
if (document.cat.work.checked) {NewCount = NewCount + 1}
if (NewCount == 11)
{
alert('You may only choose a maximum of 10 categories')
document.cat; return false;
}
}