//copyright Lake Joondalup Archery Club 2010

//get gender
    function getgender() {
        for (var i = 0; i < document.birthday.gender.length; i++) {
            if (document.birthday.gender[i].checked) {
                var gen = document.birthday.gender[i].value;
                document.birthday.fitadiv.value = "Division: " + gen;
                return false;
            }
        }
    }
   
    //get current date with global variables
    var dat = new Date();
    var curday = dat.getDate();
    var curmon = dat.getMonth() + 1;
    var curyear = dat.getFullYear();
    
    //select 100 years for drop down list with global variables
    var startyear = dat.getFullYear()-100;
    var endyear = dat.getFullYear();
    
    //factor in leap years
    function checkleapyear(datea) {
        if (datea.getYear() % 4 == 0) {
            if (datea.getYear() % 10 != 0) {
                return true;
            }
            else {
                if (datea.getYear() % 400 == 0)
                    return true;
                else
                    return false;
            }
        }
        return false;
    }
    
    //factor in days in month
    function DaysInMonth(Y, M) {
        with (new Date(Y, M, 1, 12)) {
            setDate(0);
            return getDate();
        }
    }
    
    //determine date differences
    function datediff(date1, date2) {
        var y1 = date1.getFullYear(), m1 = date1.getMonth(), d1 = date1.getDate(),
        y2 = date2.getFullYear(), m2 = date2.getMonth(), d2 = date2.getDate();
        if (d1 < d2) {
            m1--;
            d1 += DaysInMonth(y2, m2);
        }
        if (m1 < m2) {
            y1--;
            m1 += 12;
        }
        return [y1 - y2, m1 - m2, d1 - d2];
    }

    //calculate age, division and shooting requirements
    //calculate age and days to next birthday
    function calcage() {
        var calday = document.birthday.day.options[document.birthday.day.selectedIndex].value;
        var calmon = document.birthday.month.options[document.birthday.month.selectedIndex].value;
        var calyear = document.birthday.year.options[document.birthday.year.selectedIndex].value;
        if (curday == "" || curmon == "" || curyear == "" || calday == "" || calmon == "" || calyear == "") {
            alert("please select all dates and the click Determine Division -");
        }
        else {
            var curd = new Date(curyear, curmon - 1, curday);
            var cald = new Date(calyear, calmon - 1, calday);

            var diff = Date.UTC(curyear, curmon, curday, 0, 0, 0) - Date.UTC(calyear, calmon, calday, 0, 0, 0);

            var dife = datediff(curd, cald);
            document.birthday.age.value = "Current Age: " + dife[0] + " years, " + dife[1] + " months, and " + dife[2] + " days";
            var as = parseInt(calyear) + dife[0] + 1;
            var diff = Date.UTC(as, calmon, calday, 0, 0, 0) - Date.UTC(curyear, curmon, curday, 0, 0, 0);
            var datee = diff / 1000 / 60 / 60 / 24;
            document.birthday.nbday.value = "Days from today to your next birthday: " + datee;
        }

        //determine last day of this year
        var endofyear = "31 December, " + curyear;
        document.birthday.eoy.value = "This year ends on: " + endofyear;

        //determine age at end of this year
        var eoyd = parseInt(31);
        var eoym = parseInt(12);
        var eald = new Date(curyear, eoym - 1, eoyd);
        var difeoy = datediff(eald, cald);

        document.birthday.endage.value = "Age at end of year: " + difeoy[0] + " years, " + difeoy[1] + " months, and " + difeoy[2] + " days";

        document.birthday.divage.value = "Age used for assigning Age Division: " + difeoy[0]
        
        //determine shooting division
        if (difeoy[0] <= 12) {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " CUB";
        }
        else if (difeoy[0] >= 13 && difeoy[0] <= 14) {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " INTERMEDIATE";
        }
        else if (difeoy[0] >= 15 && difeoy[0] <= 17) {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " CADET";
        }
        else if (difeoy[0] >= 18 && difeoy[0] <= 20) {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " JUNIOR";
        }
        else if (difeoy[0] > 49 && difeoy[0] <= 59) {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " MASTER";
        }
        else if (difeoy[0] >= 60) {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " VETERAN";
        }
        else {
            document.birthday.fitadiv.value = document.birthday.fitadiv.value + " OPEN";
        }

    }

    //determine bow type
    function getbow() {
        for (var i = 0; i < document.birthday.bow.length; i++) {
            if (document.birthday.bow[i].checked) {
                var bow = document.birthday.bow[i].value;
                document.birthday.fitadiv.value = document.birthday.fitadiv.value + " " + bow;
                return false;
            }
        }
    }
    


    //determine shooting requirements
    function getoutdist() {
        var division = document.birthday.fitadiv.value
        document.birthday.indoors.value = "Indoor Distances: 18m or 25m all ratings";
        document.birthday.clout.value = "Clout Scores: GMB-306, MB-285, 1st-260, 2nd-200, 3rd-170";
        document.birthday.flight.value = "Flight Distances: GMB-430m, MB-340m, 1st-250m, 2nd-200m, 3rd-150m";
        //cubs
        if (division == "Division: MALE CUB COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1302, MB-1235, 1st-1148, 2nd-964, 3rd-707";
            document.birthday.field.value = "Field:YELLOW peg: GMB-351, MB-323, 1st-291, 2nd-231, 3rd-162";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1302, MB-1235, 1st-1148, 2nd-964, 3rd-707";
            document.birthday.field.value = "Field:YELLOW peg: GMB-351, MB-323, 1st-291, 2nd-231, 3rd-162";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CUB RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1235, MB-1148, 1st-1030, 2nd-799, 3rd-519";
            document.birthday.field.value = "Field:YELLOW peg: GMB-323, MB-291, 1st-252, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1235, MB-1148, 1st-1030, 2nd-799, 3rd-519";
            document.birthday.field.value = "Field:YELLOW peg: GMB-323, MB-291, 1st-252, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CUB STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1235, MB-1148, 1st-1030, 2nd-799, 3rd-519";
            document.birthday.field.value = "Field:YELLOW peg: GMB-323, MB-291, 1st-252, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1235, MB-1148, 1st-1030, 2nd-799, 3rd-519";
            document.birthday.field.value = "Field:YELLOW peg: GMB-323, MB-291, 1st-252, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CUB STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1148, MB-1033, 1st-885, 2nd-612, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1148, MB-1033, 1st-885, 2nd-612, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CUB LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-35r, MB-25r, 1st-15r, 2nd-5r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-964, MB-799, 1st-612, 2nd-na, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-231, MB-184, 1st-137, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-35r, MB-25r, 1st-15r, 2nd-5r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-964, MB-799, 1st-612, 2nd-na, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-231, MB-184, 1st-137, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CUB BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1148, MB-1033, 1st-885, 2nd-612, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1148, MB-1033, 1st-885, 2nd-612, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CUB BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-45r, MB-35r, 1st-25r, 2nd-10r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1094, MB-964, 1st-799, 2nd-519, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-271, MB-231, 1st-184, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CUB BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-45r, MB-35r, 1st-25r, 2nd-10r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1094, MB-964, 1st-799, 2nd-519, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-271, MB-231, 1st-184, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        //
        else if (division == "Division: MALE INTERMEDIATE COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1283, MB-1210, 1st-1115, 2nd-915, 3rd-653";
            document.birthday.field.value = "Field:BLUE peg: GMB-339, MB-309, 1st-273, 2nd-208, 3rd-139";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1250, MB-1165, 1st-1056, 2nd-833, 3rd-562";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE INTERMEDIATE RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1210, MB-1115, 1st-989, 2nd-744, 3rd-475";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1165, MB-1056, 1st-915, 2nd-653, 3rd-394";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE INTERMEDIATE STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1210, MB-1115, 1st-989, 2nd-744, 3rd-475";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1165, MB-1056, 1st-915, 2nd-653, 3rd-394";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE INTERMEDIATE STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1115, MB-989, 1st-833, 2nd-562, 3rd-na";
            document.birthday.field.value = "Field:BLUE peg: GMB-273, MB-232, 1st-184, 2nd-118, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1056, MB-915, 1st-744, 2nd-475, 3rd-na";
            document.birthday.field.value = "Field:BLUE peg: GMB-254, MB-208, 1st-161, 2nd-98, 3rd-na";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE INTERMEDIATE LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-40r, MB-30r, 1st-20r, 2nd-5r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1033, MB-885, 1st-707, 2nd-na, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-252, MB-208, 1st-162, 2nd-118, 3rd-na";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-35r, MB-25r, 1st-15r, 2nd-5r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-35m, 2nd-30m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-964, MB-799, 1st-612, 2nd-na, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-231, MB-184, 1st-137, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE INTERMEDIATE BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1195, MB-1094, 1st-964, 2nd-707, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-308, MB-271, 1st-231, 2nd-162, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1148, MB-1033, 1st-885, 2nd-612, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE INTERMEDIATE BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1148, MB-1033, 1st-885, 2nd-612, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE INTERMEDIATE BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-45r, MB-35r, 1st-25r, 2nd-10r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-40m, MB-40m, 1st-30m, 2nd-20m, 3rd-na";
            document.birthday.fita.value = "Horsham Scores: GMB-1094, MB-964, 1st-799, 2nd-519, 3rd-0";
            document.birthday.field.value = "Field:YELLOW peg: GMB-271, MB-231, 1st-184, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 100m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        //
        else if (division == "Division: MALE CADET COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1233, MB-1144, 1st-1029, 2nd-797, 3rd-532";
            document.birthday.field.value = "Field:BLUE peg: GMB-352, MB-324, 1st-291, 2nd-232, 3rd-161";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1247, MB-1163, 1st-1053, 2nd-827, 3rd-552";
            document.birthday.field.value = "Field:BLUE peg GMB-339, MB-309, 1st-273, 2nd-208, 3rd-139:";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CADET RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CADET STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CADET STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1029, MB-881, 1st-709, 2nd-449, 3rd-248";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1053, MB-910, 1st-738, 2nd-465, 3rd-na";
            document.birthday.field.value = "Field:BLUE peg: GMB-273, MB-232, 1st-184, 2nd-118, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CADET LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-45r, MB-35r, 1st-25r, 2nd-10r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-989, MB-833, 1st-653, 2nd-394, 3rd-na";
            document.birthday.field.value = "Field:BLUE peg: GMB-232, MB-184, 1st-139, 2nd-82, 3rd-na";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-40r, MB-30r, 1st-20r, 2nd-5r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-915, MB-744, 1st-562, 2nd-na, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-252, MB-208, 1st-162, 2nd-118, 3rd-na";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CADET BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1111, MB-985, 1st-827, 2nd-552, 3rd-314";
            document.birthday.field.value = "Field:YELLOW peg: GMB-323, MB-291, 1st-252, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1115, MB-989, 1st-833, 2nd-562, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-308, MB-271, 1st-231, 2nd-162, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE CADET BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1053, MB-910, 1st-738, 2nd-465, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-308, MB-271, 1st-231, 2nd-162, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE CADET BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-55m, MB-55m, 1st-45m, 2nd-35m, 3rd-na";
            document.birthday.fita.value = "Intermediate Scores: GMB-1056, MB-915, 1st-744, 2nd-475, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        //
        else if (division == "Division: MALE JUNIOR COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-85r, MB-75r, 1st-65r, 2nd-50r, 3rd-35r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1228 MB-1137 1st-1020 2nd-792 3rd-539";
            document.birthday.field.value = "Field:RED peg: GMB-340 MB-310 1st-276 2nd-211 3rd-137";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1233, MB-1144, 1st-1029, 2nd-797, 3rd-532";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE JUNIOR RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1137, MB-1020, 1st-873, 2nd-622, 3rd-387";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:RED peg: GMB-293, MB-256, 1st-211, 2nd-137, 3rd-77";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE JUNIOR STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1137, MB-1020, 1st-873, 2nd-622, 3rd-387";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:RED peg: GMB-293, MB-256, 1st-211, 2nd-137, 3rd-77";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE JUNIOR STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1020, MB-873, 1st-707, 2nd-460, 3rd-263";
            document.birthday.field.value = "Field:RED peg: GMB-276, MB-234, 1st-186, 2nd-118, 3rd-63";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1029, MB-881, 1st-709, 2nd-449, 3rd-248";
            document.birthday.field.value = "Field:RED peg: GMB-256, MB-211, 1st-161, 2nd-95, 3rd-50";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE JUNIOR LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-985, MB-827, 1st-644, 2nd-385, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-45r, MB-35r, 1st-25r, 2nd-10r, 3rd-0r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-910, MB-738, 1st-552, 2nd-314, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-271, MB-231, 1st-184, 2nd-118, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE JUNIOR BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1091, MB-959, 1st-797, 2nd-532, 3rd-306";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1111, MB-985, 1st-827, 2nd-552, 3rd-314";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE JUNIOR BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1029, MB-881, 1st-709, 2nd-449, 3rd-248";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE JUNIOR BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1053, MB-910, 1st-738, 2nd-465, 3rd-na";
            document.birthday.field.value = "Field:BLUE peg: GMB-273, MB-232, 1st-184, 2nd-118, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        //
        else if (division == "Division: MALE MASTER COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-90r, MB-80r, 1st-70r, 2nd-55r, 3rd-40r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1300, MB-1233, 1st-1144, 2nd-959, 3rd-709";
            document.birthday.field.value = "Field:RED peg: GMB-353, MB-327, 1st-293, 2nd-234, 3rd-161";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-85r, MB-75r, 1st-65r, 2nd-50r, 3rd-35r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1312, MB-1247, 1st-1163, 2nd-985, 3rd-738";
            document.birthday.field.value = "Field:RED peg: GMB-340 MB-310 1st-276 2nd-211 3rd-137";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE MASTER RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1233, MB-1144, 1st-1029, 2nd-797, 3rd-532";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1247, MB-1163, 1st-1053, 2nd-827, 3rd-552";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE MASTER STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1233, MB-1144, 1st-1029, 2nd-797, 3rd-532";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1247, MB-1163, 1st-1053, 2nd-827, 3rd-552";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE MASTER STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:RED peg: GMB-293, MB-256, 1st-211, 2nd-137, 3rd-77";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:RED peg: GMB-276, MB-234, 1st-186, 2nd-118, 3rd-63";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE MASTER LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1053, MB-910, 1st-738, 2nd-465, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-308, MB-271, 1st-231, 2nd-162, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-985, MB-827, 1st-644, 2nd-385, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE MASTER BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1207, MB-1111, 1st-985, 2nd-738, 3rd-465";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE MASTER BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE MASTER BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1111, MB-985, 1st-827, 2nd-552, 3rd-314";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        //
        else if (division == "Division: MALE VETERAN COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-90r, MB-80r, 1st-70r, 2nd-55r, 3rd-40r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1337, MB-1282, 1st-1207, 2nd-1053, 3rd-827";
            document.birthday.field.value = "Field:RED peg: GMB-353, MB-327, 1st-293, 2nd-234, 3rd-161";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-85r, MB-75r, 1st-65r, 2nd-50r, 3rd-35r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1312, MB-1247, 1st-1163, 2nd-985, 3rd-738";
            document.birthday.field.value = "Field:RED peg: GMB-340 MB-310 1st-276 2nd-211 3rd-137";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE VETERAN RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1282, MB-1207, 1st-1111, 2nd-910, 3rd-644";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1247, MB-1163, 1st-1053, 2nd-827, 3rd-552";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";                        
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE VETERAN STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1282, MB-1207, 1st-1111, 2nd-910, 3rd-644";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1247, MB-1163, 1st-1053, 2nd-827, 3rd-552";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE VETERAN STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1207, MB-1111, 1st-985, 2nd-738, 3rd-465";
            document.birthday.field.value = "Field:RED peg: GMB-293, MB-256, 1st-211, 2nd-137, 3rd-77";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:RED peg: GMB-276, MB-234, 1st-186, 2nd-118, 3rd-63";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE VETERAN LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1053, MB-910, 1st-738, 2nd-465, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-308, MB-271, 1st-231, 2nd-162, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-50r, MB-40r, 1st-30r, 2nd-15r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-985, MB-827, 1st-644, 2nd-385, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-291, MB-252, 1st-208, 2nd-137, 3rd-0";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE VETERAN BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1207, MB-1111, 1st-985, 2nd-738, 3rd-465";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE VETERAN BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE VETERAN BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1111, MB-985, 1st-827, 2nd-552, 3rd-314";
            document.birthday.field.value = "Field:BLUE peg: GMB-291, MB-254, 1st-208, 2nd-136, 3rd-82";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        //
        else if (division == "Division: MALE OPEN COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-95r, MB-85r, 1st-75r, 2nd-60r, 3rd-45r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1295 MB-1228 1ST-1137 2ND-950 3RD-707";
            document.birthday.field.value = "Field:RED peg: GMB-365 MB-340 1ST-310 2ND-256 3RD-186";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-90r, MB-80r, 1st-70r, 2nd-55r, 3rd-40r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1300 MB-1233 1ST-1144 2ND-959 3RD-709";
            document.birthday.field.value = "Field:RED peg: GMB-353, MB-327, 1st-293, 2nd-234, 3rd-161";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE OPEN RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-85r, MB-75r, 1st-65r, 2nd-50r, 3rd-35r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1228 MB-1137 1ST-1020 2ND-792 3RD-539";
            document.birthday.field.value = "Field:RED peg: GMB-340 MB-310 1st-276 2nd-211 3rd-137";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1233, MB-1144, 1st-1029, 2nd-797, 3rd-532";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE OPEN STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-85r, MB-75r, 1st-65r, 2nd-50r, 3rd-35r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1228 MB-1137 1ST-1020 2ND-792 3RD-539";
            document.birthday.field.value = "Field:RED peg: GMB-340 MB-310 1st-276 2nd-211 3rd-137";
            document.birthday.cloutdist.value = "Clout Distance: 180m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN STANDARD COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-80r, MB-70r, 1st-60r, 2nd-45r, 3rd-30r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1233, MB-1144, 1st-1029, 2nd-797, 3rd-532";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE OPEN STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-90m, MB-90m, 1st-70m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 90m Scores: GMB-1137, MB-1020, 1st-873, 2nd-622, 3rd-387";
            document.birthday.field.value = "Field:RED peg: GMB-310, MB-276, 1st-234, 2nd-161, 3rd-95";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN STANDARD RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:RED peg: GMB-327, MB-293, 1st-256, 2nd-145, 3rd-116";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE OPEN LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-60r, MB-50r, 1st-40r, 2nd-25r, 3rd-10r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1111, MB-985, 1st-827, 2nd-552, 3rd-314";
            document.birthday.field.value = "Field:YELLOW peg: GMB-323, MB-291, 1st-252, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN LONGBOW") {
            document.birthday.rating.value = "Required Ratings: GMB-55r, MB-45r, 1st-35r, 2nd-20r, 3rd-5r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1053, MB-910, 1st-738, 2nd-465, 3rd-na";
            document.birthday.field.value = "Field:YELLOW peg: GMB-308, MB-271, 1st-231, 2nd-162, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE OPEN BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-75r, MB-65r, 1st-55r, 2nd-40r, 3rd-25r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1137, MB-1091, 1st-959, 2nd-709, 3rd-449";
            document.birthday.field.value = "Field:BLUE peg GMB-339, MB-309, 1st-273, 2nd-208, 3rd-139:";
            document.birthday.cloutdist.value = "Clout Distance: 165m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN BAREBOW COMPOUND") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1207, MB-1111, 1st-985, 2nd-738, 3rd-465";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: MALE OPEN BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-70r, MB-60r, 1st-50r, 2nd-35r, 3rd-20r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-70m, MB-70m, 1st-60m, 2nd-50m, 3rd-na";
            document.birthday.fita.value = "FITA 70m Scores: GMB-1144, MB-1029, 1st-881, 2nd-620, 3rd-374";
            document.birthday.field.value = "Field:BLUE peg: GMB-324, MB-291, 1st-254, 2nd-184, 3rd-118";
            document.birthday.cloutdist.value = "Clout Distance: 145m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else if (division == "Division: FEMALE OPEN BAREBOW RECURVE") {
            document.birthday.rating.value = "Required Ratings: GMB-65r, MB-55r, 1st-45r, 2nd-30r, 3rd-15r";
            document.birthday.outdist.value = "Outdoor Distances: GMB-60m, MB-60m, 1st-50m, 2nd-40m, 3rd-na";
            document.birthday.fita.value = "FITA 60m Scores: GMB-1163, MB-1053, 1st-910, 2nd-644, 3rd-385";
            document.birthday.field.value = "Field:BLUE peg: GMB-309, MB-273, 1st-232, 2nd-161, 3rd-98";
            document.birthday.cloutdist.value = "Clout Distance: 125m";
            var gmb = document.birthday.rating.value;
            var rat = document.birthday.gmbrating.value;
            var num = rat / gmb.substring(22, 24) * 100
            document.birthday.percentile.value = "Progress towards GMB rating: " + num.toFixed(2) + "%";
        }
        else {
            document.birthday.rating.value = "NOT ENTERED YET";
        }
    }

  