<!--
    // Use the maxChecked variable to set the maximum number that can be checked
    var maxChecked = 7;
    var totalChecked = 0;

    function CountChecked(field) {
        if (field.checked) {
            totalChecked += 1;
	}
        else {
            totalChecked -= 1;
	}
         
        if (totalChecked > maxChecked) {
            alert ("Du kan kun sætte 7 krydser");
            field.checked = false;
            totalChecked = maxChecked;
        }
    }

    function ResetCount() {
        totalChecked = 0;
    }
//--> 

