﻿$(document).ready(function() {

    //define an array of city objects
    var cities = [
		        { 'city': 'Aiken', 'state': 'SC', 'south': true, 'smallTown': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Albuquerque', 'state': 'NM', 'southwest': true, 'mediumCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Anaheim', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Ann Arbor', 'state': 'MI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Appleton', 'state': 'WI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Arlington', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Asheville', 'state': 'NC', 'south': true, 'smallCity': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Athens', 'state': 'GA ', 'south': true, 'mediumCity': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'music': true, 'noTrans': true },
                { 'city': 'Atlanta', 'state': 'GA', 'south': true, 'mediumCity': true, 'hot': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Austin', 'state': 'TX ', 'southwest': true, 'south': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'rental': true, 'notHealthcare': true, 'museums': true, 'music': true, 'speaking': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Back Mountain', 'state': 'PA', 'midAtlantic': true, 'allSeasons': true, 'rental': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Baltimore', 'state': 'MD ', 'midAtlantic': true, 'bigCity': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Beaufort', 'state': 'SC', 'south': true, 'smallTown': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Bella Vista', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Bellevue', 'state': 'NE', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Bellingham', 'state': 'WA', 'pacificNorthwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Benbrook', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Berkeley', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Bethesda', 'state': 'MD', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Bettendorf', 'state': 'IA', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Billings', 'state': 'MT', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Birmingham', 'state': 'AL', 'south': true, 'hot': true, 'rental': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Bishop', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Bismarck', 'state': 'ND', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Blacksburg', 'state': 'VA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Bloomington', 'state': 'IN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Boca Raton', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Boone', 'state': 'NC', 'south': true, 'hot': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Boston', 'state': 'MA', 'northeast': true, 'mediumCity': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Branson', 'state': 'MO', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Brattleboro', 'state': 'VT', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Breckenridge', 'state': 'CO', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Bronx', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Brunswick', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Buffalo', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Burke', 'state': 'VA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Burlington', 'state': 'VT', 'northeast': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Cambridge', 'state': 'MA', 'northeast': true, 'mediumCity': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Canyon Lake', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Cape May', 'state': 'NJ', 'midAtlantic': true, 'smallTown': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Cashiers', 'state': 'NC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Cedar Key', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Cedar Rapids', 'state': 'IA', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'Cerritos', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Charleston', 'state': 'SC', 'south': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'museums': true, 'noTrans': true },
                { 'city': 'Charlotte', 'state': 'NC ', 'south': true, 'bigCity': true, 'hot': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Charlottesville', 'state': 'VA', 'south': true, 'smallCity': true, 'hot': true, 'housingCosts': true, 'strongHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Chattanooga', 'state': 'TN', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'symphony': true, 'drive': true, 'noTrans': true },
                { 'city': 'Cheyenne', 'state': 'WY', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Chicago', 'state': 'IL', 'midwest': true, 'bigCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Cincinnati', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'notHealthcare': true, 'profSports': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Clay', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'rental': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Cleveland', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Coast', 'state': 'HI', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Coconut Creek', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Colorado Springs', 'state': 'CO', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'Columbia', 'state': 'MD', 'midAtlantic': true, 'mediumCity': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Columbus', 'state': 'OH', 'midwest': true, 'bigCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'strongHealthcare': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Concord', 'state': 'NH', 'northeast': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Costa Mesa', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Crossville', 'state': 'TN', 'south': true, 'smallCity': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Dahlonega', 'state': 'GA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Dallas', 'state': 'TX', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'museums': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Dallas/Ft. Worth', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'rental': true, 'notHealthcare': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Davis', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Dayton', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Denver', 'state': 'CO', 'southwest': true, 'mediumCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Des Moines', 'state': 'IA', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Detroit', 'state': 'MI', 'midwest': true, 'bigCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Diamond Bar', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Doral', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Dunedin', 'state': 'FL', 'south': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Durango', 'state': 'CO', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'lakeRiver': '', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Durham', 'state': 'NC', 'south': true, 'hot': true, 'housingCosts': true, 'strongHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'East Lansing', 'state': 'MI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'East Rutherford', 'state': 'NH', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'El Paso', 'state': 'TX', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Ellicott City', 'state': 'MD ', 'midAtlantic': true, 'mediumCity': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Etna', 'state': 'CA ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Evans', 'state': 'GA', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Fayetteville', 'state': 'AR ', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'noTrans': true },
                { 'city': 'Fernandina Beach', 'state': 'FL', 'south': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Ferry Pass', 'state': 'FL', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Fishers', 'state': 'IN', 'midwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Flagstaff', 'state': 'AZ', 'southwest': true, 'smallCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Fond du Lac', 'state': 'WI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'lakeRiver': '', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Fort Cape Coral', 'state': 'FL', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Fort Collins', 'state': 'CO', 'midwest': true, 'southwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'drive': true, 'noTrans': true },
                { 'city': 'Fort Smith', 'state': 'AR', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Fort Worth', 'state': 'TX', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'noTrans': true },
                { 'city': 'Foxborough', 'state': 'MA', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Franklin', 'state': 'IN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Franklin Township', 'state': 'NJ', 'midAtlantic': true, 'smallCity': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Fredericksburg', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Ft. Lauderdale', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Ft. Myers', 'state': 'FL', 'south': true, 'smallCity': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Ft. Wayne', 'state': 'IN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'Ft. Worth', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Gainsville', 'state': 'FL ', 'south': true, 'mediumCity': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Georgetown', 'state': 'SC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Glendale', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Glenwood Springs', 'state': 'CO', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Grand Rapids', 'state': 'MI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Green Valley', 'state': 'AZ', 'southwest': true, 'smallCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Greenbay', 'state': 'WI ', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Greensboro', 'state': 'NC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Greenville', 'state': 'SC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Greenwich', 'state': 'CT', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Gunnison', 'state': 'CO', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Hanes', 'state': 'AK ', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Hanover', 'state': 'NH', 'northeast': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Hartford', 'state': 'CT', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Henderson', 'state': 'NV', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Hilton Head', 'state': 'SC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Holland', 'state': 'MI', 'midwest': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Honolulu', 'state': 'HI ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'airTravel': true, 'public': '' },
                { 'city': 'Hood River', 'state': 'OR', 'pacificNorthwest': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Houston', 'state': 'TX', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Huntsville', 'state': 'AL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'Indianapolis', 'state': 'IN', 'midwest': true, 'bigCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Indianapolis', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Irvine', 'state': 'CA', 'southwest': true, 'mediumCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Irving', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Ithaca', 'state': 'NY', 'midAtlantic': true, 'smallCity': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Jackson', 'state': 'MS', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Jacksonville', 'state': 'FL', 'south': true, 'bigCity': true, 'hot': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'theatre': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Janesville', 'state': 'WI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Jersey City', 'state': 'NJ', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Jim Thorpe', 'state': 'PA', 'midAtlantic': true, 'allSeasons': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Juneau', 'state': 'AK', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Kansas City', 'state': 'MO', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Knoxville', 'state': 'TN', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'symphony': true, 'speaking': true, 'drive': true, 'noTrans': true },
                { 'city': 'Kona-Kohala Lake Havascu City', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'La Quinta', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Laguna Niguel', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Lander', 'state': 'WY', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Landover', 'state': 'MD', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Lanesboro', 'state': 'MN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Laramie', 'state': 'WY', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Las Vegas', 'state': 'NV', 'southwest': true, 'mediumCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'music': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Leonardtown', 'state': 'MD', 'midAtlantic': true, 'smallTown': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Lewiston', 'state': 'ID', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'lakeRiver': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Lexington', 'state': 'KY', 'midwest': true, 'south': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'Lincolnville', 'state': 'ME', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Logan', 'state': 'UT ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Longmeadow', 'state': 'MA', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Los Angeles', 'state': 'CA ', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Louisville', 'state': 'KY', 'midwest': true, 'south': true, 'mediumCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Madison', 'state': 'WI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'strongHealthcare': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Madison', 'state': 'CT ', 'northeast': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Manchester', 'state': 'NH', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Marble Falls', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'lakeRiver': '', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Marion', 'state': 'IA', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'McKinney', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Memphis', 'state': 'TN', 'south': true, 'bigCity': true, 'hot': true, 'rental': true, 'notHealthcare': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Mesa', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Mexico Beach', 'state': 'FL', 'south': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Miami', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'theatre': true, 'music': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Miami Gardens', 'state': 'FL ', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Millcreek', 'state': 'PA', 'midAtlantic': true, 'allSeasons': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Milwaukee', 'state': 'WI', 'midwest': true, 'bigCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'lakeRiver': '', 'rental': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Minneapolis', 'state': 'MN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Missoula', 'state': 'MT', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'lakeRiver': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Montpelier', 'state': 'VT', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Mount Airy', 'state': 'NC', 'south': true, 'smallTown': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Mount Vernon', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Mountain View', 'state': 'AR', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Myrtle Beach', 'state': 'SC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Mystic', 'state': 'ME', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Naperville', 'state': 'IL', 'midwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Nashville', 'state': 'TN', 'south': true, 'mediumCity': true, 'hot': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'music': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Natchitoches', 'state': 'LA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'New Haven', 'state': 'CT', 'northeast': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'New Orleans', 'state': 'LA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'museums': true, 'music': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'New Paltz', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'New Rochelle', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'New York', 'state': 'NY', 'midAtlantic': true, 'bigCity': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'music': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Newark', 'state': 'NJ', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Newport', 'state': 'RI', 'midAtlantic': true, 'allSeasons': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Newport Beach', 'state': 'CA ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Nicholasville', 'state': 'KY', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Norfolk', 'state': 'VA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Norman', 'state': 'OK', 'midwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'North Augusta', 'state': 'SC ', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'North Bergen', 'state': 'NJ', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'North Ridgeville', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Northampton', 'state': 'MA', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Northwest', 'state': 'AR', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Oakland', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Oklahoma City', 'state': 'OK', 'midwest': true, 'mediumCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Old Saybrook', 'state': 'CT', 'northeast': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Omaha', 'state': 'NE', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Orchard Park', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Orlando', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Overland Park', 'state': 'KS', 'midwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Oxford', 'state': 'OH', 'midwest': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Oxford', 'state': 'MS', 'south': true, 'smallTown': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Palm Beach', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Palm Coast', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Palm Desert', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Palm Harbor', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Panama City', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Paris', 'state': 'TN', 'south': true, 'smallTown': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Passaic', 'state': 'NJ', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Patterson', 'state': 'NJ', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Pearl', 'state': 'MS', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Philadelphia', 'state': 'PA ', 'midAtlantic': true, 'bigCity': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Phoenix', 'state': 'AZ ', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Pittsburgh', 'state': 'PA', 'midAtlantic': true, 'mediumCity': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Plainfield', 'state': 'IN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Plymouth', 'state': 'MN', 'midwest': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Plymouth', 'state': 'MA', 'northeast': true, 'smallCity': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Port Townsend', 'state': 'WA', 'pacificNorthwest': true, 'smallTown': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Portland', 'state': 'OR', 'pacificNorthwest': true, 'mediumCity': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'museums': true, 'theatre': true, 'symphony': true, 'speaking': true, 'airTravel': true, 'public': true },
                { 'city': 'Prescott', 'state': 'AZ', 'southwest': true, 'smallTown': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Providence', 'state': 'RI', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Queens', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Raleigh', 'state': 'NC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Raleigh-Durham', 'state': 'NC', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Rancho Santa Margarita', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Redan', 'state': 'GA', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Rehoboth Beach', 'state': 'DE', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Rochester', 'state': 'MN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Rockland', 'state': 'ME', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'lakeRiver': '', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Rockwall', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Round Rock', 'state': 'TX', 'southwest': true, 'smallCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'highSafety': '', 'noTrans': true },
                { 'city': 'Russellville', 'state': 'AR', 'south': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Sacramento', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Saint Petersburg', 'state': 'FL', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Salida', 'state': 'CO', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Salt Lake City', 'state': 'UT', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'rental': true, 'notHealthcare': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'San Antonio', 'state': 'TX', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'rental': true, 'notHealthcare': true, 'museums': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'San Diego', 'state': 'CA', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'San Francisco', 'state': 'CA', 'southwest': true, 'mediumCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'San Jose', 'state': 'CA', 'southwest': true, 'bigCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'theatre': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'San Luis Obispo', 'state': 'CA ', 'southwest': true, 'smallTown': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'speaking': true, 'noTrans': true },
                { 'city': 'Sandpoint', 'state': 'ID', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Santa Ana', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Santa Fe', 'state': 'NM', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'strongHealthcare': true, 'museums': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Sarasota', 'state': 'FL', 'south': true, 'smallCity': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Scottsdale', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'strongHealthcare': true, 'golfing': true, 'tennis': true, 'museums': true, 'noTrans': true },
                { 'city': 'Seattle', 'state': 'WA', 'pacificNorthwest': true, 'mediumCity': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'symphony': true, 'airTravel': true, 'public': true },
                { 'city': 'Sedona', 'state': 'AZ', 'southwest': true, 'smallTown': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Sequim', 'state': 'WA', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Silver City', 'state': 'NM', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'outdoor': true, 'noTrans': true },
                { 'city': 'Sioux Falls', 'state': 'SD', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'Spokane', 'state': 'WA', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Springfield', 'state': 'MO', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'drive': true, 'noTrans': true },
                { 'city': 'St. Charles', 'state': 'MO', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'St. George', 'state': 'UT', 'southwest': true, 'smallCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'St. Joseph', 'state': 'MI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'lakeRiver': '', 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'St. Louis', 'state': 'MO', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'rental': true, 'strongHealthcare': true, 'profSports': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'St. Paul', 'state': 'MN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'noTrans': true },
                { 'city': 'St. Petersburg', 'state': 'FL', 'south': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Stafford', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Stamford', 'state': 'CT', 'northeast': true, 'coldSnow': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'symphony': true, 'noTrans': true },
                { 'city': 'Stanford', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Stow', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Sunrise', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Tampa', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'Tempe', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Tucson', 'state': 'AZ', 'southwest': true, 'mediumCity': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Tulsa', 'state': 'OK', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Union City', 'state': 'NJ', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Uniondale', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'notHealthcare': true, 'profSports': true, 'noTrans': true },
                { 'city': 'Venice', 'state': 'FL', 'south': true, 'smallTown': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Vero Beach', 'state': 'FL', 'south': true, 'hot': true, 'beach': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Wadsworth', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Walton Beach', 'state': 'FL', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Washington DC', 'state': '', 'midAtlantic': true, 'mediumCity': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'profSports': true, 'museums': true, 'theatre': true, 'noTrans': true },
                { 'city': 'Watauga', 'state': 'TX', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Wenatchee', 'state': 'WA', 'pacificNorthwest': true, 'coldSnow': true, 'allSeasons': true, 'rain': true, 'mountains': true, 'housingCosts': true, 'notHealthcare': true, 'airTravel': true, 'noTrans': true },
                { 'city': 'West Bloomfield Township', 'state': 'MI', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Westerville', 'state': 'OH', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Williamsburg', 'state': 'VA', 'south': true, 'hot': true, 'housingCosts': true, 'notHealthcare': true, 'tennis': true, 'noTrans': true },
                { 'city': 'Winston-Salem', 'state': 'NC', 'south': true, 'mediumCity': true, 'hot': true, 'housingPrices': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Woodbury', 'state': 'MN', 'midwest': true, 'coldSnow': true, 'allSeasons': true, 'hotNotHumid': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Yonkers', 'state': 'NY', 'midAtlantic': true, 'allSeasons': true, 'housingCosts': true, 'strongHealthcare': true, 'noTrans': true },
                { 'city': 'Yorba Linda', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'golfing': true, 'noTrans': true },
                { 'city': 'Yucca Valley', 'state': 'CA', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true },
                { 'city': 'Yuma', 'state': 'AZ', 'southwest': true, 'hotNotHumid': true, 'hot': true, 'dry': true, 'housingCosts': true, 'notHealthcare': true, 'noTrans': true }
            ];
    $("#nextFinal").click(function() {
        //$("input").change(function() {
        //retrieve city objects that meet filter criteria
        results = jQuery.grep(cities, function(cityArray, i) {
            cityArray.matches = 0;
            $("input:checked").each(function(index) {

                if (cityArray[this.value]) {
                    cityArray.matches++;
                }

            });
            return cityArray.matches > 0; //include in results if the city matches 1 or more criteria
        });

        //sort results
        function sortResults(a, b) {
            return b.matches - a.matches;  // descending
        }
        //display results
        results.sort(sortResults);
        $("div#resultsListDiv").empty();
        var m;
        var firstTime = true;
        for (x = 0; x < 10; x++) {

            if (firstTime == true || m != results[x].matches) {
                firstTime = false;
                m = results[x].matches;
                $("<p style='color:#719500;font-weight:bold;padding-top:10px;margin-bottom:-30px;'><img alt='' src='../images/compass_small.png' width='76' height='68' /><span style='vertical-align:45px;'>The following cities matched " + results[x].matches + " of the criteria you entered:</span></p>").appendTo("div#resultsListDiv");
            }

            $("<p style='padding-left:80px;'>" + results[x].city + ", " + results[x].state + "</p>").appendTo("div#resultsListDiv");
        }
    });






    // Step1
    $('#FormANext').show();
    $('#FormABack').hide();
    // end step 1

    // Step 2 question #1
    $("#pacificNorthwestCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#midwestCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#northeastCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#southwestCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#midAtlanticCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#southCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    // Step 2 question #2
    $("#bigCityCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#medCityCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#smallCityCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });

    $("#smallTownCheckBox").click(function() {
        if (validateQ1() && validateQ2()) {
            $('#FormBBack').hide();
            $('#FormBNext').show();
        } else {
            $('#FormBNext').hide();
            $('#FormBBack').show();
        }
    });
    //end step 2

    // Step 3 question #3
    $("#coldSnowCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ3() && validateQ4()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#allSeasonsCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#hotNotHumidCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#hotCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#rainCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#dryCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    // Step 3 question #4
    $("#beachCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#lakeRiverCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#mountainsCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    // Step 3 question #5
    $("#rentalPropertiesCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#housingPricesCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#housingCostsCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    // Step 3 question #6
    $("#strongHealthcareCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });

    $("#notHealthcareCheckBox").click(function() {
        if (validateQ3() && validateQ4() && validateQ5() && validateQ6()) {
            $('#FormCBack').hide();
            $('#FormCNext').show();
        } else {
            $('#FormCNext').hide();
            $('#FormCBack').show();
        }
    });
    // end step 3

    // Step 4 question #7
    $("#highSafetyCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#notSafetyCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    // Step 4 question #8
    $("#outdoorCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#golfingCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#tennisCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#profSportsCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    // Step 4 question #9
    $("#museumsCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#theatreCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#speakingCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#musicCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#symphonyCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    // Step 4 question #10
    $("#airTravelCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#driveCarCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#publicTransCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });

    $("#noTransCheckBox").click(function() {
        if (validateQ7() && validateQ8() && validateQ9() && validateQ10()) {
            $('#FormDBack').hide();
            $('#FormDNext').show();
        } else {
            $('#FormDNext').hide();
            $('#FormDBack').show();
        }
    });
    // end step 4
    // Step 5
    $('#FormENext').hide();
    $('#FormEBack').show();
    // end step 5


    //document.forms['retirement'].reset();
    //$('#FormANext').hide();
    //$('#FormABack').show();

    $('#FormBNext').hide();
    $('#FormBBack').show();

    $('#FormCNext').hide();
    $('#FormCBack').show();

    $('#FormDNext').hide();
    $('#FormDBack').show();

    $('#FormENext').hide();
    $('#FormEBack').show();
});

function validateQ1() {
    var checked = false;
    
    if ($("#pacificNorthwestCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#midwestCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#northeastCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#southwestCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#midAtlanticCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#southCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ2() {
    var checked = false;
    
    if ($("#bigCityCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#medCityCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#smallCityCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#smallTownCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ3() {
    var checked = false;

    if ($("#coldSnowCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#allSeasonsCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#hotNotHumidCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#hotCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#rainCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#dryCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ4() {
    var checked = false;

    if ($("#beachCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#lakeRiverCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#mountainsCheckBox").is(":checked")) {
        checked = true;
    }
    
    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ5() {
    var checked = false;

    if ($("#rentalPropertiesCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#housingPricesCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#housingCostsCheckBox").is(":checked")) {
        checked = true;
    }
 
    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ6() {
    var checked = false;

    if ($("#strongHealthcareCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#notHealthcareCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ7() {
    var checked = false;

    if ($("#highSafetyCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#notSafetyCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ8() {
    var checked = false;

    if ($("#outdoorCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#golfingCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#tennisCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#profSportsCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ9() {
    var checked = false;

    if ($("#museumsCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#theatreCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#speakingCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#musicCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#symphonyCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}

function validateQ10() {
    var checked = false;

    if ($("#airTravelCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#driveCarCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#publicTransCheckBox").is(":checked")) {
        checked = true;
    }
    if ($("#noTransCheckBox").is(":checked")) {
        checked = true;
    }

    if (checked == false) {
        return false;
    } else {
        return true;
    }
}