{
  "sha256": "22073379f73a0bd31b1b37cda266e797be0e67b4e8693efcf6cf92325f985672",
  "manual_fields": [
    "form1.Page1.PersonalDetails.ApplicationValidatedFlag",
    "form1.Page1.PersonalDetails.OfficeUse.ApplicationValidatedFlag",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.DateCalc",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.Day",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.Month",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.Year",
    "form1.Page4.Consent1.Signature.C1CertificateIssueDate",
    "form1.Page4.Consent1.Signature.TextField2"
  ],
  "fields": {
    "form1.Page1.PersonalDetails.ServiceIn.UCIClientID": {
      "label": "UCI",
      "template_path": "form1.Page1.PersonalDetails.ServiceIn.UCIClientID",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateUCI(this);\n",
        "//hide the javascript warning\nJavaScriptMessage.presence = \"hidden\";\n"
      ],
      "rules": {
        "gate": "has_uci",
        "optional": false
      },
      "max_chars": 10
    },
    "form1.Page1.PersonalDetails.ServiceIn.ServiceIn": {
      "label": "Service language",
      "template_path": "form1.Page1.PersonalDetails.ServiceIn.ServiceIn",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.PreferenceLanguageList.PreferenceLanguage[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//val.validateDropDownList(this, \"xfa.datasets.LOVFile.LOV.PreferenceLanguageList\");  //Put this line before val.validateDropDown\nval.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "English",
        "02": "French"
      }
    },
    "form1.Page1.PersonalDetails.Name.FamilyName": {
      "label": "Family name",
      "template_path": "form1.Page1.PersonalDetails.Name.FamilyName",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/3/13 18447\nvar result = val.validateName(this);\nif (result[0]){\n\tval.validateDuplicateName(GivenName, this, AliasName.AliasGivenName, AliasName.AliasFamilyName)\n}\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page1.PersonalDetails.Name.GivenName": {
      "label": "Given names",
      "template_path": "form1.Page1.PersonalDetails.Name.GivenName",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/3/13 18447\nvar result = val.validateName(this);\nif (result[0]){\n\tval.validateDuplicateName(this, FamilyName, AliasName.AliasGivenName, AliasName.AliasFamilyName)\n}\n\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page1.PersonalDetails.AliasName.AliasNameIndicator.AliasNameIndicator": {
      "label": "Other names used",
      "template_path": "form1.Page1.PersonalDetails.AliasName.AliasNameIndicator.AliasNameIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect( this);\ncolor.markCorrect( Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\nif (!this.isNull)\n{\n\t//enable the table\n\tutil.enableField(AliasFamilyName.somExpression, false);\n\tutil.enableField(AliasGivenName.somExpression, false);\n\n\t//reset mandatory fields\n\tcolor.markUnRequired(AliasFamilyName);\n\tcolor.markUnRequired(AliasGivenName);\n}\n",
        "color.markCorrect( this);\ncolor.markCorrect( No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n\nif (!this.isNull)\n{\n\t//enable the table\n\tutil.enableField(AliasFamilyName.somExpression, true);\n\tutil.enableField(AliasGivenName.somExpression, true);\n\t\n\t//reset mandatory fields\n\tcolor.markRequired(AliasFamilyName);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page1.PersonalDetails.AliasName.AliasFamilyName": {
      "label": "Other name — Family name",
      "template_path": "form1.Page1.PersonalDetails.AliasName.AliasFamilyName",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/3/13 18447\nvar result = val.validateName(this);\nif (result[0]){\n\tval.validateDuplicateName(Name.GivenName, Name.FamilyName, AliasGivenName, this)\n}\n\n\n"
      ],
      "rules": {
        "gate": "has_alias",
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page1.PersonalDetails.AliasName.AliasGivenName": {
      "label": "Other name — Given names",
      "template_path": "form1.Page1.PersonalDetails.AliasName.AliasGivenName",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/3/13 18447\nvar result = val.validateName(this);\nif (result[0]){\n\tval.validateDuplicateName(Name.GivenName, Name.FamilyName, this, AliasFamilyName)\n}\n\n"
      ],
      "rules": {
        "gate": "has_alias",
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page1.PersonalDetails.q3-4-5.sex.Sex": {
      "label": "Sex",
      "template_path": "form1.Page1.PersonalDetails.q3-4-5.sex.Sex",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.GenderMelList.GenderMel[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "Female": "F Female",
        "Male": "M Male",
        "Unknown": "U Unknown",
        "Unspecified": "X Another gender"
      }
    },
    "form1.Page1.PersonalDetails.q3-4-5.dob.DOBYear": {
      "label": "Date of birth",
      "template_path": "form1.Page1.PersonalDetails.q3-4-5.dob.DOBYear",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDOBYYYY(this, ButtonsHeader.Age);\n",
        " //CPARK 10/5\n var myValue = xfa.event.newText;\n if (myValue.length == 4)\n \txfa.host.setFocus(DOBMonth);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page1.PersonalDetails.q3-4-5.dob.DOBMonth": {
      "label": "Date of birth",
      "template_path": "form1.Page1.PersonalDetails.q3-4-5.dob.DOBMonth",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDOBMM(this, ButtonsHeader.Age);\n",
        "//CPARK 10/5\nvar myValue = xfa.event.newText;\n if (myValue.length == 2)\n \txfa.host.setFocus(DOBDay);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page1.PersonalDetails.q3-4-5.dob.DOBDay": {
      "label": "Date of birth",
      "template_path": "form1.Page1.PersonalDetails.q3-4-5.dob.DOBDay",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 3/13/12 readded age param\nval.validateDOBDD(DOBYear, DOBMonth, this, ButtonsHeader.Age);\t\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page1.PersonalDetails.q3-4-5.pob.PlaceBirthCity": {
      "label": "City of birth",
      "template_path": "form1.Page1.PersonalDetails.q3-4-5.pob.PlaceBirthCity",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePOBText(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page1.PersonalDetails.q3-4-5.pob.PlaceBirthCountry": {
      "label": "Country of birth",
      "template_path": "form1.Page1.PersonalDetails.q3-4-5.pob.PlaceBirthCountry",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfBirthList.CountryOfBirth[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page1.PersonalDetails.Citizenship.Citizenship": {
      "label": "Citizenship",
      "template_path": "form1.Page1.PersonalDetails.Citizenship.Citizenship",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfCitizenshipList.CountryOfCitizenship[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "254": "Bhutan",
        "751": "Bolivia",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "709": "Brazil",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "157": "Central African Republic",
        "156": "Chad",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "722": "Colombia",
        "905": "Comoros",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "221": "Cyprus",
        "015": "Czech Republic",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "022": "France",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "025": "Greece",
        "626": "Grenada",
        "544": "Guatemala",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "545": "Honduras",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "070": "Macedonia",
        "172": "Madagascar",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "174": "Mauritania",
        "902": "Mauritius",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "031": "Netherlands, The",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "033": "Poland",
        "034": "Portugal",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "844": "Samoa",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "180": "Senegal",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "979": "Stateless",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "187": "Togo",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "826": "Tuvalu",
        "136": "Uganda",
        "010": "UK - Brit. Ntl. Overseas",
        "004": "UK - Brit. overseas citizen",
        "005": "UK - Brit. overseas terr.",
        "003": "UK - British citizen",
        "059": "Ukraine",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "184": "Western Sahara",
        "273": "Yemen",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.Country": {
      "label": "Current residence — Country",
      "template_path": "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.Country",
      "bindings": [],
      "validation": [],
      "scripts": [],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "Canada",
        "511"
      ]
    },
    "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.Status": {
      "label": "Current residence — Status",
      "template_path": "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.Status",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ImmigrationStatusList.ImmigrationStatus[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "if(this.mandatory == \"error\" && (!this.isNull))  //good: if required and has a value\n{\n\tcolor.markCorrect(this);\t//correct\n}\nelse if (this.mandatory == \"error\" && (this.isNull))\n{\n\tcolor.markRequired(this);\n}\n",
        "var strStat = this.rawValue;\nif (strStat == \"03\"|| strStat == \"04\"|| strStat == \"05\")   //Temporary Resident = 03, Worker = 04, Student = 05\n{\n\tutil.enableField(FromDate.somExpression, true);\n\tutil.enableField(ToDate.somExpression, true);\n\tcolor.markRequired(ToDate);\n\tcolor.markRequired(FromDate);\n}\nelse\n{\n\tutil.enableField(FromDate.somExpression, false);\n\tutil.enableField(ToDate.somExpression, false);\n\tcolor.markUnRequired(ToDate);\n\tcolor.markUnRequired(FromDate);\n}\n\nif (strStat == \"06\" )  //\"06\" is Other\n{\n\tutil.enableField(Other.somExpression, true);\n\tcolor.markRequired(Other);\n\t\n\tutil.enableField(FromDate.somExpression, true);\n\tutil.enableField(ToDate.somExpression, true);\n}\nelse\n{\n\tutil.enableField(Other.somExpression, false);\n\tcolor.markUnRequired(Other);\n}\t\nval.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Citizen",
        "02": "Permanent resident",
        "03": "Visitor",
        "04": "Worker",
        "05": "Student",
        "06": "Other",
        "07": "Protected Person",
        "08": "Refugee Claimant",
        "09": "Foreign National"
      }
    },
    "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.Other": {
      "label": "Current residence — Other status",
      "template_path": "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.Other",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n",
        "if ((Status.rawValue == \"06\" )  && (this.rawValue == null))   //getDisplayItem 06 is Other\n{\n\tif (globValidatePressed.value == \"true\")\n\t\tcolor.markIncorrect(this);\n}  \n"
      ],
      "rules": {
        "gate": "current_status:06",
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.FromDate": {
      "label": "Current residence — from date",
      "template_path": "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.FromDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\nval.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), CORDates.FromYr, CORDates.FromMM, CORDates.FromDD, \"Today\");\n\n"
      ],
      "rules": {
        "gate": "temporary_status",
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.ToDate": {
      "label": "Current residence — to date",
      "template_path": "form1.Page1.PersonalDetails.CurrentCOR.CurrentCOR.Row2.ToDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\nval.validateDateWithHiddenFields(this, \">\", utilDates.getToday(), CORDates.ToYr, CORDates.ToMM, CORDates.ToDD, \"Today\");\n"
      ],
      "rules": {
        "gate": "temporary_status",
        "past": false,
        "after_today": true,
        "compare": "current_status_from",
        "optional": false
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCRIndicator": {
      "label": "Previous countries of residence",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCRIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n\nif(!this.isNull)\n{\n\t//enable the table\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.Country.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.Status.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.Other.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.FromDate.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.ToDate.somExpression, false);\n\t\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.Country.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.Status.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.Other.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.FromDate.somExpression, false);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.ToDate.somExpression, false);\n\t\n\t//clear hidden date fields\n\tPCOR_tbl.PCRDatesR1.FromYr.rawValue = null;\n\tPCOR_tbl.PCRDatesR1.FromMM.rawValue = null;\n\tPCOR_tbl.PCRDatesR1.FromDD.rawValue = null;\n\tPCOR_tbl.PCRDatesR1.ToYr.rawValue = null;\n\tPCOR_tbl.PCRDatesR1.ToMM.rawValue = null;\n\tPCOR_tbl.PCRDatesR1.ToDD.rawValue = null;\n\t\n\tPCOR_tbl.PCRDatesR2.FromYr.rawValue = null;\n\tPCOR_tbl.PCRDatesR2.FromMM.rawValue = null;\n\tPCOR_tbl.PCRDatesR2.FromDD.rawValue = null;\n\tPCOR_tbl.PCRDatesR2.ToYr.rawValue = null;\n\tPCOR_tbl.PCRDatesR2.ToMM.rawValue = null;\n\tPCOR_tbl.PCRDatesR2.ToDD.rawValue = null;\n\t\n\t//reset mandatory fields\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row2.Country);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row2.Status);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row2.Other);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row2.FromDate);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row2.ToDate);\n\t\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.Country);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.Status);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.Other);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.FromDate);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.ToDate);\n}\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n\nif(!this.isNull)\n{\n\t//enable the table\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.Country.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.Status.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.Other.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.FromDate.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row2.ToDate.somExpression, true);\n\t\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.Country.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.Status.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.Other.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.FromDate.somExpression, true);\n\tutil.enableField(PCOR_tbl.PreviousCOR.Row3.ToDate.somExpression, true);\n\t\n\t//reset mandatory fields\n\tcolor.markRequired(PCOR_tbl.PreviousCOR.Row2.Country);\n\tcolor.markRequired(PCOR_tbl.PreviousCOR.Row2.Status);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row2.Other);\n\tcolor.markRequired(PCOR_tbl.PreviousCOR.Row2.FromDate);\n\tcolor.markRequired(PCOR_tbl.PreviousCOR.Row2.ToDate);\n\t\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.Country);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.Status);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.Other);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.FromDate);\n\tcolor.markUnRequired(PCOR_tbl.PreviousCOR.Row3.ToDate);\n\t\n\t//trigger the dynamic-dependent events\n\tPCOR_tbl.PreviousCOR.Row2.Status.execEvent(\"exit\");\n\tPCOR_tbl.PreviousCOR.Row3.Status.execEvent(\"exit\");\n}\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Country": {
      "label": "Previous residence 1 — Country",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Country",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfLastPermanentResidentList.CountryOfLastPermanentResident[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n\t\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "035": "Azores",
        "622": "Bahamas",
        "253": "Bahrain",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "709": "Brazil",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "221": "Cyprus",
        "015": "Czech Republic",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "271": "North Vietnam",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "187": "Togo",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "136": "Uganda",
        "059": "Ukraine",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Status": {
      "label": "Previous residence 1 — Status",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Status",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ImmigrationStatusList.ImmigrationStatus[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "var strStat = this.rawValue;\nif (strStat == \"06\" )  //\"06\" is Other\n{\n\tutil.enableField(Other.somExpression, true);\n\tcolor.markRequired(Other);\n\t\n\tutil.enableField(FromDate.somExpression, true);\n\tutil.enableField(ToDate.somExpression, true);\n\t\n\tcolor.markRequired(FromDate);\n\tcolor.markRequired(ToDate);\n}\nelse\n{ \n\tutil.enableField(Other.somExpression, false);\n\tcolor.markUnRequired(Other);\n}\t\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "01": "Citizen",
        "02": "Permanent resident",
        "03": "Visitor",
        "04": "Worker",
        "05": "Student",
        "06": "Other",
        "07": "Protected Person",
        "08": "Refugee Claimant",
        "09": "Foreign National"
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Other": {
      "label": "Previous residence 1 — Other status",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Other",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n",
        "if (!this.isNull)\n    \tthis.rawValue = util.trim(this.rawValue);\n\n\nif ((Status.rawValue == \"06\" )  && (this.rawValue == null)){   //getDisplayItem 06 is Other\n\tif (globValidatePressed.value == \"true\")\n\t\tcolor.markIncorrect(this);\n}  \n\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.FromDate": {
      "label": "Previous residence 1 — From date",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.FromDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\nval.validateDateWithHiddenFields(this, \"<\", utilDates.getToday(), PCRDatesR1.FromYr, PCRDatesR1.FromMM, PCRDatesR1.FromDD, \"Today\");\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "before_today": true,
        "compare": null,
        "optional": false
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.ToDate": {
      "label": "Previous residence 1 — To date",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.ToDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\nvar result = val.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), PCRDatesR1.ToYr, PCRDatesR1.ToMM, PCRDatesR1.ToDD, \"Today\");\nif (result[0])\n{\n\tif (!FromDate.isNull && !this.isNull)\n\t{\t\n\t\tval.validateDateWithHiddenFields(this, \">\", FromDate.rawValue, PCRDatesR1.ToYr, PCRDatesR1.ToMM, PCRDatesR1.ToDD, \"FromTo\");\n\t}\n}\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "compare": "previous_residences.0.from_date",
        "strict_compare": true,
        "optional": false
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Country": {
      "label": "Previous residence 2 — Country",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Country",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfLastPermanentResidentList.CountryOfLastPermanentResident[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "\tval.validateDropDown(this);\n\n\t//If any one field has data make Country, Status, from to date required required\n\tif (!this.isNull || !Status.isNull || !Other.isNull || !FromDate.isNull || !ToDate.isNull){\n\t\tcolor.markRequired(this);\n\t    color.markRequired(Status);\n\t    color.markRequired(FromDate);\n\t    color.markRequired(ToDate);\n\t}\n\telse if (this.isNull && Status.isNull && Other.isNull && FromDate.isNull && ToDate.isNull){\n\t\tcolor.markUnRequired(this);\n\t    color.markUnRequired(Status);\n\t    color.markUnRequired(FromDate);\n\t    color.markUnRequired(ToDate);\t\n\t}\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "035": "Azores",
        "622": "Bahamas",
        "253": "Bahrain",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "709": "Brazil",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "221": "Cyprus",
        "015": "Czech Republic",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "271": "North Vietnam",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "187": "Togo",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "136": "Uganda",
        "059": "Ukraine",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Status": {
      "label": "Previous residence 2 — Status",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Status",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ImmigrationStatusList.ImmigrationStatus[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "var strStat = this.rawValue;\nif (strStat == \"06\" )  //\"06\" is Other\n{\n\tutil.enableField(Other.somExpression, true);\n\tcolor.markRequired(Other);\n\t\n\tutil.enableField(FromDate.somExpression, true);\n\tutil.enableField(ToDate.somExpression, true);\n\t\n\tcolor.markRequired(FromDate);\n\tcolor.markRequired(ToDate);\n}\nelse\n{ \n\tutil.enableField(Other.somExpression, false);\n\tcolor.markUnRequired(Other);\n}\t\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "01": "Citizen",
        "02": "Permanent resident",
        "03": "Visitor",
        "04": "Worker",
        "05": "Student",
        "06": "Other",
        "07": "Protected Person",
        "08": "Refugee Claimant",
        "09": "Foreign National"
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Other": {
      "label": "Previous residence 2 — Other status",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Other",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n",
        "if ((Status.rawValue == \"06\" )  && (this.rawValue == null))   //getDisplayItem 06 is Other\n{\n\tif (globValidatePressed.value == \"true\")\n\t\tcolor.markIncorrect(this);\n}  \n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.FromDate": {
      "label": "Previous residence 2 — From date",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.FromDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\nval.validateDateWithHiddenFields(this, \"<\", utilDates.getToday(), PCRDatesR2.FromYr, PCRDatesR2.FromMM, PCRDatesR2.FromDD, \"Today\");\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "before_today": true,
        "compare": null,
        "optional": false
      }
    },
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.ToDate": {
      "label": "Previous residence 2 — To date",
      "template_path": "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.ToDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\nvar result = val.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), PCRDatesR2.ToYr, PCRDatesR2.ToMM, PCRDatesR2.ToDD, \"Today\");\nif (result[0])\n{\n\tif (!FromDate.isNull && !this.isNull)\n\t{\t\n\t\tval.validateDateWithHiddenFields(this, \">\", FromDate.rawValue, PCRDatesR2.ToYr, PCRDatesR2.ToMM, PCRDatesR2.ToDD, \"FromTo\");\n\t}\n}\n"
      ],
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "compare": "previous_residences.1.from_date",
        "strict_compare": true,
        "optional": false
      }
    },
    "form1.Page1.MaritalStatus.Current.MaritalStatus": {
      "label": "Current marital status",
      "template_path": "form1.Page1.MaritalStatus.Current.MaritalStatus",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.MaritalStatusList.MaritalStatus[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "//CPARK 3/13 upd xpath + SUC383\nif (this.rawValue == \"01\"  || this.rawValue == \"03\" )   //01, and 03 are LIC codes for and married and common-law marriage\n{\n\tutil.enableField(b.DateOfMarriage.somExpression, true);\n\tutil.enableField(c.FamilyName.somExpression, true);\n\tutil.enableField(c.GivenName.somExpression, true);\n\tutil.enableField(d.SpouseStatus.No.somExpression, true)\n\tutil.enableField(d.SpouseStatus.Yes.somExpression, true)\n\td.SpouseStatus.access = \"open\"\t//instead of Y/N\n\t//d.SpouseStatus.No.rawValue = null\t\t//Comment out for ticket 289232\n\t//d.SpouseStatus.Yes.rawValue = null\n\n\tcolor.markRequired(b.DateOfMarriage);\t\n\tcolor.markRequired(c.FamilyName);\n\tcolor.DoColorFields(d.SpouseStatus, true, false);\n\tif (d.SpouseStatus.isNull)\n\t{\n\t\tcolor.markRequired(d.SpouseStatus.No)\t//CPARK 5/15/13 reenabled for accessibility\n\t\tcolor.markRequired(d.SpouseStatus.Yes)\t//CPARK 5/15/13 reenabled for accessibility\n\t\t//color.markRequired(d.SpouseStatus)\n\t\td.SpouseStatus.mandatory = \"error\"\n\t}\n}\t\nelse\n{ \n\tcolor.markUnRequired(b.DateOfMarriage);\n\tcolor.markUnRequired(c.FamilyName);\n\td.SpouseStatus.mandatory = \"disabled\"\n\tcolor.markUnRequired(d.SpouseStatus.No)\n\tcolor.markUnRequired(d.SpouseStatus.Yes)\n\t\n\tutil.enableField(b.DateOfMarriage.somExpression, false);\n\tutil.enableField(c.FamilyName.somExpression, false);\n\tutil.enableField(c.GivenName.somExpression, false);\n\tutil.enableField(d.SpouseStatus.No.somExpression, false)\n\tutil.enableField(d.SpouseStatus.Yes.somExpression, false)\n\td.SpouseStatus.access = \"readOnly\"\n}\n\n//CPARK 10/4/13 mark correct if stat changes instead of prev indicator \nif (Page2.MaritalStatus.PrevMarriage.PrevMarriedIndicator.rawValue != \"\")\n\tvalidateForm.checkCurrentPrevMaritalStat()\n\t\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "09": "Annulled Marriage",
        "03": "Common-Law",
        "04": "Divorced",
        "01": "Married",
        "05": "Separated",
        "02": "Single",
        "00": "Unknown",
        "06": "Widowed"
      }
    },
    "form1.Page1.MaritalStatus.Current.b.DateOfMarriage": {
      "label": "Current relationship — Start date",
      "template_path": "form1.Page1.MaritalStatus.Current.b.DateOfMarriage",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\nval.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), MarriageDate.FromYr, MarriageDate.FromMM, MarriageDate.FromDD, \"Today\");\n"
      ],
      "rules": {
        "gate": "married",
        "past": true,
        "optional": false
      }
    },
    "form1.Page1.MaritalStatus.Current.c.FamilyName": {
      "label": "Current spouse — Family name",
      "template_path": "form1.Page1.MaritalStatus.Current.c.FamilyName",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateName(this);\n"
      ],
      "rules": {
        "gate": "married",
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page1.MaritalStatus.Current.c.GivenName": {
      "label": "Current spouse — Given names",
      "template_path": "form1.Page1.MaritalStatus.Current.c.GivenName",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateName(this);\n"
      ],
      "rules": {
        "gate": "married",
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page1.MaritalStatus.d.SpouseStatus": {
      "label": "Spouse is Canadian citizen or permanent resident",
      "template_path": "form1.Page1.MaritalStatus.d.SpouseStatus",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n"
      ],
      "rules": {
        "gate": "married",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.MaritalStatus.PrevMarriage.PrevMarriedIndicator": {
      "label": "Previously married or common-law",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.PrevMarriedIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/10/13 GCMS100094545.\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n\nif (!this.isNull)\n{\n\tcolor.markUnRequired(PMFamilyName);\n\tcolor.markUnRequired(PMGivenName);\n\tcolor.markUnRequired(TypeOfRelationship);\n\tcolor.markUnRequired(From.FromDate);\n\tcolor.markUnRequired(To.ToDate);\n\t//CP1/22/14 20051/20044\n\tcolor.markUnRequired(dob.DOBYear)\n\tcolor.markUnRequired(dob.DOBMonth)\n\tcolor.markUnRequired(dob.DOBDay)\n\t\n\tutil.enableField(TypeOfRelationship.somExpression, false);\n\tutil.enableField(PMFamilyName.somExpression, false);\n\tutil.enableField(PMGivenName.somExpression, false);\n\tutil.enableField(From.FromDate.somExpression, false);\n\tutil.enableField(To.ToDate.somExpression, false);\n\t//CP1/22/14 20051/20044\n\tutil.enableField(dob.DOBYear.somExpression, false);\n\tutil.enableField(dob.DOBMonth.somExpression, false);\n\tutil.enableField(dob.DOBDay.somExpression, false);\n\t\n\tTypeOfRelationship.rawValue = null;\n\tPMFamilyName.rawValue = null;\n\tPMGivenName.rawValue = null;\n\tFrom.FromDate.rawValue = null;\n\t//CP1/22/14 20055/20041\n\tTo.ToDate.rawValue = null;\n\tdob.DOBYear.rawValue = null;\n\tdob.DOBMonth.rawValue = null;\n\tdob.DOBDay.rawValue = null;\n}\n\n//CPARK 9/24/13 22333 - NEED TO RELOCATE.  PPL MAY JUST CHANGE Q13.\nvalidateForm.checkCurrentPrevMaritalStat()\n",
        "//CPARK 3/14/12\tupd xpath\nif (!this.isNull)\n{\n\tcolor.markCorrect(this);\n\tcolor.markCorrect(No);\n\t//CPARK 7/10/13 GCMS100094545.\n\t//color.markUnRequired(this);\n\t//color.markUnRequired(No);\n\t\n\tutil.enableField(PMFamilyName.somExpression, true);\n\tutil.enableField(PMGivenName.somExpression, true);\n\tutil.enableField(TypeOfRelationship.somExpression, true);\n\tutil.enableField(From.FromDate.somExpression, true);\n\tutil.enableField(To.ToDate.somExpression, true);\n\t//CP1/22/14 20055/20041\n\tutil.enableField(dob.DOBYear.somExpression, true);\n\tutil.enableField(dob.DOBMonth.somExpression, true);\n\tutil.enableField(dob.DOBDay.somExpression, true);\n\t\n\tcolor.markRequired(PMFamilyName);\t\n\tcolor.markRequired(TypeOfRelationship);\n\tcolor.markRequired(From.FromDate);\n\tcolor.markRequired(To.ToDate);\n\t//CP 1/22/14 20055/20041\n\tcolor.markRequired(dob.DOBYear)\n\tcolor.markRequired(dob.DOBMonth)\n\tcolor.markRequired(dob.DOBDay)\n}\t\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.MaritalStatus.PrevMarriage.PMFamilyName": {
      "label": "Previous spouse — Family name",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.PMFamilyName",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateName(this);\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page2.MaritalStatus.PrevMarriage.PMGivenName": {
      "label": "Previous spouse — Given names",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.PMGivenName",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateName(this);\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page2.MaritalStatus.PrevMarriage.TypeOfRelationship": {
      "label": "Previous spouse — Relationship type",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.TypeOfRelationship",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.MaritalStatusHistoryList.MaritalStatusHistory[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "03": "Common-Law",
        "01": "Married"
      }
    },
    "form1.Page2.MaritalStatus.PrevMarriage.From.FromDate": {
      "label": "Previous spouse — From date",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.From.FromDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\nval.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), PreviouslyMarriedDates.FromYr, PreviouslyMarriedDates.FromMM, PreviouslyMarriedDates.FromDD, \"Today\");\n\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "form1.Page2.MaritalStatus.PrevMarriage.To.ToDate": {
      "label": "Previous spouse — To date",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.To.ToDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\nvar result = val.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), PreviouslyMarriedDates.ToYr, PreviouslyMarriedDates.ToMM, PreviouslyMarriedDates.ToDD, \"Today\");\n\nif (result[0])\n{\n\tif (!From.FromDate.isNull && !this.isNull)\n\t{\t\n\t\tval.validateDateWithHiddenFields(this, \">=\", From.FromDate.rawValue, PreviouslyMarriedDates.ToYr, PreviouslyMarriedDates.ToMM, PreviouslyMarriedDates.ToDD, \"FromTo\");\n\t}\n}\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": "previous_partner.from_date",
        "optional": false
      }
    },
    "form1.Page2.MaritalStatus.PrevMarriage.dob.DOBYear": {
      "label": "Previous spouse — Date of birth",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.dob.DOBYear",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDOBYYYY(this, Page1.ButtonsHeader.PrevAge);\n\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page2.MaritalStatus.PrevMarriage.dob.DOBMonth": {
      "label": "Previous spouse — Date of birth",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.dob.DOBMonth",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDOBMM(this, Page1.ButtonsHeader.PrevAge);\n\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page2.MaritalStatus.PrevMarriage.dob.DOBDay": {
      "label": "Previous spouse — Date of birth",
      "template_path": "form1.Page2.MaritalStatus.PrevMarriage.dob.DOBDay",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDOBDD(DOBYear, DOBMonth, this, Page1.ButtonsHeader.PrevAge);\n\n"
      ],
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page2.Languages.nativeLang": {
      "label": "Native language",
      "template_path": "form1.Page2.Languages.nativeLang",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ContactLanguageList.ContactLanguage[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "//french english\n/*if(this.rawValue == \"001\" || this.rawValue == \"002\")\n{\n\tutil.enableField(FreqLang.somExpression, false);\n \tcolor.markUnRequired(FreqLang);\n}\nelse if (this.rawValue == null)\n{\n\tutil.enableField(FreqLang.somExpression, false);\n \tcolor.markUnRequired(FreqLang);\t\n \tFreqLang.rawValue = null;\n}\nelse //Other lang\n{\n\tutil.enableField(FreqLang.somExpression, true);\n \tcolor.markRequired(FreqLang);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "089": "Ada",
        "501": "Adama",
        "228": "Afar",
        "004": "Afghan",
        "203": "Afrikaans",
        "502": "Agbor",
        "053": "Aka",
        "165": "Akan",
        "503": "Akim",
        "003": "Aklanon",
        "095": "Akra",
        "504": "Akwapim",
        "119": "Albanian",
        "505": "Albanian, Greece",
        "506": "Albanian, Italy",
        "217": "American Sign Lang.",
        "254": "Amharic",
        "250": "Arabic",
        "507": "Arabic Standard",
        "508": "Arabic, Algeria",
        "509": "Arabic, Chad",
        "510": "Arabic, Egypt",
        "511": "Arabic, Irak",
        "512": "Arabic, Lebanon, Levantine",
        "513": "Arabic, Libya",
        "514": "Arabic, Morocco",
        "515": "Arabic, Sudan",
        "516": "Arabic, Syria",
        "517": "Arabic, Tunisia",
        "518": "Arabic, Yemen, Judeo-Yemeni",
        "005": "Aranese",
        "102": "Armenian",
        "519": "Armenian, West",
        "520": "Armenian, Western",
        "171": "Ashanti",
        "255": "Assyrian",
        "521": "Atwot",
        "522": "Azerbaijani, North",
        "523": "Azerbaijani, South",
        "085": "Azeri",
        "524": "Bajuni",
        "525": "Balochi East Pak",
        "526": "Balochi South Pak",
        "527": "Balochi West Pak",
        "528": "Baluchi",
        "008": "Bambara",
        "529": "Bamileke",
        "202": "Bantu",
        "260": "Baoule",
        "530": "Barawa",
        "531": "Barbawa",
        "532": "Bassa",
        "739": "Belarusian",
        "006": "Belen",
        "160": "Bemba",
        "322": "Bengali",
        "533": "Bengali Sylhetti",
        "169": "Beni",
        "231": "Benin",
        "010": "Berber",
        "009": "Bikol",
        "212": "Bini",
        "180": "Bissa",
        "534": "Boguni",
        "011": "Bontok",
        "535": "Bosnian",
        "536": "Brava",
        "152": "Breton",
        "537": "British Sign Language",
        "538": "Brong",
        "539": "Buganda",
        "107": "Bulgarian",
        "308": "Burmese",
        "132": "Busan",
        "540": "Cambodian",
        "300": "Cantonese",
        "541": "Capizeno",
        "121": "Catalan",
        "183": "Cebuano",
        "542": "Chadian Sign Language",
        "216": "Chakma",
        "256": "Chaldean",
        "543": "Changle",
        "211": "Chaocho",
        "015": "Chavacano",
        "544": "Chechen",
        "222": "Chichewa",
        "299": "Chinese",
        "545": "Chinese, Min Nan",
        "546": "Chinese, Yue",
        "547": "Chinese, Yuh",
        "126": "Chowchau",
        "548": "Chung Shan",
        "549": "Comorian",
        "012": "Concani",
        "400": "Creole",
        "550": "Creole, Haiti",
        "098": "Croatian",
        "113": "Czech",
        "551": "Dangbe",
        "142": "Danish",
        "195": "Dari",
        "552": "Dari, Peve",
        "553": "Dari/Farsi, Eastern",
        "090": "Deaf-mute",
        "554": "Dendi",
        "555": "Dhopadhola",
        "556": "Diakanke",
        "557": "Dinka, Northeastern",
        "558": "Dinka, Northwestern",
        "559": "Dinka, South Central",
        "560": "Dinka, Southern",
        "561": "Dinka, Southwestern, Twi, Tuic",
        "135": "Dioula",
        "562": "Divehi",
        "563": "Divehi, Maldivian",
        "564": "Dogri",
        "117": "Dutch",
        "565": "Eastern Armenian",
        "210": "Edo",
        "566": "Edo, Kailo, Ledo",
        "177": "Efik",
        "001": "English",
        "567": "Enping",
        "568": "Eritrean",
        "178": "Esan",
        "103": "Estonian",
        "166": "Ewe",
        "192": "Facilitator/Articulator",
        "232": "Fang",
        "167": "Fanti",
        "223": "Farsi",
        "569": "Farsi, Western",
        "570": "Fiji",
        "571": "Findhi",
        "141": "Finnish",
        "118": "Flemish",
        "572": "Fon",
        "017": "Foochow",
        "023": "Foullah",
        "573": "Frafra",
        "574": "Frafra, Gurenne",
        "002": "French",
        "575": "Fujian",
        "181": "Fukien",
        "170": "Fulani",
        "091": "Fuqing",
        "576": "Futa",
        "168": "Ga",
        "577": "Ga, Adangme-Krobo",
        "151": "Gaelic",
        "578": "Georgian",
        "116": "German",
        "579": "Gio",
        "580": "Gio, Gio-Dan",
        "130": "Greek",
        "138": "Guerze",
        "330": "Gujarati",
        "581": "Gurage",
        "582": "Gurage, East",
        "583": "Gurage, North",
        "584": "Gurage, West",
        "585": "Guyanese",
        "586": "Guyroti",
        "587": "Gypsy",
        "741": "Hadiyya",
        "020": "Hainanese",
        "298": "Hakka",
        "018": "Harara",
        "019": "Harary",
        "215": "Hargar",
        "029": "Hasanya",
        "200": "Hausa",
        "253": "Hebrew",
        "588": "Hebrew, Yemen",
        "589": "Henan/Jinyu",
        "021": "Hiligaynon",
        "321": "Hindi",
        "590": "Hindi Dogri",
        "591": "Hindi, Fijian",
        "592": "Hindi, Hin, Nyaheun",
        "073": "Hindko",
        "593": "Hindko, Northern",
        "594": "Hindko, Southern",
        "595": "Hindu, Hindi, Caribbean",
        "182": "Hokkien",
        "596": "Hubei",
        "597": "Huizhou/Yanzhou",
        "598": "Hunan/Xiang",
        "112": "Hungarian",
        "022": "Ibibio",
        "335": "Icelandic",
        "205": "Igbo",
        "024": "Igorot",
        "184": "Iiongo",
        "599": "Ika",
        "025": "Ilican",
        "600": "Ilocano",
        "304": "Indonesian",
        "601": "Interp. Not Required",
        "602": "Ishen",
        "603": "Isoko",
        "123": "Italian",
        "604": "Itshekiri",
        "225": "Izi",
        "605": "Jadgali, Pakistan",
        "606": "Jamaican",
        "303": "Japanese",
        "030": "Javanese",
        "607": "Jianxi",
        "040": "Jolay",
        "608": "Kabyle",
        "900": "Kacchi",
        "609": "Kaiping",
        "026": "Kakwa",
        "185": "Kandahari",
        "610": "Kangri, India",
        "611": "Kangri, Kanjari",
        "174": "Kankani",
        "612": "Kannada",
        "613": "Kaonde, Dari",
        "027": "Kashmiri",
        "740": "Kazakh",
        "614": "Kepelle",
        "311": "Khmer",
        "615": "Kiboma",
        "186": "Kihavu",
        "129": "Kikongo",
        "616": "Kikuyu",
        "617": "Kikuyu, Gikuyu",
        "618": "Kinaraya",
        "191": "Kinyarwanda",
        "619": "Kinyarwanda, Rwanda",
        "031": "Kirundi",
        "620": "Kirundi, Rundi",
        "213": "Kiswahili",
        "028": "Konkani",
        "305": "Korean",
        "042": "Krio",
        "621": "Krobo",
        "622": "Kru, Klao",
        "623": "Kru, Krumen, Tepo",
        "252": "Kurdish",
        "624": "Kurdish Bandinani, Behdini",
        "625": "Kurdish-Central, Kurdi, Sorani",
        "626": "Kurdish-Northern, Kurmanji,",
        "627": "Kwale, Nigeria",
        "628": "Kwale, Papua",
        "312": "Laotian",
        "629": "Lateh",
        "104": "Latvian",
        "124": "Lebanese",
        "032": "Lengie",
        "630": "Limba",
        "044": "Lingala",
        "631": "Linyawanda",
        "105": "Lithuanian",
        "139": "Lowma",
        "632": "Luba-Kasai",
        "033": "Luganda",
        "034": "Lugisu",
        "633": "Luo",
        "035": "Lutoro",
        "111": "Macedonian",
        "036": "Macena",
        "634": "Maghreb",
        "137": "Mahou",
        "037": "Makonde",
        "226": "Makua",
        "046": "Malagasy",
        "310": "Malay",
        "323": "Malayalam",
        "635": "Malgache, Malagasy",
        "136": "Maligo",
        "636": "Malinke, Jula",
        "188": "Maltese",
        "301": "Mandarin",
        "637": "Mandiga, Mandinga",
        "172": "Mandingo",
        "638": "Mandingo, Maninka",
        "639": "Mandingo, Manya",
        "224": "Maninka",
        "640": "Mano",
        "641": "Marakha",
        "332": "Marathi",
        "500": "Masaba",
        "642": "Mashi",
        "643": "Maymay, Somalia",
        "050": "Mende",
        "644": "Meru",
        "133": "Mina",
        "645": "Mina, Gen-Gbe",
        "646": "Mirpuri",
        "038": "Mizo",
        "647": "Moldovan",
        "648": "Moldovan, Romanian",
        "403": "Mongolian",
        "649": "Mongolian, Halh",
        "650": "Moor, Bimoba",
        "134": "Moore",
        "651": "Moore, Burkina",
        "652": "Moore, Waropen",
        "653": "Morisyen",
        "655": "Nahuatl, Classical",
        "656": "Navajo",
        "654": "Ndebele",
        "657": "Ndebele, South Africa",
        "658": "Ndebele, Zimbabwe",
        "659": "Ndjamena",
        "320": "Nepali",
        "660": "Nigerian, Pidgin",
        "661": "Nigerien",
        "662": "Nobiin",
        "143": "Norwegian",
        "663": "Nuer",
        "664": "Nyanja",
        "051": "Nzema",
        "233": "Okpe",
        "665": "Ora",
        "333": "Oriya",
        "218": "Oromo",
        "666": "Oromo, Borana-Arsi-Gujii",
        "667": "Oromo, Qotu",
        "668": "Oromo, Qotu, West Central",
        "039": "Osal",
        "499": "Other",
        "669": "Ouighour",
        "041": "Pahari",
        "043": "Pampango",
        "670": "Pangasinan",
        "326": "Pashto",
        "671": "Pashto, Central",
        "672": "Pashto, Southern",
        "251": "Persian",
        "219": "Peul",
        "673": "Peul, Benin-Togo",
        "674": "Peul, Bororro",
        "675": "Peul, Fulfulde, Adamawa",
        "676": "Peul, Fulfulde, Jelgoore",
        "045": "Phuockien",
        "083": "Pidgin",
        "677": "Pidgin English",
        "678": "Piugon",
        "115": "Polish",
        "122": "Portuguese",
        "679": "Portuguese, Angola",
        "680": "Portuguese, Brazil",
        "681": "Portuguese, Guinea-Bissau",
        "087": "Poular",
        "324": "Punjabi",
        "682": "Pushta",
        "683": "Pushta, Pushto",
        "684": "Pu-Xian",
        "685": "Quechua",
        "686": "Rindre",
        "901": "Rohingya",
        "687": "Romani, Campathian",
        "688": "Romani, Carpathian",
        "689": "Romani, Cigaly",
        "690": "Romani, Cigany",
        "691": "Romani, Vlach",
        "692": "Romani, Vlach, Gypsy",
        "108": "Romanian",
        "693": "Ronga",
        "047": "Rukiga",
        "048": "Runyankole",
        "101": "Russian",
        "402": "Samoan",
        "694": "Samoli",
        "695": "Sango",
        "696": "Santi",
        "697": "Sarahuley",
        "698": "Saraiki",
        "061": "Scoula",
        "196": "Sechuan",
        "699": "Sefwi",
        "099": "Serbian",
        "109": "Serbo-Croatian",
        "052": "Sesotho",
        "179": "Seswi",
        "738": "Setswana",
        "088": "Seychelles",
        "700": "Seychelles,Creole Fre.,Seselwa",
        "701": "Shai",
        "057": "Shan",
        "702": "Shan Dong",
        "703": "Shan Tao",
        "214": "Shanghainese",
        "013": "Shansai",
        "704": "Shanxi",
        "705": "Shona",
        "706": "Sichuan/Szechuan",
        "707": "Sign Language French",
        "128": "Sindhi",
        "328": "Sinhala",
        "708": "Siyap",
        "114": "Slovak",
        "110": "Slovenian",
        "209": "Somali",
        "709": "Somba",
        "175": "Soninke",
        "710": "Soninke, Marakha",
        "055": "Sotho",
        "711": "Sotho, Northern",
        "712": "Sotho, Southern",
        "120": "Spanish",
        "190": "Suesue",
        "056": "Sukuma",
        "065": "Susu",
        "201": "Swahili",
        "713": "Swahili/Congo",
        "714": "Swahili/Kenya",
        "715": "Swati",
        "716": "Swatow",
        "140": "Swedish",
        "309": "Tagalog",
        "059": "Taichew",
        "062": "Taishanese",
        "717": "Taiwanese",
        "718": "Tajiki",
        "327": "Tamil",
        "194": "Tari",
        "719": "Tatar",
        "189": "Tatshanese",
        "334": "Telugu",
        "720": "Temne",
        "060": "Teochew",
        "307": "Thai",
        "297": "Tibetan",
        "054": "Tichiew",
        "721": "Tigre",
        "722": "Tigrea, Tigre",
        "162": "Tigrinya",
        "176": "Timini",
        "082": "Tiv",
        "049": "Tooro",
        "220": "Tshiluba",
        "131": "Turkish",
        "723": "Turkmen",
        "724": "Turkoman",
        "125": "Twi",
        "234": "Uhrobo",
        "161": "Uigrigma",
        "106": "Ukrainian",
        "725": "Ukwuani, Ukwuani-Aboh",
        "063": "Umbundu",
        "064": "Unama",
        "325": "Urdu",
        "257": "Uzbek",
        "306": "Vietnamese",
        "066": "Visayan",
        "067": "Waray-Waray",
        "150": "Welsh",
        "726": "Wenzhou",
        "173": "Wolof",
        "727": "Xangawe",
        "206": "Xhosa",
        "728": "Xin Hui",
        "729": "Xitswa",
        "730": "Xitswa, Twsa",
        "731": "Yacooba",
        "221": "Yao",
        "732": "Yemenite",
        "197": "Yiboe",
        "100": "Yiddish",
        "733": "Yinping",
        "207": "Yoruba",
        "734": "Yue Yang",
        "735": "Yugoslavian",
        "736": "Zaza",
        "737": "Zaza, Kirmanjki",
        "068": "Zshiluba",
        "069": "Zuganda",
        "208": "Zulu"
      }
    },
    "form1.Page2.Languages.communicateLang": {
      "label": "Communication in English/French",
      "template_path": "form1.Page2.Languages.communicateLang",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.AbleCommunicateEnglishOrFrenchList.AbleCommunicateEnglishOrFrench[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "\n  if(this.rawValue == \"Both\"){  \n\t\tutil.enableField(FreqLang.somExpression, true);\n \t\tcolor.markRequired(FreqLang);\t\n \t}\n \telse if (this.rawValue == null){\n \t\tutil.enableField(FreqLang.somExpression, false);\n \t\tcolor.markUnRequired(FreqLang);\t\n \t\tFreqLang.rawValue = null;\n \t}\n \telse{ //Other lang\n \t\tutil.enableField(FreqLang.somExpression, false);\n \t\tcolor.markUnRequired(FreqLang);\t\n\n \t}\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "English": "English",
        "French": "French",
        "Both": "Both",
        "Neither": "Neither"
      }
    },
    "form1.Page2.Languages.FreqLang": {
      "label": "Language most at ease",
      "template_path": "form1.Page2.Languages.FreqLang",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.PreferenceLanguageList.PreferenceLanguage[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n\n"
      ],
      "rules": {
        "gate": "both_languages",
        "optional": false
      },
      "choices": {
        "01": "English",
        "02": "French"
      }
    },
    "form1.Page2.Languages.LangTestIndicator": {
      "label": "Language test taken",
      "template_path": "form1.Page2.Languages.LangTestIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(No);\n\n",
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "Y",
        "N"
      ]
    },
    "form1.Page2.Passport.PassportNum": {
      "label": "Passport — Number",
      "template_path": "form1.Page2.Passport.PassportNum",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePassportNum(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 20
    },
    "form1.Page2.Passport.CountryofIssue": {
      "label": "Passport — Issuing country",
      "template_path": "form1.Page2.Passport.CountryofIssue",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryTravelDocumentList.CountryTravelDocument[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "\n//April032018 - Added for CR 330212  \n\tif(this.rawValue == \"203\") \n\t{ \n\t\tif(TaiwanPIN.isNull)\n\t\t{\n\t\t\tutil.enableField(TaiwanPIN.No.somExpression, true);\n \t\t\tcolor.markRequired(TaiwanPIN.No);\n \t\t\tcolor.markIncorrect(TaiwanPIN.No);\n \t\t\tutil.enableField(TaiwanPIN.Yes.somExpression, true);\n \t\t\tcolor.markRequired(TaiwanPIN.Yes);\t\n \t\t\tcolor.markIncorrect(TaiwanPIN.Yes);\n \t\t\t\n \t\t\tutil.enableField(IsraelPassportIndicator.No.somExpression, false);\n \t\t\tcolor.markUnRequired(IsraelPassportIndicator.No);\n \t\t\tutil.enableField(IsraelPassportIndicator.Yes.somExpression, false);\n \t\t\tcolor.markUnRequired(IsraelPassportIndicator.Yes);\n \t\t}\n \t\t \t\t\n \t}\n \telse if(this.rawValue == \"206\")\n \t{ \n\t\tif(IsraelPassportIndicator.isNull)\n\t\t{\n\t\t\tutil.enableField(IsraelPassportIndicator.No.somExpression, true);\n \t\t\tcolor.markRequired(IsraelPassportIndicator.No);\n \t\t\tcolor.markIncorrect(IsraelPassportIndicator.No);\n \t\t\tutil.enableField(IsraelPassportIndicator.Yes.somExpression, true);\n \t\t\tcolor.markRequired(IsraelPassportIndicator.Yes);\n \t\t\tcolor.markIncorrect(IsraelPassportIndicator.Yes);\t\n \t\t\tutil.enableField(TaiwanPIN.No.somExpression, false);\n \t\t\tcolor.markUnRequired(TaiwanPIN.No);\n \t\t\tutil.enableField(TaiwanPIN.Yes.somExpression, false);\n \t\t\tcolor.markUnRequired(TaiwanPIN.Yes);\n \t\t\t\n \t\t\t\n \t\t}\n \t}\n \telse{ //Other lang\n \t\t\n \t\tutil.enableField(TaiwanPIN.No.somExpression, false);\n \t\tcolor.markUnRequired(TaiwanPIN.No);\n \t\tutil.enableField(TaiwanPIN.Yes.somExpression, false);\n \t\tcolor.markUnRequired(TaiwanPIN.Yes);\n \t\t\n \t\tutil.enableField(IsraelPassportIndicator.No.somExpression, false);\n \t\tcolor.markUnRequired(IsraelPassportIndicator.No);\n \t\tutil.enableField(IsraelPassportIndicator.Yes.somExpression, false);\n \t\tcolor.markUnRequired(IsraelPassportIndicator.Yes);\n\n \t}\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "AFG (Afghanistan)",
        "151": "AGO (Angola)",
        "081": "ALB (Albania)",
        "082": "AND (Andorra)",
        "620": "ANG (Anguilla)",
        "280": "ARE (United Arab Emirates)",
        "703": "ARG (Argentina)",
        "049": "ARM (Armenia)",
        "621": "ATG (Antigua And Barbuda)",
        "305": "AUS (Australia)",
        "011": "AUT (Austria)",
        "050": "AZE (Azerbaijan)",
        "154": "BDI (Burundi)",
        "012": "BEL (Belgium)",
        "160": "BEN (Benin)",
        "188": "BFA (Burkina Faso)",
        "212": "BGD (Bangladesh)",
        "083": "BGR (Bulgaria)",
        "253": "BHR (Bahrain)",
        "622": "BHS (Bahamas)",
        "048": "BIH (Bosnia and Herzegovina)",
        "051": "BLR (Belarus)",
        "541": "BLZ (Belize)",
        "601": "BMU (Bermuda)",
        "751": "BOL (Bolivia)",
        "709": "BRA (Brazil)",
        "610": "BRB (Barbados)",
        "255": "BRN (Brunei Darussalam)",
        "254": "BTN (Bhutan)",
        "153": "BWA (Botswana)",
        "157": "CAF (Central African Republic)",
        "511": "CAN (Canada)",
        "041": "CHE (Switzerland)",
        "721": "CHL (Chile)",
        "200": "CHN (China (Hong Kong SAR))",
        "198": "CHN (China (Macao SAR))",
        "202": "CHN (China)",
        "169": "CIV (Ivory Coast)",
        "155": "CMR (Cameroon)",
        "158": "COD (Democratic Rep. of Congo)",
        "159": "COG (Republic of Congo)",
        "722": "COL (Colombia)",
        "905": "COM (Comoros)",
        "911": "CPV (Cabo Verde)",
        "542": "CRI (Costa Rica)",
        "650": "CUB (Cuba)",
        "624": "CYM (Cayman Islands)",
        "221": "CYP (Cyprus)",
        "015": "CZE (Czech Republic)",
        "024": "D (Germany, Federal Republic Of)",
        "183": "DJI (Djibouti)",
        "625": "DMA (Dominica)",
        "017": "DNK (Denmark)",
        "651": "DOM (Dominican Republic)",
        "131": "DZA (Algeria)",
        "753": "ECU (Ecuador)",
        "101": "EGY (Egypt)",
        "162": "ERI (Eritrea)",
        "037": "ESP (Spain)",
        "018": "EST (Estonia)",
        "161": "ETH (Ethiopia)",
        "982": "EUE (European Union)",
        "021": "FIN (Finland)",
        "801": "FJI (Fiji)",
        "022": "FRA (France)",
        "835": "FSM (Federated States of Micronesia)",
        "163": "GAB (Gabon)",
        "005": "GBD (UK - Brit. overseas terr.)",
        "010": "GBN (UK - Brit. Ntl. Overseas)",
        "004": "GBO (UK - Brit. overseas citizen)",
        "917": "GBP (UK - Brit. protected person)",
        "003": "GBR (UK - British citizen)",
        "001": "GBS (UK - British subject)",
        "052": "GEO (Georgia)",
        "165": "GHA (Ghana)",
        "166": "GIN (Guinea)",
        "164": "GMB (Gambia)",
        "167": "GNB (Guinea-Bissau)",
        "178": "GNQ (Equatorial Guinea)",
        "025": "GRC (Greece)",
        "626": "GRD (Grenada)",
        "544": "GTM (Guatemala)",
        "711": "GUY (Guyana)",
        "545": "HND (Honduras)",
        "043": "HRV (Croatia)",
        "654": "HTI (Haiti)",
        "026": "HUN (Hungary)",
        "222": "IDN (Indonesia)",
        "205": "IND (India)",
        "027": "IRL (Ireland)",
        "223": "IRN (Iran)",
        "224": "IRQ (Iraq)",
        "085": "ISL (Iceland)",
        "206": "ISR (Israel)",
        "028": "ITA (Italy)",
        "602": "JAM (Jamaica)",
        "225": "JOR (Jordan)",
        "207": "JPN (Japan)",
        "053": "KAZ (Kazakhstan)",
        "132": "KEN (Kenya)",
        "054": "KGZ (Kyrgyzstan)",
        "256": "KHM (Cambodia)",
        "831": "KIR (Kiribati)",
        "629": "KNA (Saint Kitts and Nevis)",
        "258": "KOR (Korea, South)",
        "226": "KWT (Kuwait)",
        "260": "LAO (Laos)",
        "208": "LBN (Lebanon)",
        "170": "LBR (Liberia)",
        "171": "LBY (Libya)",
        "630": "LCA (Saint Lucia)",
        "086": "LIE (Liechtenstein)",
        "201": "LKA (Sri Lanka)",
        "152": "LSO (Lesotho)",
        "020": "LTU (Lithuania)",
        "013": "LUX (Luxembourg)",
        "019": "LVA (Latvia)",
        "133": "MAR (Morocco)",
        "087": "MCO (Monaco)",
        "055": "MDA (Moldova)",
        "172": "MDG (Madagascar)",
        "901": "MDV (Maldives)",
        "501": "MEX (Mexico)",
        "834": "MHL (Marshall Islands)",
        "070": "MKD (Macedonia)",
        "173": "MLI (Mali)",
        "030": "MLT (Malta)",
        "241": "MMR (Burma (Myanmar))",
        "063": "MNE (Montenegro)",
        "262": "MNG (Mongolia)",
        "175": "MOZ (Mozambique)",
        "174": "MRT (Mauritania)",
        "627": "MSR (Montserrat)",
        "902": "MUS (Mauritius)",
        "111": "MWI (Malawi)",
        "242": "MYS (Malaysia)",
        "122": "NAM (Namibia)",
        "176": "NER (Niger)",
        "177": "NGA (Nigeria)",
        "546": "NIC (Nicaragua)",
        "031": "NLD (Netherlands, The)",
        "032": "NOR (Norway)",
        "264": "NPL (Nepal)",
        "341": "NRU (Nauru)",
        "339": "NZL (New Zealand)",
        "263": "OMN (Oman)",
        "209": "PAK (Pakistan)",
        "547": "PAN (Panama)",
        "723": "PER (Peru)",
        "227": "PHL (Philippines)",
        "836": "PLW (Republic of Palau)",
        "342": "PNG (Papua New Guinea)",
        "033": "POL (Poland)",
        "257": "PRK (Korea, North (DPRK))",
        "034": "PRT (Portugal)",
        "755": "PRY (Paraguay)",
        "213": "PSE (Palestinian Authority)",
        "265": "QAT (Qatar)",
        "064": "RKS (Kosovo)",
        "088": "ROU (Romania)",
        "056": "RUS (Russia)",
        "179": "RWA (Rwanda)",
        "231": "SAU (Saudi Arabia)",
        "185": "SDN (Sudan)",
        "180": "SEN (Senegal)",
        "246": "SGP (Singapore)",
        "915": "SHN (Saint Helena)",
        "824": "SLB (Solomon Islands)",
        "181": "SLE (Sierra Leone)",
        "543": "SLV (El Salvador)",
        "089": "SMR (San Marino)",
        "182": "SOM (Somalia)",
        "062": "SRB (Serbia, Republic Of)",
        "189": "SSD (South Sudan)",
        "914": "STP (Sao Tome and Principe)",
        "752": "SUR (Suriname)",
        "016": "SVK (Slovakia)",
        "047": "SVN (Slovenia)",
        "040": "SWE (Sweden)",
        "186": "SWZ (Swaziland)",
        "904": "SYC (Seychelles)",
        "210": "SYR (Syria)",
        "632": "TCA (Turks and Caicos Islands)",
        "156": "TCD (Chad)",
        "187": "TGO (Togo)",
        "267": "THA (Thailand)",
        "057": "TJK (Tajikistan)",
        "058": "TKM (Turkmenistan)",
        "916": "TLS (East Timor)",
        "846": "TON (Tonga)",
        "605": "TTO (Trinidad and Tobago)",
        "135": "TUN (Tunisia)",
        "045": "TUR (Turkey)",
        "826": "TUV (Tuvalu)",
        "203": "TWN (Taiwan)",
        "130": "TZA (Tanzania)",
        "136": "UGA (Uganda)",
        "059": "UKR (Ukraine)",
        "981": "UNA (UN specialized agency)",
        "980": "UNO (UN or official)",
        "724": "URY (Uruguay)",
        "461": "USA (United States of America)",
        "060": "UZB (Uzbekistan)",
        "090": "VAT (Vatican City State)",
        "631": "VCT (St. Vincent and the Grenadines)",
        "725": "VEN (Venezuela)",
        "633": "VGB (British Virgin Islands)",
        "270": "VNM (Vietnam)",
        "823": "VUT (Vanuatu)",
        "844": "WSM (Samoa)",
        "273": "YEM (Yemen)",
        "121": "ZAF (South Africa, Republic Of)",
        "112": "ZMB (Zambia)",
        "113": "ZWE (Zimbabwe)"
      }
    },
    "form1.Page2.Passport.IssueDate": {
      "label": "Passport — Issue date",
      "template_path": "form1.Page2.Passport.IssueDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\n// CPARK 3/28 upd call with new param\nval.validateDateWithHiddenFields(this, \"<=\", utilDates.getToday(), Issue.YYYY, Issue.MM, Issue.DD, \"Today\");\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "form1.Page2.Passport.ExpiryDate": {
      "label": "Passport — Expiry date",
      "template_path": "form1.Page2.Passport.ExpiryDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\n//Must be greater than from date\n//CPARK 3/28/12 upd with new param\nval.validateDateWithHiddenFields(this, \">\", utilDates.getToday(), Expiry.YYYY, Expiry.MM, Expiry.DD, \"Today\");\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "after_today": true,
        "compare": "passport.issue_date",
        "optional": false
      }
    },
    "form1.Page2.natID.natIDdocs.DocNum.DocNum": {
      "label": "National identity document — Number",
      "template_path": "form1.Page2.natID.natIDdocs.DocNum.DocNum",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePassportNum(this);\n\n"
      ],
      "rules": {
        "gate": "has_national_id",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 20
    },
    "form1.Page2.natID.natIDdocs.CountryofIssue.CountryofIssue": {
      "label": "National identity document — Issuing country",
      "template_path": "form1.Page2.natID.natIDdocs.CountryofIssue.CountryofIssue",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryTravelDocumentList.CountryTravelDocument[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n\n"
      ],
      "rules": {
        "gate": "has_national_id",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "AFG (Afghanistan)",
        "151": "AGO (Angola)",
        "081": "ALB (Albania)",
        "082": "AND (Andorra)",
        "620": "ANG (Anguilla)",
        "280": "ARE (United Arab Emirates)",
        "703": "ARG (Argentina)",
        "049": "ARM (Armenia)",
        "621": "ATG (Antigua And Barbuda)",
        "305": "AUS (Australia)",
        "011": "AUT (Austria)",
        "050": "AZE (Azerbaijan)",
        "154": "BDI (Burundi)",
        "012": "BEL (Belgium)",
        "160": "BEN (Benin)",
        "188": "BFA (Burkina Faso)",
        "212": "BGD (Bangladesh)",
        "083": "BGR (Bulgaria)",
        "253": "BHR (Bahrain)",
        "622": "BHS (Bahamas)",
        "048": "BIH (Bosnia and Herzegovina)",
        "051": "BLR (Belarus)",
        "541": "BLZ (Belize)",
        "601": "BMU (Bermuda)",
        "751": "BOL (Bolivia)",
        "709": "BRA (Brazil)",
        "610": "BRB (Barbados)",
        "255": "BRN (Brunei Darussalam)",
        "254": "BTN (Bhutan)",
        "153": "BWA (Botswana)",
        "157": "CAF (Central African Republic)",
        "511": "CAN (Canada)",
        "041": "CHE (Switzerland)",
        "721": "CHL (Chile)",
        "200": "CHN (China (Hong Kong SAR))",
        "198": "CHN (China (Macao SAR))",
        "202": "CHN (China)",
        "169": "CIV (Ivory Coast)",
        "155": "CMR (Cameroon)",
        "158": "COD (Democratic Rep. of Congo)",
        "159": "COG (Republic of Congo)",
        "722": "COL (Colombia)",
        "905": "COM (Comoros)",
        "911": "CPV (Cabo Verde)",
        "542": "CRI (Costa Rica)",
        "650": "CUB (Cuba)",
        "624": "CYM (Cayman Islands)",
        "221": "CYP (Cyprus)",
        "015": "CZE (Czech Republic)",
        "024": "D (Germany, Federal Republic Of)",
        "183": "DJI (Djibouti)",
        "625": "DMA (Dominica)",
        "017": "DNK (Denmark)",
        "651": "DOM (Dominican Republic)",
        "131": "DZA (Algeria)",
        "753": "ECU (Ecuador)",
        "101": "EGY (Egypt)",
        "162": "ERI (Eritrea)",
        "037": "ESP (Spain)",
        "018": "EST (Estonia)",
        "161": "ETH (Ethiopia)",
        "982": "EUE (European Union)",
        "021": "FIN (Finland)",
        "801": "FJI (Fiji)",
        "022": "FRA (France)",
        "835": "FSM (Federated States of Micronesia)",
        "163": "GAB (Gabon)",
        "005": "GBD (UK - Brit. overseas terr.)",
        "010": "GBN (UK - Brit. Ntl. Overseas)",
        "004": "GBO (UK - Brit. overseas citizen)",
        "917": "GBP (UK - Brit. protected person)",
        "003": "GBR (UK - British citizen)",
        "001": "GBS (UK - British subject)",
        "052": "GEO (Georgia)",
        "165": "GHA (Ghana)",
        "166": "GIN (Guinea)",
        "164": "GMB (Gambia)",
        "167": "GNB (Guinea-Bissau)",
        "178": "GNQ (Equatorial Guinea)",
        "025": "GRC (Greece)",
        "626": "GRD (Grenada)",
        "544": "GTM (Guatemala)",
        "711": "GUY (Guyana)",
        "545": "HND (Honduras)",
        "043": "HRV (Croatia)",
        "654": "HTI (Haiti)",
        "026": "HUN (Hungary)",
        "222": "IDN (Indonesia)",
        "205": "IND (India)",
        "027": "IRL (Ireland)",
        "223": "IRN (Iran)",
        "224": "IRQ (Iraq)",
        "085": "ISL (Iceland)",
        "206": "ISR (Israel)",
        "028": "ITA (Italy)",
        "602": "JAM (Jamaica)",
        "225": "JOR (Jordan)",
        "207": "JPN (Japan)",
        "053": "KAZ (Kazakhstan)",
        "132": "KEN (Kenya)",
        "054": "KGZ (Kyrgyzstan)",
        "256": "KHM (Cambodia)",
        "831": "KIR (Kiribati)",
        "629": "KNA (Saint Kitts and Nevis)",
        "258": "KOR (Korea, South)",
        "226": "KWT (Kuwait)",
        "260": "LAO (Laos)",
        "208": "LBN (Lebanon)",
        "170": "LBR (Liberia)",
        "171": "LBY (Libya)",
        "630": "LCA (Saint Lucia)",
        "086": "LIE (Liechtenstein)",
        "201": "LKA (Sri Lanka)",
        "152": "LSO (Lesotho)",
        "020": "LTU (Lithuania)",
        "013": "LUX (Luxembourg)",
        "019": "LVA (Latvia)",
        "133": "MAR (Morocco)",
        "087": "MCO (Monaco)",
        "055": "MDA (Moldova)",
        "172": "MDG (Madagascar)",
        "901": "MDV (Maldives)",
        "501": "MEX (Mexico)",
        "834": "MHL (Marshall Islands)",
        "070": "MKD (Macedonia)",
        "173": "MLI (Mali)",
        "030": "MLT (Malta)",
        "241": "MMR (Burma (Myanmar))",
        "063": "MNE (Montenegro)",
        "262": "MNG (Mongolia)",
        "175": "MOZ (Mozambique)",
        "174": "MRT (Mauritania)",
        "627": "MSR (Montserrat)",
        "902": "MUS (Mauritius)",
        "111": "MWI (Malawi)",
        "242": "MYS (Malaysia)",
        "122": "NAM (Namibia)",
        "176": "NER (Niger)",
        "177": "NGA (Nigeria)",
        "546": "NIC (Nicaragua)",
        "031": "NLD (Netherlands, The)",
        "032": "NOR (Norway)",
        "264": "NPL (Nepal)",
        "341": "NRU (Nauru)",
        "339": "NZL (New Zealand)",
        "263": "OMN (Oman)",
        "209": "PAK (Pakistan)",
        "547": "PAN (Panama)",
        "723": "PER (Peru)",
        "227": "PHL (Philippines)",
        "836": "PLW (Republic of Palau)",
        "342": "PNG (Papua New Guinea)",
        "033": "POL (Poland)",
        "257": "PRK (Korea, North (DPRK))",
        "034": "PRT (Portugal)",
        "755": "PRY (Paraguay)",
        "213": "PSE (Palestinian Authority)",
        "265": "QAT (Qatar)",
        "064": "RKS (Kosovo)",
        "088": "ROU (Romania)",
        "056": "RUS (Russia)",
        "179": "RWA (Rwanda)",
        "231": "SAU (Saudi Arabia)",
        "185": "SDN (Sudan)",
        "180": "SEN (Senegal)",
        "246": "SGP (Singapore)",
        "915": "SHN (Saint Helena)",
        "824": "SLB (Solomon Islands)",
        "181": "SLE (Sierra Leone)",
        "543": "SLV (El Salvador)",
        "089": "SMR (San Marino)",
        "182": "SOM (Somalia)",
        "062": "SRB (Serbia, Republic Of)",
        "189": "SSD (South Sudan)",
        "914": "STP (Sao Tome and Principe)",
        "752": "SUR (Suriname)",
        "016": "SVK (Slovakia)",
        "047": "SVN (Slovenia)",
        "040": "SWE (Sweden)",
        "186": "SWZ (Swaziland)",
        "904": "SYC (Seychelles)",
        "210": "SYR (Syria)",
        "632": "TCA (Turks and Caicos Islands)",
        "156": "TCD (Chad)",
        "187": "TGO (Togo)",
        "267": "THA (Thailand)",
        "057": "TJK (Tajikistan)",
        "058": "TKM (Turkmenistan)",
        "916": "TLS (East Timor)",
        "846": "TON (Tonga)",
        "605": "TTO (Trinidad and Tobago)",
        "135": "TUN (Tunisia)",
        "045": "TUR (Turkey)",
        "826": "TUV (Tuvalu)",
        "203": "TWN (Taiwan)",
        "130": "TZA (Tanzania)",
        "136": "UGA (Uganda)",
        "059": "UKR (Ukraine)",
        "981": "UNA (UN specialized agency)",
        "980": "UNO (UN or official)",
        "724": "URY (Uruguay)",
        "461": "USA (United States of America)",
        "060": "UZB (Uzbekistan)",
        "090": "VAT (Vatican City State)",
        "631": "VCT (St. Vincent and the Grenadines)",
        "725": "VEN (Venezuela)",
        "633": "VGB (British Virgin Islands)",
        "270": "VNM (Vietnam)",
        "823": "VUT (Vanuatu)",
        "844": "WSM (Samoa)",
        "273": "YEM (Yemen)",
        "121": "ZAF (South Africa, Republic Of)",
        "112": "ZMB (Zambia)",
        "113": "ZWE (Zimbabwe)"
      }
    },
    "form1.Page2.natID.natIDdocs.IssueDate.IssueDate": {
      "label": "National identity document — Issue date",
      "template_path": "form1.Page2.natID.natIDdocs.IssueDate.IssueDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//val.validateDate(this, \"<=\", utilDates.getToday(), \"Today\");\n\n//CZ/11/2018/CR352621\nif (!this.isNull && (this.rawValue <= utilDates.getToday())){\n\t\t\n\t\tval.validateDateNID(this, \"<\", natID.natIDdocs.ExpiryDate );\n\t\tcolor.markCorrect(natID.natIDdocs.ExpiryDate);\n}\nelse{\n\t\n\t val.validateDate(this, \"<=\", utilDates.getToday(), \"Today\");\n\t\t\t\n}\t\n\n\n"
      ],
      "rules": {
        "gate": "has_national_id",
        "past": true,
        "compare": null,
        "optional": true
      }
    },
    "form1.Page2.natID.natIDdocs.ExpiryDate": {
      "label": "National identity document — Expiry date",
      "template_path": "form1.Page2.natID.natIDdocs.ExpiryDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//Must be greater than from date\n//if (!IssueDate.IssueDate.isNull && !this.isNull)\n//\t \t val.validateDate(this, \">\", utilDates.getToday());\n\n//CZ/11/2018/CR352621\nif (!this.isNull){\n\t\tval.validateDateNID(this, \">\", natIDdocs.IssueDate.IssueDate);\n\t\tcolor.markCorrect( natIDdocs.IssueDate.IssueDate);\n\t\t\n\t }\n\t else{\n\t\tif(this.isNull){\n\t\t\tcolor.markCorrect(this);\n\t\t\tcolor.markCorrect( natIDdocs.IssueDate.IssueDate);\n\t\t}\n\t\t\n\t}\t\n",
        "//CR 301657 - CL October 11,2017. \n//Must be greater than from date\n//val.validateDate(this, \">\", utilDates.getToday(), \"Today\");\n\n"
      ],
      "rules": {
        "gate": "has_national_id",
        "past": false,
        "compare": "national_id.issue_date",
        "strict_compare": true,
        "optional": true
      }
    },
    "form1.Page2.natID.q1.natIDIndicator": {
      "label": "Have a national identity document",
      "template_path": "form1.Page2.natID.q1.natIDIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 7/10/13 GCMS100094545\n//val.validateYesNo(this);\n\n",
        "//CR 301657 - CL October 11,2017. \ncolor.markCorrect(this);\ncolor.markCorrect(Yes);\n//CR 301657\ncolor.markUnRequired(this);\ncolor.markUnRequired(Yes);\t\n\n\nif(!this.isNull){\n\t//disable the table\n\tutil.enableField(natIDdocs.DocNum.DocNum.somExpression, false);\n\tutil.enableField(natIDdocs.CountryofIssue.CountryofIssue.somExpression, false);\n\tutil.enableField(natIDdocs.IssueDate.IssueDate.somExpression, false);\n\tutil.enableField(natIDdocs.ExpiryDate.somExpression, false);\n\t\n\t//reset mandatory fields\n\tcolor.markUnRequired(natIDdocs.DocNum.DocNum);\n\tcolor.markUnRequired(natIDdocs.CountryofIssue.CountryofIssue);\n\tcolor.markUnRequired(natIDdocs.IssueDate.IssueDate);\n\tcolor.markUnRequired(natIDdocs.ExpiryDate);\n}\n",
        "//CR 301657 - CL October 11,2017. \ncolor.markCorrect(this);\ncolor.markCorrect(No);\n//CR 301657\ncolor.markUnRequired(this);\ncolor.markUnRequired(No);\t\n\n\nif(!this.isNull){\n\t//enable the table\n\tutil.enableField(natIDdocs.DocNum.DocNum.somExpression, true);\n\tutil.enableField(natIDdocs.CountryofIssue.CountryofIssue.somExpression, true);\n\tutil.enableField(natIDdocs.IssueDate.IssueDate.somExpression, true);\n\tutil.enableField(natIDdocs.ExpiryDate.somExpression, true);\n\t\n\t//reset mandatory fields\n\tcolor.markRequired(natIDdocs.DocNum.DocNum);\n\t//color.markUnCorrect(natIDdocs.DocNum.DocNum);\n\t\n\tcolor.markRequired(natIDdocs.CountryofIssue.CountryofIssue);\n\t//CR 301657 - CL(Oct 17,2017)\n\t//color.markRequired(natIDdocs.IssueDate.IssueDate);\n\t//color.markRequired(natIDdocs.ExpiryDate);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.Passport.TaiwanPIN": {
      "label": "Taiwan passport — Personal identification number",
      "template_path": "form1.Page2.Passport.TaiwanPIN",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "\ncolor.markCorrect( this);\ncolor.markCorrect( Yes);\ncolor.markUnRequired(this);\ncolor.markUnRequired(Yes);\n",
        "\t\ncolor.markCorrect( this);\ncolor.markCorrect( No);\ncolor.markUnRequired(this);\ncolor.markUnRequired(No);\n\n"
      ],
      "rules": {
        "gate": "passport.country:Taiwan",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.Passport.IsraelPassportIndicator": {
      "label": "Israeli national passport",
      "template_path": "form1.Page2.Passport.IsraelPassportIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "\ncolor.markCorrect( this);\ncolor.markCorrect( Yes);\ncolor.markUnRequired(this);\ncolor.markUnRequired(Yes);\n",
        "\t\ncolor.markCorrect( this);\ncolor.markCorrect( No);\ncolor.markUnRequired(this);\ncolor.markUnRequired(No);\n\n"
      ],
      "rules": {
        "gate": "passport.country:Israel",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.USCard.q1.usCardIndicator": {
      "label": "US permanent resident card",
      "template_path": "form1.Page2.USCard.q1.usCardIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 7/10/13 GCMS100094545\n//val.validateYesNo(this);\n\n",
        "//CR 301657 - CL October 11,2017. \ncolor.markCorrect(this);\ncolor.markCorrect(Yes);\n//CR 301657\ncolor.markUnRequired(this);\ncolor.markUnRequired(Yes);\t\n\nif(!this.isNull){\n\t//disable the table\n\tutil.enableField(usCarddocs.DocNum.DocNum.somExpression, false);\n\t//util.enableField(usCarddocs.CountryofIssue.CountryofIssue.somExpression, false);\n\t//CR 301657 - CL(Oct 17,2017)\n\t//util.enableField(usCarddocs.IssueDate.IssueDate.somExpression, false);\n\tutil.enableField(usCarddocs.ExpiryDate.somExpression, false);\n\t\n\t//reset mandatory fields\n\tcolor.markUnRequired(usCarddocs.DocNum.DocNum);\n\t//color.markUnRequired(usCarddocs.CountryofIssue.CountryofIssue);\n\t//CR 301657 - CL(Oct 17,2017)\n\t//color.markUnRequired(usCarddocs.IssueDate.IssueDate);\n\tcolor.markUnRequired(usCarddocs.ExpiryDate);\n}\n",
        "//CR 301657 - CL October 11,2017. \ncolor.markCorrect(this);\ncolor.markCorrect(No);\n//CR 301657\ncolor.markUnRequired(this);\ncolor.markUnRequired(No);\t\n\n\nif(!this.isNull){\n\t//enable the table\n\tutil.enableField(usCarddocs.DocNum.DocNum.somExpression, true);\n\t//util.enableField(usCarddocs.CountryofIssue.CountryofIssue.somExpression, true);\n\t//CR 301657 - CL(Oct 17,2017)\n\t//util.enableField(usCarddocs.IssueDate.IssueDate.somExpression, true);\n\tutil.enableField(usCarddocs.ExpiryDate.somExpression, true);\n\t\n\t//reset mandatory fields\n\tcolor.markRequired(usCarddocs.DocNum.DocNum);\n\t//color.markRequired(usCarddocs.CountryofIssue.CountryofIssue);\n\t//CR 301657 - CL(Oct 17,2017)\n\t//color.markRequired(usCarddocs.IssueDate.IssueDate);\n\tcolor.markRequired(usCarddocs.ExpiryDate);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.USCard.usCarddocs.DocNum.DocNum": {
      "label": "US permanent resident card — Number",
      "template_path": "form1.Page2.USCard.usCarddocs.DocNum.DocNum",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePassportNum(this);\n\n"
      ],
      "rules": {
        "gate": "has_us_card",
        "optional": false
      },
      "max_chars": 20
    },
    "form1.Page2.USCard.usCarddocs.ExpiryDate": {
      "label": "US permanent resident card — Expiry",
      "template_path": "form1.Page2.USCard.usCarddocs.ExpiryDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//Must be greater than from date\n//if (!IssueDate.IssueDate.isNull && !this.isNull)\n//\t \t val.validateDate(this, \">\", utilDates.getToday());\n\n",
        "//CR 301657 - CL October 11,2017. \n//Must be greater than from date\nval.validateDate(this, \">\", utilDates.getToday(), \"Today\");\n\n"
      ],
      "rules": {
        "gate": "has_us_card",
        "after_today": true,
        "optional": false
      }
    },
    "form1.Page2.ContactInformation.Resi.SameAsAddr.SameAsMailingInd": {
      "label": "Residential address same as mailing",
      "template_path": "form1.Page2.ContactInformation.Resi.SameAsAddr.SameAsMailingInd",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 3/14/12 upd xpath\ncolor.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n\nif (!this.isNull)\n{\n\t//enable fields\n\tutil.enableField(AddrLine2.Prov.somExpression, true);\n\tutil.enableField(AddrLine2.PostalCode.somExpression, true);\n\t\n\tutil.enableField(AddrLine1.AptUnit.somExpression, true);\n\tutil.enableField(AddrLine1.StreetNum.somExpression, true);\n\tutil.enableField(AddrLine1.Streetname.somExpression, true);\n\tutil.enableField(AddrLine2.City.somExpression, true);\n\t// CPARK 3/15/12 force it to canada\n\tAddrLine2.Country.access = \"open\"\n\tAddrLine2.Country.rawValue = \"511\"\t//CANADA=511\n\tAddrLine2.Country.access = \"readOnly\"\n\n\t//cpark 7/29/13 accessible\n\tcolor.markRequired(AddrLine2.Country)\n\t\t\n\t//reset Mandatory\n\tcolor.markRequired(AddrLine1.Streetname);\n\tcolor.markRequired(AddrLine2.City);\n\tcolor.markRequired(AddrLine2.Prov);\n\tcolor.markRequired(AddrLine2.PostalCode);\n}\n",
        "if (!this.isNull)\n{\n\tif (Mailing.AddrLine1.POBox.isNull)\n\t{\n\t\tcolor.markCorrect(this);\n\t\tcolor.markCorrect(No);\n\t\t//CPARK 7/25/13 GCMS100094545\n\t\t//color.markUnRequired(this);\n\t\t//color.markUnRequired(No);\n\t\t\n\t\t//Make ReadOnly\n\t\tutil.enableField(AddrLine1.AptUnit.somExpression, false);\n\t\tutil.enableField(AddrLine1.StreetNum.somExpression, false);\n\t\tutil.enableField(AddrLine1.Streetname.somExpression, false);\n\t\tutil.enableField(AddrLine2.City.somExpression, false);\n\t\tutil.enableField(AddrLine2.Country.somExpression, false);\n\t\tutil.enableField(AddrLine2.Prov.somExpression, false);\n\t\tutil.enableField(AddrLine2.PostalCode.somExpression, false);\n\t\t\n\t\t//reset Mandatory\n\t\tcolor.markUnRequired(AddrLine1.Streetname);\n\t\tcolor.markUnRequired(AddrLine2.City);\n\t\t// CPARK 3/15/12 make editable, clear value, make readonly\n\t\tAddrLine2.Country.access = \"open\"\n\t\tAddrLine2.Country.rawValue = \"\";\n\t\tAddrLine2.Country.access = \"readOnly\"\n\n\t\t//cpark 7/29/13 accessible\n\t\tcolor.markUnRequired(AddrLine2.Country)\n\t\t\n\t\tcolor.markUnRequired(AddrLine2.Prov);\n\t\tcolor.markUnRequired(AddrLine2.PostalCode);\n\t}\n\telse\n\t{\n\t\tthis.rawValue = null;\n\t\t//CPARK 5/16/12 78353\n\t\tvar vm = this.parent.validationMessage.split(\"\\r\")\n\t\txfa.host.messageBox(vm[0] + \"\\n\" + messages.getMessage(\"Format_Entered\") + \"\\n\" + vm[1] + \"\\n\\n\" + messages.getMessage(\"POBoxConflict\"));\n\t\tcolor.markRequired(No);\n\t\tcolor.markRequired(this);\n\t}\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine1.POBox": {
      "label": "Mailing address — P.O. box",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine1.POBox",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//////////////PO Box validate code/////////////////////////////////\n\n\n//check dependent fields\nif (!this.isNull)\n{\n\tcolor.markUnRequired(Streetname);\n \tif (Streetname.isNull)\n \t\tcolor.markCorrect(Streetname);\n}\nelse\n{\n\tcolor.markRequired(Streetname);\t\n}\n\nval.validateOpenText(this);\t\n",
        "if (Resi.SameAsAddr.SameAsMailingInd.Yes.rawValue == \"Y\")\n{\n\tResi.SameAsAddr.SameAsMailingInd.Yes.execEvent(\"click\");\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 15
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine1.AptUnit": {
      "label": "Mailing address — Apartment/unit",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine1.AptUnit",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 10
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine1.StreetNum": {
      "label": "Mailing address — Street number",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine1.StreetNum",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 10
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine1.Streetname": {
      "label": "Mailing address — Street name",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine1.Streetname",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n",
        "if (this.isNull && POBox.isNull)\n{\n\t//color.markRequired(POBox.POBox);\n\tcolor.markRequired(this);\n}\nelse\n \tcolor.markUnRequired(POBox);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine2.City": {
      "label": "Mailing address — City/town",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine2.City",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine2.Country": {
      "label": "Mailing address — Country",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine2.Country",
      "bindings": [],
      "validation": [],
      "scripts": [
        "//cpark 7/29/13 accessible\ncolor.markRequired(this)\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "Canada",
        "511"
      ]
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine2.Prov": {
      "label": "Mailing address — Province",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine2.Prov",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      }
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine2.PostalCode": {
      "label": "Mailing address — Postal code",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine2.PostalCode",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePostalCodeBasedOnCountry(this, Country);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 10
    },
    "form1.Page2.ContactInformation.Mailing.AddrLine2.District": {
      "label": "Mailing address — District",
      "template_path": "form1.Page2.ContactInformation.Mailing.AddrLine2.District",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 30
    },
    "form1.Page2.ContactInformation.Resi.AddrLine1.AptUnit": {
      "label": "Residential address — Apartment/unit",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine1.AptUnit",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": true
      },
      "max_chars": 10
    },
    "form1.Page2.ContactInformation.Resi.AddrLine1.StreetNum": {
      "label": "Residential address — Street number",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine1.StreetNum",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": true
      },
      "max_chars": 10
    },
    "form1.Page2.ContactInformation.Resi.AddrLine1.Streetname": {
      "label": "Residential address — Street name",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine1.Streetname",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "max_chars": 100
    },
    "form1.Page2.ContactInformation.Resi.AddrLine2.City": {
      "label": "Residential address — City/town",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine2.City",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page2.ContactInformation.Resi.AddrLine2.Country": {
      "label": "Residential address — Country",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine2.Country",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "//color.markCorrect(PostalCode);\n//PostalCode.rawValue = null;\n",
        "//cpark 7/29/13 accessible\n//CPARK 8/29/13 Issue 21520. had an issue without the if condition that a validated form when re-opened would show not validated \n// \t\t\t\tso it appeared the state wasnt being saved.\nif (SameAsAddr.SameAsMailingInd.No.isNull && SameAsAddr.SameAsMailingInd.Yes.isNull)\n\tcolor.markUnRequired(this)\t//CPARK 11/8/13 make UnRequired\n\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "allowed_values": [
        "Canada",
        "511"
      ]
    },
    "form1.Page2.ContactInformation.Resi.AddrLine2.Prov": {
      "label": "Residential address — Province",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine2.Prov",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      }
    },
    "form1.Page2.ContactInformation.Resi.AddrLine2.PostalCode": {
      "label": "Residential address — Postal code",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine2.PostalCode",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 11/8/13 only fire if Y.\nif (!SameAsAddr.SameAsMailingInd.No.isNull)\n\tval.validatePostalCodeBasedOnCountry(this, Country);\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "max_chars": 10
    },
    "form1.Page2.ContactInformation.Resi.AddrLine2.District": {
      "label": "Residential address — District",
      "template_path": "form1.Page2.ContactInformation.Resi.AddrLine2.District",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\t\n\n"
      ],
      "rules": {
        "gate": "separate_address",
        "optional": true
      },
      "max_chars": 30
    },
    "form1.Page2.ContactInformation.q3-4.Phone.CanOtherInd.CanadaUS": {
      "label": "Primary telephone — Canada/US",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.CanOtherInd.CanadaUS",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//toggle the other button\nOther.rawValue = 0;\n\n//markCorrect\ncolor.markCorrect(this);\ncolor.markCorrect(Other);\n\n//make visible-invisible\nNANumber.presence = \"visible\";\nIntlNumber.presence = \"invisible\";\n\n//Clear INT data and requirements\nIntlNumber.IntlNumber.rawValue = null;\nNumberExt.rawValue = null;\ncolor.markUnRequired(IntlNumber.IntlNumber);\ncolor.markUnRequired(Other);\n\n//Make NAN phone fields required\ncolor.markRequired(Type);\ncolor.markUnRequired(NumberCountry);\nutil.enableField(NumberCountry.somExpression, false);\ncolor.markRequired(NANumber.AreaCode);\n\ncolor.markRequired(NANumber.FirstThree);\ncolor.markRequired(NANumber.LastFive);\nNumberCountry.rawValue = \"1\";\n\n//if neither checked only show international\nif (this.rawValue == 0 && Other.rawValue == 0)\n{\n\tNANumber.presence = \"invisible\";\n\tIntlNumber.presence = \"visible\";\n\t\n\tNumberCountry.rawValue = null;\n\tutil.enableField(NumberCountry.somExpression, true);\n\t\n \t //make all unrequired\n\t color.markUnRequired(this);\n\t color.markUnRequired(Other);\n\t color.markUnRequired(Type);\n\t color.markUnRequired(NumberCountry);\n\t color.markUnRequired(NANumber.AreaCode);\n\t color.markUnRequired(NANumber.FirstThree);\n\t color.markUnRequired(NANumber.LastFive);\n\t color.markUnRequired(NumberExt);\n\t color.markUnRequired(IntlNumber.IntlNumber);\n\n\t Type.rawValue = null;\n\t NumberCountry.rawValue = null;\n\t NANumber.AreaCode.rawValue = null;\n\t NANumber.FirstThree.rawValue = null;\n\t NANumber.LastFive.rawValue = null;\n\t NumberExt.rawValue = null;\n\t IntlNumber.IntlNumber.rawValue = null;\n\t ActualNumber.rawValue = null;\n}\n",
        "//Canada US\n/* CP1/21/14 as per CC\nif(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull  && NANumber.FirstThree.isNull && NANumber.LastFive.isNull && NumberExt.isNull && this.rawValue == \"0\" && Other.rawValue == \"0\")\n{\n\tcolor.markUnRequired(Other);\n\tcolor.markUnRequired(this);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page2.ContactInformation.q3-4.Phone.CanOtherInd.Other": {
      "label": "Primary telephone — International",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.CanOtherInd.Other",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//toggle the other button//toggle the other button\nCanadaUS.rawValue = 0;\n\n//markCorrect\ncolor.markCorrect(Other);\ncolor.markCorrect(CanadaUS); \n\n//make visible-invisible\nNANumber.presence = \"invisible\";\nIntlNumber.presence = \"visible\";\n\n//Clear NAN data\nNANumber.AreaCode.rawValue = null;\nNANumber.FirstThree.rawValue = null;\nNANumber.LastFive.rawValue = null;\n\n//Clear NAN Required\ncolor.markUnRequired(NANumber.AreaCode);\ncolor.markUnRequired(NANumber.FirstThree);\ncolor.markUnRequired(NANumber.LastFive);\n\nNumberExt.rawValue = null;\nNumberCountry.rawValue = null;\n\nutil.enableField(NumberCountry.somExpression, true);\n\n//Make INT phone fields required\ncolor.markRequired(Type);\ncolor.markRequired(NumberCountry);\ncolor.markRequired(IntlNumber.IntlNumber);\n\n//mark Other Unrequired\ncolor.markUnRequired(CanadaUS);\n\n//if neither checked only show international\nif (this.rawValue == 0 && Other.rawValue == 0)\n{\n\tNANumber.presence = \"invisible\";\n\tIntlNumber.presence = \"visible\";\n\t//IntlNumber.PlusSign.presence = \"invisible\";\n\t\n\tNumberCountry.rawValue = null;\n\tutil.enableField(NumberCountry.somExpression, true);\n\t\n \t //make all unrequired\n\t color.markUnRequired(this);\n\t color.markUnRequired(Other);\n\t color.markUnRequired(Type);\n\t color.markUnRequired(NumberCountry);\n\t color.markUnRequired(NANumber.AreaCode);\n\t color.markUnRequired(NANumber.FirstThree);\n\t color.markUnRequired(NANumber.LastFive);\n\t color.markUnRequired(NumberExt);\n\t color.markUnRequired(IntlNumber.IntlNumber);\n\n\t //clear the data\n\t Type.rawValue = null;\n\t NumberCountry.rawValue = null;\n\t NANumber.AreaCode.rawValue = null;\n\t NANumber.FirstThree.rawValue = null;\n\t NANumber.LastFive.rawValue = null;\n\t NumberExt.rawValue = null;\n\t IntlNumber.IntlNumber.rawValue = null;\n\t ActualNumber.rawValue = null;\n}\n",
        "//Other\n/* CP1/21/14 as per CC\nif(Type.isNull && NumberCountry.isNull && IntlNumber.IntlNumber.isNull && NumberExt.isNull && CanadaUS.rawValue == \"0\" && this.rawValue == \"0\")\n{\n\tcolor.markUnRequired(this);\n\tcolor.markUnRequired(CanadaUS);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page2.ContactInformation.q3-4.Phone.ActualNumber": {
      "label": "Primary telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.ActualNumber",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "var number;\nif (CanOtherInd.CanadaUS.rawValue == \"1\")\n{\n\tvar countryCode = NumberCountry.rawValue;\n\tvar areaCode = NANumber.AreaCode.rawValue;\n\tvar firstThree = NANumber.FirstThree.rawValue;\n\tvar lastFive = NANumber.LastFive.rawValue;\n\tvar ext = NumberExt.rawValue;\n \t\n\tif (countryCode == null)\n\t\tcountryCode = \"\";\n\tif (areaCode == null)\n\t\tareaCode = \"\";\n\tif (firstThree == null)\n\t\tfirstThree = \"\";\t\n\tif (lastFive == null)\n\t\tlastFive = \"\";\n\tif (ext == null)\n\t\text = \"\";\n\tnumber =  areaCode + firstThree + lastFive + ext;\n}\nelse if (CanOtherInd.Other.rawValue == \"1\")\n{\n\tvar countryCode = NumberCountry.rawValue;\n\tvar intNum = IntlNumber.IntlNumber.rawValue;\n\tvar ext = NumberExt.rawValue;\n \t\n\tif (countryCode == null)\n\t\tcountryCode = \"\";\n\telse\n\t{\n\t\tif (countryCode.charAt(0) == \"1\")\n\t\t\tcountryCode = countryCode.substr(1,countryCode.length - 1); \n\t\tcountryCode = \"+\" + countryCode; \n\t}\n\tif (intNum == null)\n\t\tintNum = \"\";\n\tif (ext == null)\n\t\text = \"\";\n    else\n\t\text = \"x\"+ ext;\n    \t\n\tnumber =  countryCode + intNum + ext;\n}\n\nif (number == \"\" || number == null)\n\tnumber = null;\nelse\n{\n\tnumber = number.replace(/\\r/,'');\n\tnumber = number.replace(/ /g,'');\n}\n\n//if neither 'Canada/Us' or 'Other' is checked than clear value\nif (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\")\n\tnumber = null; \nthis.rawValue = number;\n",
        "//CPARK 10/11\nvalidateForm.validateUniqueTelephone(\"Sponsor\");\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 20
    },
    "form1.Page2.ContactInformation.q3-4.Phone.NumberCountry": {
      "label": "Primary telephone — Country code",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.NumberCountry",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 upd with 1294\n//CPARK 4/10/12\n//CPARK\t6/6/12\t78726\n//cpark 7/29/13 commented out if condition for Other 94697 issue\n//if (this.access == \"open\" && !this.isNull && this.rawValue.length >= 1)\t//CPARK\t6/6/12\t78726 made >= from >\n\tval.validateCountryTeleCode(this);\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n}\n",
        "var myValue = xfa.event.newText;\n \n//international\nif (CanOtherInd.Other.rawValue == \"1\")\n{\n\tif (myValue.length == 4 && myValue.charAt(0) == \"1\")\n \t\txfa.host.setFocus(IntlNumber.IntlNumber);\n \telse if(myValue.length == 3 && myValue.charAt(0) != \"1\")\n \t\txfa.host.setFocus(IntlNumber.IntlNumber);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page2.ContactInformation.q3-4.Phone.NumberExt": {
      "label": "Primary telephone — Extension",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.NumberExt",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 upd with 1294\nval.validateDigits(this);\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n\t \n\t \n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 5
    },
    "form1.Page2.ContactInformation.q3-4.Phone.NANumber.AreaCode": {
      "label": "Primary telephone — Area code",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.NANumber.AreaCode",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateAreaCode(this);\n\n",
        " var myValue = xfa.event.newText;\n if (myValue.length == 3)\n \txfa.host.setFocus(FirstThree);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 3
    },
    "form1.Page2.ContactInformation.q3-4.Phone.NANumber.FirstThree": {
      "label": "Primary telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.NANumber.FirstThree",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateAreaCode(this);\n\n",
        "var myValue = xfa.event.newText;\n if (myValue.length == 3)\n \txfa.host.setFocus(LastFive);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 3
    },
    "form1.Page2.ContactInformation.q3-4.Phone.NANumber.LastFive": {
      "label": "Primary telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.NANumber.LastFive",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePhoneNAN(this);\n\n",
        "var myValue = xfa.event.newText;\n if (myValue.length == 4)\n \txfa.host.setFocus(NumberExt);\n\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page2.ContactInformation.q3-4.Phone.IntlNumber.IntlNumber": {
      "label": "Primary telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.IntlNumber.IntlNumber",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 updated with 1294\nval.validateIntlNum(this);\n\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && this.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && this.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n\t \n\t \n}\n",
        "//CPARK 10/12 updated from 1294\nvar myValue = xfa.event.newText;\nif (myValue.length == \"21\")\n\txfa.host.setFocus(NumberExt);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 20
    },
    "form1.Page2.ContactInformation.q3-4.Phone.Type": {
      "label": "Primary telephone — Type",
      "template_path": "form1.Page2.ContactInformation.q3-4.Phone.Type",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.PhoneTypeTRVList.PhoneTypeTRV[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 updated with 1294\nval.validateDropDown(this);\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n}\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Residence",
        "02": "Cellular",
        "03": "Business"
      }
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.CanOtherInd.CanadaUS": {
      "label": "Alternate telephone — Canada/US",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.CanOtherInd.CanadaUS",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//toggle the other button\nOther.rawValue = 0;\n\n//markCorrect\ncolor.markCorrect(this);\ncolor.markCorrect(Other);\n\n//make visible-invisible\nNANumber.presence = \"visible\";\nIntlNumber.presence = \"invisible\";\n\n//Clear INT data and requirements\nIntlNumber.IntlNumber.rawValue = null;\nNumberExt.rawValue = null;\ncolor.markUnRequired(IntlNumber.IntlNumber);\ncolor.markUnRequired(Other);\n\n//Make NAN phone fields required\ncolor.markRequired(Type);\ncolor.markUnRequired(NumberCountry);\nutil.enableField(NumberCountry.somExpression, false);\ncolor.markRequired(NANumber.AreaCode);\ncolor.markRequired(NANumber.FirstThree);\ncolor.markRequired(NANumber.LastFive);\nNumberCountry.rawValue = \"1\";\n\n//if neither checked only show international\nif (this.rawValue == 0 && Other.rawValue == 0)\n{\n\tNANumber.presence = \"invisible\";\n\tIntlNumber.presence = \"visible\";\n\t\n\tNumberCountry.rawValue = null;\n\tutil.enableField(NumberCountry.somExpression, true);\n\t\n \t //make all unrequired\n\t color.markUnRequired(this);\n\t color.markUnRequired(Other);\n\t color.markUnRequired(Type);\n\t color.markUnRequired(NumberCountry);\n\t color.markUnRequired(NANumber.AreaCode);\n\t color.markUnRequired(NANumber.FirstThree);\n\t color.markUnRequired(NANumber.LastFive);\n\t color.markUnRequired(NumberExt);\n\t color.markUnRequired(IntlNumber.IntlNumber);\n\n\t Type.rawValue = null;\n\t NumberCountry.rawValue = null;\n\t NANumber.AreaCode.rawValue = null;\n\t NANumber.FirstThree.rawValue = null;\n\t NANumber.LastFive.rawValue = null;\n\t NumberExt.rawValue = null;\n\t IntlNumber.IntlNumber.rawValue = null;\n\t ActualNumber.rawValue = null;\n}\n\n",
        "//Canada US\n/* CP1/21/14 as per CC\nif(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull  && NANumber.FirstThree.isNull && NANumber.LastFive.isNull && NumberExt.isNull && this.rawValue == \"0\" && Other.rawValue == \"0\")\n{\n\tcolor.markUnRequired(Other);\n\tcolor.markUnRequired(this);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.CanOtherInd.Other": {
      "label": "Alternate telephone — International",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.CanOtherInd.Other",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//toggle the other button\nCanadaUS.rawValue = 0;\n\n//markCorrect\ncolor.markCorrect(Other);\ncolor.markCorrect(CanadaUS); //\n\n//make visible-invisible\nNANumber.presence = \"invisible\";\nIntlNumber.presence = \"visible\";\n\n//Clear NAN data\nNANumber.AreaCode.rawValue = null;\nNANumber.FirstThree.rawValue = null;\nNANumber.LastFive.rawValue = null;\n\n//Clear NAN Required\ncolor.markUnRequired(NANumber.AreaCode);\ncolor.markUnRequired(NANumber.FirstThree);\ncolor.markUnRequired(NANumber.LastFive);\n\nNumberExt.rawValue = null;\nNumberCountry.rawValue = null;\n\nutil.enableField(NumberCountry.somExpression, true);\n\n//Make INT phone fields required\ncolor.markRequired(Type);\ncolor.markRequired(NumberCountry);\ncolor.markRequired(IntlNumber.IntlNumber);\n\n//mark Other Unrequired\ncolor.markUnRequired(CanadaUS);\n\n//if neither checked only show international\nif (this.rawValue == 0 && Other.rawValue == 0)\n{\n\tNANumber.presence = \"invisible\";\n\tIntlNumber.presence = \"visible\";\n\t//IntlNumber.PlusSign.presence = \"invisible\";\n\t\n\tNumberCountry.rawValue = null;\n\tutil.enableField(NumberCountry.somExpression, true);\n\t\n \t //make all unrequired\n\t color.markUnRequired(this);\n\t color.markUnRequired(Other);\n\t color.markUnRequired(Type);\n\t color.markUnRequired(NumberCountry);\n\t color.markUnRequired(NANumber.AreaCode);\n\t color.markUnRequired(NANumber.FirstThree);\n\t color.markUnRequired(NANumber.LastFive);\n\t color.markUnRequired(NumberExt);\n\t color.markUnRequired(IntlNumber.IntlNumber);\n\n\t //clear the data\n\t Type.rawValue = null;\n\t NumberCountry.rawValue = null;\n\t NANumber.AreaCode.rawValue = null;\n\t NANumber.FirstThree.rawValue = null;\n\t NANumber.LastFive.rawValue = null;\n\t NumberExt.rawValue = null;\n\t IntlNumber.IntlNumber.rawValue = null;\n\t ActualNumber.rawValue = null;\n}\n",
        "//Other\n/* CP1/21/14 as per CC\nif(Type.isNull && NumberCountry.isNull && IntlNumber.IntlNumber.isNull && NumberExt.isNull && CanadaUS.rawValue == \"0\" && Other.rawValue == \"0\")\n{\n\tcolor.markUnRequired(this);\n\tcolor.markUnRequired(CanadaUS);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.ActualNumber": {
      "label": "Alternate telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.ActualNumber",
      "bindings": [],
      "validation": [],
      "scripts": [
        "var number;\nif (CanOtherInd.CanadaUS.rawValue == \"1\")\n{\n\tvar countryCode = NumberCountry.rawValue;\n\tvar areaCode = NANumber.AreaCode.rawValue;\n\tvar firstThree = NANumber.FirstThree.rawValue;\n\tvar lastFive = NANumber.LastFive.rawValue;\n\tvar ext = NumberExt.rawValue;\n \t\n\tif (countryCode == null)\n\t\tcountryCode = \"\";\n\tif (areaCode == null)\n\t\tareaCode = \"\";\n\tif (firstThree == null)\n\t\tfirstThree = \"\";\t\n\tif (lastFive == null)\n\t\tlastFive = \"\";\n\tif (ext == null)\n\t\text = \"\";\n\tnumber =  areaCode + firstThree + lastFive + ext;\n}\nelse if (CanOtherInd.Other.rawValue == \"1\")\n{\n\tvar countryCode = NumberCountry.rawValue;\n\tvar intNum = IntlNumber.IntlNumber.rawValue;\n\tvar ext = NumberExt.rawValue;\n \t\n\tif (countryCode == null)\n\t\tcountryCode = \"\";\n\telse\n\t{\n\t\tif (countryCode.charAt(0) == \"1\")\n\t\t\tcountryCode = countryCode.substr(1,countryCode.length - 1); \n\t\tcountryCode = \"+\" + countryCode; \n\t}\n\tif (intNum == null)\n\t\tintNum = \"\";\n\tif (ext == null)\n\t\text = \"\";\n    else\n\t\text = \"x\"+ ext;\n    \t\n\tnumber =  countryCode + intNum + ext;\n}\n\nif (number == \"\" || number == null)\n\tnumber = null;\nelse\n{\n\tnumber = number.replace(/\\r/,'');\n\tnumber = number.replace(/ /g,'');\n}\n\n//if neither 'Canada/Us' or 'Other' is checked than clear value\nif (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\")\n\tnumber = null; \nthis.rawValue = number;\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.NumberCountry": {
      "label": "Alternate telephone — Country code",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.NumberCountry",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 upd with 1294\n//CPARK 4/10/12 upd \n//CPARK\t6/6/12\t78726\n//cpark 7/29/13 commented out if condition for Other 94697 issue\n//if (this.access == \"open\" && !this.isNull && this.rawValue.length >= 1)\t//CPARK\t6/6/12\t78726 made >= from >\n\tval.validateCountryTeleCode(this);\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n\t \n\t \n}\n",
        "var myValue = xfa.event.newText;\n \n//international\nif (CanOtherInd.Other.rawValue == \"1\")\n{\n\tif (myValue.length == 4 && myValue.charAt(0) == \"1\")\n \t\txfa.host.setFocus(IntlNumber.IntlNumber);\n\telse if(myValue.length == 3 && myValue.charAt(0) != \"1\")\n \t\txfa.host.setFocus(IntlNumber.IntlNumber);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.NumberExt": {
      "label": "Alternate telephone — Extension",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.NumberExt",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 upd with 1294\nval.validateDigits(this);\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 5
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.NANumber.AreaCode": {
      "label": "Alternate telephone — Area code",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.NANumber.AreaCode",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateAreaCode(this);\n\n",
        " var myValue = xfa.event.newText;\n if (myValue.length == 3)\n \txfa.host.setFocus(FirstThree);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.NANumber.FirstThree": {
      "label": "Alternate telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.NANumber.FirstThree",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateAreaCode(this);\n\n",
        " var myValue = xfa.event.newText;\n if (myValue.length == 3)\n \txfa.host.setFocus(LastFive);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.NANumber.LastFive": {
      "label": "Alternate telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.NANumber.LastFive",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePhoneNAN(this);\n\n",
        "var myValue = xfa.event.newText;\n if (myValue.length == 4)\n \txfa.host.setFocus(NumberExt);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.IntlNumber.IntlNumber": {
      "label": "Alternate telephone — Number",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.IntlNumber.IntlNumber",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 updated with 1294\nval.validateIntlNum(this);\n\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && this.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && this.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n\t \n\t \n}\n",
        "//CPARK 10/12 updated from 1294\nvar myValue = xfa.event.newText;\nif (myValue.length == \"21\")\n\txfa.host.setFocus(NumberExt);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "form1.Page2.ContactInformation.q3-4.AltPhone.Type": {
      "label": "Alternate telephone — Type",
      "template_path": "form1.Page2.ContactInformation.q3-4.AltPhone.Type",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.PhoneTypeTRVList.PhoneTypeTRV[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 updated with 1294\nval.validateDropDown(this);\n\n//Make check boxes required if any phone data is entered\n if (!(Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (Type.isNull && NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n}\n\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Residence",
        "02": "Cellular",
        "03": "Business"
      }
    },
    "form1.Page2.ContactInformation.q5-6.Fax.CanOtherInd.CanadaUS": {
      "label": "Fax — Canada/US",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.CanOtherInd.CanadaUS",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//toggle the other button\nOther.rawValue = 0;\n\n//markCorrect\ncolor.markCorrect(this);\ncolor.markCorrect(Other);\n\n//make visible-invisible\nNANumber.presence = \"visible\";\nIntlNumber.presence = \"invisible\";\n\n//Clear INT data and requirements\nIntlNumber.IntlNumber.rawValue = null;\nNumberExt.rawValue = null;\ncolor.markUnRequired(IntlNumber.IntlNumber);\ncolor.markUnRequired(Other);\n\n//Make NAN phone fields required\n//color.markRequired(Type);\ncolor.markUnRequired(NumberCountry);\nutil.enableField(NumberCountry.somExpression, false);\ncolor.markRequired(NANumber.AreaCode);\ncolor.markRequired(NANumber.FirstThree);\ncolor.markRequired(NANumber.LastFive);\nNumberCountry.rawValue = \"1\";\n\n//if neither checked only show international\nif (this.rawValue == 0 && Other.rawValue == 0)\n{\n\tNANumber.presence = \"invisible\";\n\tIntlNumber.presence = \"visible\";\n\t\n\tNumberCountry.rawValue = null;\n\tutil.enableField(NumberCountry.somExpression, true);\n\t\n \t //make all unrequired\n\t color.markUnRequired(this);\n\t color.markUnRequired(Other);\n\t //color.markUnRequired(Type);\n\t color.markUnRequired(NumberCountry);\n\t color.markUnRequired(NANumber.AreaCode);\n\t color.markUnRequired(NANumber.FirstThree);\n\t color.markUnRequired(NANumber.LastFive);\n\t color.markUnRequired(NumberExt);\n\t color.markUnRequired(IntlNumber.IntlNumber);\n\n\t //Type.rawValue = null;\n\t NumberCountry.rawValue = null;\n\t NANumber.AreaCode.rawValue = null;\n\t NANumber.FirstThree.rawValue = null;\n\t NANumber.LastFive.rawValue = null;\n\t NumberExt.rawValue = null;\n\t IntlNumber.IntlNumber.rawValue = null;\n\t ActualNumber.rawValue = null;\n}\n",
        "//Canada US\n/* CP1/21/14 as per CC\nif(NumberCountry.isNull && NANumber.AreaCode.isNull  && NANumber.FirstThree.isNull && NANumber.LastFive.isNull && NumberExt.isNull && this.rawValue == \"0\" && Other.rawValue == \"0\")\n{\n\tcolor.markUnRequired(Other);\n\tcolor.markUnRequired(this);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page2.ContactInformation.q5-6.Fax.CanOtherInd.Other": {
      "label": "Fax — International",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.CanOtherInd.Other",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//toggle the other button\nCanadaUS.rawValue = 0;\n\n//markCorrect\ncolor.markCorrect(this);\ncolor.markCorrect(CanadaUS); //\n\n//make visible-invisible\nNANumber.presence = \"invisible\";\nIntlNumber.presence = \"visible\";\n\n//Clear NAN data\nNANumber.AreaCode.rawValue = null;\nNANumber.FirstThree.rawValue = null;\nNANumber.LastFive.rawValue = null;\n\n//Clear NAN Required\ncolor.markUnRequired(NANumber.AreaCode);\ncolor.markUnRequired(NANumber.FirstThree);\ncolor.markUnRequired(NANumber.LastFive);\n\nNumberExt.rawValue = null;\nNumberCountry.rawValue = null;\n\nutil.enableField(NumberCountry.somExpression, true);\n\n//Make INT phone fields required\n//color.markRequired(Type);\ncolor.markRequired(NumberCountry);\ncolor.markRequired(IntlNumber.IntlNumber);\n\n//mark Other Unrequired\ncolor.markUnRequired(CanadaUS);\n\n//if neither checked only show international\nif (this.rawValue == 0 && CanadaUS.rawValue == 0)\n{\n\tNANumber.presence = \"invisible\";\n\tIntlNumber.presence = \"visible\";\n\t//IntlNumber.PlusSign.presence = \"invisible\";\n\t\n\tNumberCountry.rawValue = null;\n\tutil.enableField(NumberCountry.somExpression, true);\n\t\n \t //make all unrequired\n\t color.markUnRequired(this);\n\t color.markUnRequired(CanadaUS);\n\t //color.markUnRequired(Type);\n\t color.markUnRequired(NumberCountry);\n\t color.markUnRequired(NANumber.AreaCode);\n\t color.markUnRequired(NANumber.FirstThree);\n\t color.markUnRequired(NANumber.LastFive);\n\t color.markUnRequired(NumberExt);\n\t color.markUnRequired(IntlNumber.IntlNumber);\n\n\t //clear the data\n\t //Type.rawValue = null;\n\t NumberCountry.rawValue = null;\n\t NANumber.AreaCode.rawValue = null;\n\t NANumber.FirstThree.rawValue = null;\n\t NANumber.LastFive.rawValue = null;\n\t NumberExt.rawValue = null;\n\t IntlNumber.IntlNumber.rawValue = null;\n\t ActualNumber.rawValue = null;\n}\n",
        "//Other\n/* CP1/21/14 as per CC\nif( NumberCountry.isNull && IntlNumber.IntlNumber.isNull && NumberExt.isNull && CanadaUS.rawValue == \"0\" && this.rawValue == \"0\")\n{\n\tcolor.markUnRequired(this);\n\tcolor.markUnRequired(CanadaUS);\n}\n*/\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page2.ContactInformation.q5-6.Fax.ActualNumber": {
      "label": "Fax — Number",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.ActualNumber",
      "bindings": [],
      "validation": [],
      "scripts": [
        "var number;\nif (CanOtherInd.CanadaUS.rawValue == \"1\")\n{\n\tvar countryCode = NumberCountry.rawValue;\n\tvar areaCode = NANumber.AreaCode.rawValue;\n\tvar firstThree = NANumber.FirstThree.rawValue;\n\tvar lastFive = NANumber.LastFive.rawValue;\n\tvar ext = NumberExt.rawValue;\n \t\n\tif (countryCode == null)\n\t\tcountryCode = \"\";\n\tif (areaCode == null)\n\t\tareaCode = \"\";\n\tif (firstThree == null)\n\t\tfirstThree = \"\";\t\n\tif (lastFive == null)\n\t\tlastFive = \"\";\n\tif (ext == null)\n\t\text = \"\";\n\tnumber =  areaCode + firstThree + lastFive + ext;\n}\nelse if (CanOtherInd.Other.rawValue == \"1\")\n{\n\tvar countryCode = NumberCountry.rawValue;\n\tvar intNum = IntlNumber.IntlNumber.rawValue;\n\tvar ext = NumberExt.rawValue;\n \t\n\tif (countryCode == null)\n\t\tcountryCode = \"\";\n\telse\n\t{\n\t\tif (countryCode.charAt(0) == \"1\")\n\t\t\tcountryCode = countryCode.substr(1,countryCode.length - 1); \n\t\tcountryCode = \"+\" + countryCode; \n\t}\n\tif (intNum == null)\n\t\tintNum = \"\";\n\tif (ext == null)\n\t\text = \"\";\n    else\n\t\text = \"x\"+ ext;\n    \t\n\tnumber =  countryCode + intNum + ext;\n}\n\nif (number == \"\" || number == null)\n\tnumber = null;\nelse\n{\n\tnumber = number.replace(/\\r/,'');\n\tnumber = number.replace(/ /g,'');\n}\n\n//if neither 'Canada/Us' or 'Other' is checked than clear value\nif (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\")\n\tnumber = null; \nthis.rawValue = number;\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "form1.Page2.ContactInformation.q5-6.Fax.NumberCountry": {
      "label": "Fax — Country code",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.NumberCountry",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 upd with 1294 and modified\n//CPARK 4/10/12\n//CPARK\t6/6/12\t78726 made >= from >\n//cpark 7/29/13 commented out if condition for Other 94697 issue\n//if (this.access == \"open\" && !this.isNull && this.rawValue.length >= 1)\t//CPARK\t6/6/12\t78726 made >= from >\n\tval.validateCountryTeleCode(this);\n\n//Make check boxes required if any phone data is entered\n if (!(NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n}\n",
        "var myValue = xfa.event.newText;\n \n//international\nif (CanOtherInd.Other.rawValue == \"1\")\n{\n\tif (myValue.length == 4 && myValue.charAt(0) == \"1\")\n\t\txfa.host.setFocus(IntlNumber.IntlNumber);\n\telse if(myValue.length == 3 && myValue.charAt(0) != \"1\")\n \t\txfa.host.setFocus(IntlNumber.IntlNumber);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "form1.Page2.ContactInformation.q5-6.Fax.NumberExt": {
      "label": "Fax — Extension",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.NumberExt",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 upd with 1294 and modified.\nval.validateDigits(this);\n\n//Make check boxes required if any phone data is entered\n if (!(NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && IntlNumber.IntlNumber.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 5
    },
    "form1.Page2.ContactInformation.q5-6.Fax.NANumber.AreaCode": {
      "label": "Fax — Area code",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.NANumber.AreaCode",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateAreaCode(this);\n\n",
        " var myValue = xfa.event.newText;\n if (myValue.length == 3)\n \txfa.host.setFocus(FirstThree);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "form1.Page2.ContactInformation.q5-6.Fax.NANumber.FirstThree": {
      "label": "Fax — Number",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.NANumber.FirstThree",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateAreaCode(this);\n\n",
        " var myValue = xfa.event.newText;\n if (myValue.length == 3)\n \txfa.host.setFocus(LastFive);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "form1.Page2.ContactInformation.q5-6.Fax.NANumber.LastFive": {
      "label": "Fax — Number",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.NANumber.LastFive",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePhoneNAN(this);\n\n",
        "var myValue = xfa.event.newText;\n if (myValue.length == 4)\n \txfa.host.setFocus(NumberExt);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "form1.Page2.ContactInformation.q5-6.Fax.IntlNumber.IntlNumber": {
      "label": "Fax — Number",
      "template_path": "form1.Page2.ContactInformation.q5-6.Fax.IntlNumber.IntlNumber",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 10/12 updated with 1294 and modified\nval.validateIntlNum(this);\n\n\n//Make check boxes required if any phone data is entered\n if (!(NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && this.isNull)){\n\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == \"0\" && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markRequired(CanOtherInd.Other);\n\t }\n\t \n }\n else if (NumberCountry.isNull && NANumber.AreaCode.isNull && NANumber.FirstThree.isNull \n \t\t\t\t  &&  NANumber.LastFive.isNull && NumberExt.isNull && this.isNull) { //all blank\n\n\t\n\t //make the check boxes required\n\t if (CanOtherInd.CanadaUS.rawValue == '0' && CanOtherInd.Other.rawValue == \"0\"){\n\t \tcolor.markCorrect(CanOtherInd.CanadaUS);\n\t \tcolor.markCorrect(CanOtherInd.Other);\n\t \tcolor.markUnRequired(CanOtherInd.CanadaUS);\n\t \tcolor.markUnRequired(CanOtherInd.Other);\n\t }\n\t \n\t \n}\n",
        "//CPARK 10/12 updated from 1294\nvar myValue = xfa.event.newText;\nif (myValue.length == \"21\")\n\txfa.host.setFocus(NumberExt);\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "form1.Page2.ContactInformation.q5-6.Email.Email": {
      "label": "Email address",
      "template_path": "form1.Page2.ContactInformation.q5-6.Email.Email",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateEmail(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 100
    },
    "form1.Page3.ComingIntoCda.OrigEntry.DateLastEntry": {
      "label": "Original entry — Date",
      "template_path": "form1.Page3.ComingIntoCda.OrigEntry.DateLastEntry",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\n//CPARK 6/18/12 79377\t< to <=\nval.validateDate(this, \"<=\", utilDates.getToday(), \"Today\");\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "form1.Page3.ComingIntoCda.OrigEntry.Place": {
      "label": "Original entry — Place",
      "template_path": "form1.Page3.ComingIntoCda.OrigEntry.Place",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page3.ComingIntoCda.RecentEntry.DateLastEntry": {
      "label": "Most recent entry — Date",
      "template_path": "form1.Page3.ComingIntoCda.RecentEntry.DateLastEntry",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK 4/11/12\n//CPARK 3/15/12 TODO - FIX ERROR MESSAGE FOR 2nd validateDate\n//CPARK 6/18/12 < to <=\nif (!OrigEntry.DateLastEntry.isNull)\n\tif(val.validateDate(this, \"<=\", utilDates.getToday(), \"Today\")[0])\n\t\tval.validateDate(this, \">\", OrigEntry.DateLastEntry.rawValue, \"Greater than Original Entry\");\n\nif (!this.isNull || !Place.isNull)\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(Place)\n}\nelse\n{\n\tcolor.markUnRequired(this)\n\tcolor.markUnRequired(Place)\n}\n"
      ],
      "rules": {
        "gate": "different_latest_entry",
        "past": true,
        "compare": "original_entry.date",
        "strict_compare": true,
        "optional": false
      }
    },
    "form1.Page3.ComingIntoCda.RecentEntry.Place": {
      "label": "Most recent entry — Place",
      "template_path": "form1.Page3.ComingIntoCda.RecentEntry.Place",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n\n",
        "if (!this.isNull || !DateLastEntry.isNull)\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(DateLastEntry)\n}\nelse\n{\n\tcolor.markUnRequired(this)\n\tcolor.markUnRequired(DateLastEntry)\n}\n\n"
      ],
      "rules": {
        "gate": "different_latest_entry",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page3.ComingIntoCda.PurposeOfVisit.PurposeOfVisit": {
      "label": "Original purpose of entry",
      "template_path": "form1.Page3.ComingIntoCda.PurposeOfVisit.PurposeOfVisit",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.VisitPurposeOriginalList.VisitPurposeOriginal[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "if (this.rawValue == \"03\" )   //03 is LIC code other\n{\n\tutil.enableField(Other.somExpression, true);\n\tcolor.markRequired(Other);\n}\t\nelse\n{ \n \tcolor.markUnRequired(Other);\n\tutil.enableField(Other.somExpression, false);\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Business",
        "02": "Tourism",
        "04": "Study",
        "05": "Work",
        "03": "Other",
        "06": "Family Visit"
      }
    },
    "form1.Page3.ComingIntoCda.PurposeOfVisit.Other": {
      "label": "Original purpose — Other details",
      "template_path": "form1.Page3.ComingIntoCda.PurposeOfVisit.Other",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n\n"
      ],
      "rules": {
        "gate": "original_purpose:03",
        "optional": false
      },
      "max_chars": 50
    },
    "form1.Page3.ComingIntoCda.PrevDocNum.docNum": {
      "label": "Most recent visitor record or permit number",
      "template_path": "form1.Page3.ComingIntoCda.PrevDocNum.docNum",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validatePermitNum(this)\n"
      ],
      "rules": {
        "gate": "has_latest_document",
        "optional": false
      },
      "max_chars": 10
    },
    "form1.Page3.Education.EducationIndicator": {
      "label": "Post-secondary education",
      "template_path": "form1.Page3.Education.EducationIndicator",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\nif (!this.isNull)\n{\n\t//disable fields row1\n\tutil.enableField(EduLine1.From.YYYY.somExpression, false);\n\tutil.enableField(EduLine1.From.MM.somExpression, false);\n\tutil.enableField(EduLine2.To.YYYY.somExpression, false);\n\tutil.enableField(EduLine2.To.MM.somExpression, false);\n\tutil.enableField(EduLine1.FieldOfStudy.somExpression, false);\n\tutil.enableField(EduLine1.School.somExpression, false);\n\tutil.enableField(EduLine2.City.somExpression, false);\n\tutil.enableField(EduLine2.Country.somExpression, false);\n\tutil.enableField(EduLine2.Prov.somExpression, false);\n\t\n\t//mark row 1 Unrequired\n\tcolor.markUnRequired(EduLine1.From.YYYY);\n\tcolor.markUnRequired(EduLine1.From.MM);\n\tcolor.markUnRequired(EduLine1.FieldOfStudy);\n\tcolor.markUnRequired(EduLine1.School);\n\tcolor.markUnRequired(EduLine2.City);\n\tcolor.markUnRequired(EduLine2.Country);\n\tcolor.markUnRequired(EduLine2.Prov);\n}\n",
        "//CPARK 3/14/12\ncolor.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n\nif (!this.isNull)\n{\n\t//disable fields row1\n\tutil.enableField(EduLine1.From.YYYY.somExpression, true);\n\tutil.enableField(EduLine1.From.MM.somExpression, true);\n\tutil.enableField(EduLine2.To.YYYY.somExpression, true);\n\tutil.enableField(EduLine2.To.MM.somExpression, true);\n\tutil.enableField(EduLine1.FieldOfStudy.somExpression, true);\n\tutil.enableField(EduLine1.School.somExpression, true);\n\tutil.enableField(EduLine2.City.somExpression, true);\n\tutil.enableField(EduLine2.Country.somExpression, true);\n\tutil.enableField(EduLine2.Prov.somExpression, true);\n\t\n\t//mark row 1 required\n\tcolor.markRequired(EduLine1.From.YYYY);\n\tcolor.markRequired(EduLine1.From.MM);\n\tcolor.markRequired(EduLine1.FieldOfStudy);\n\tcolor.markRequired(EduLine1.School);\n\tcolor.markRequired(EduLine2.City);\n\tcolor.markRequired(EduLine2.Country);\n\t\n\t//trigger dependent fields\n\tEduLine2.Country.execEvent(\"exit\");\n}\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page3.Education.EduLine1.From.YYYY": {
      "label": "Education — From date",
      "template_path": "form1.Page3.Education.EduLine1.From.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n",
        "val.validateEduFromYear(this);\n    \n\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page3.Education.EduLine1.From.MM": {
      "label": "Education — From date",
      "template_path": "form1.Page3.Education.EduLine1.From.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull){\n    this.rawValue = util.trim(this.rawValue);\n\t if (this.rawValue.charAt(0)  == \"-\"){\n\t \tthis.rawValue = null;\n\t }\n}\nval.validateEduMonth(this);\nval.validateEduDateInPresentOrPast(YYYY, this);\n\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page3.Education.EduLine2.To.YYYY": {
      "label": "Education — To date",
      "template_path": "form1.Page3.Education.EduLine2.To.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//enable and make required the other fields\nif (!this.isNull || !MM.isNull)\n{\n\tcolor.markRequired(MM);\n\tcolor.markRequired(this);\n}\nelse\n{\n\tcolor.markUnRequired(MM);\n\tcolor.markUnRequired(this);\n}\n",
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page3.Education.EduLine2.To.MM": {
      "label": "Education — To date",
      "template_path": "form1.Page3.Education.EduLine2.To.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n\tthis.rawValue = util.trim(this.rawValue);\n\tif (this.rawValue.charAt(0)  == \"-\")\n\t{\n\t\tthis.rawValue = null;\n\t}\n}\n\nval.validateEduToYear(YYYY);\nval.validateEduMonth(this);\nval.validateEduCrossRef(EduLine1.From.YYYY, EduLine1.From.MM, YYYY, this, \"FromTo\");\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page3.Education.EduLine1.FieldOfStudy": {
      "label": "Education — Field of study",
      "template_path": "form1.Page3.Education.EduLine1.FieldOfStudy",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value\nif (!this.isNull)\n    this.rawValue = util.trim(this.rawValue);\n    \nif(util.validateFormat(\"Open Text\", this.rawValue) || this.isNull)  //good\n{\n\t//correct\n\tcolor.markCorrect(this);\t\n}\nelse  //incorrect\n{\n\txfa.host.messageBox(messages.getMessage(\"Education\") +\"\\n\"+ messages.getMessage(\"Format_Entered\")+\n\t\"\\n\" + messages.getMessage(\"Education:E5\") + \"\\n\\n\" + messages.getMessage(\"Open Text\") +\n\t\"\\n\\n\" + util.findInvalidCharacters(\"Open Text\", this.rawValue), \"Validation Error\");\n\t\n\tcolor.markIncorrect(this);\n}\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page3.Education.EduLine1.School": {
      "label": "Education — Institution",
      "template_path": "form1.Page3.Education.EduLine1.School",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value\nif (!this.isNull)\n    this.rawValue = util.trim(this.rawValue);\n    \nif(util.validateFormat(\"Open Text\", this.rawValue) || this.isNull)  //good\n{\n\t//correct\n\tcolor.markCorrect(this);\t\n}\nelse\n{  //incorrect\n\txfa.host.messageBox(messages.getMessage(\"Education\") +\"\\n\"+ messages.getMessage(\"Format_Entered\")+\n\t\"\\n\" + messages.getMessage(\"Education:E6\") + \"\\n\\n\" + messages.getMessage(\"Open Text\") +\n\t\"\\n\\n\" + util.findInvalidCharacters(\"Open Text\", this.rawValue), \"Validation Error\");\n\t\n\tcolor.markIncorrect(this);\n}\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page3.Education.EduLine2.City": {
      "label": "Education — City/town",
      "template_path": "form1.Page3.Education.EduLine2.City",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value\nif (!this.isNull)\n    this.rawValue = util.trim(this.rawValue);\n\nif(util.validateFormat(\"Open Text\", this.rawValue) || this.isNull)  //good\n{\n\t//correct\n\tcolor.markCorrect(this);\t\n}\nelse  //incorrect\n{\n\txfa.host.messageBox(messages.getMessage(\"Education\") +\"\\n\"+ messages.getMessage(\"Format_Entered\")+\n\t\"\\n\" + messages.getMessage(\"Education:E7\") + \"\\n\\n\" + messages.getMessage(\"Open Text\") +\n\t\"\\n\\n\" + util.findInvalidCharacters(\"Open Text\", this.rawValue), \"Validation Error\");\n\n\tcolor.markIncorrect(this);\n}\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page3.Education.EduLine2.Country": {
      "label": "Education — Country",
      "template_path": "form1.Page3.Education.EduLine2.Country",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfBirthList.CountryOfBirth[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "if(this.mandatory == \"error\" && (!this.isNull))  //good\n{\n\tcolor.markCorrect(this);\t//correct\n}\nelse if (this.mandatory == \"error\" && (this.isNull))\n{\n\tcolor.markRequired(this);\n}\n",
        "//Prov/State, and PostalCode is required if Country is Canada or US\nif ((this.rawValue != \"\" || this.rawValue != null) && (this.rawValue == '511' || this.rawValue == '461') )\n{\n\tutil.enableField(Prov.somExpression, true);\t\n\tcolor.markRequired(Prov);\n\t//util.crossValidateCountryStatePostalCode(ProvinceState.ProvinceState, PostalCode.PostalCode, Country.Country, messages.getMessage(\"Contact_Information\"), messages.getMessage(\"Contact_Information:C1f\"));\n}\nelse\n{\t\n\tutil.enableField(Prov.somExpression, false);\n\tcolor.markUnRequired(Prov);\t\t\t\t\n}\n\n//set province based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(Prov, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(Prov, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(Prov, \"\");\n}\n",
        "//set province based on country, reinstantiate prov/state based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(Prov, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(Prov, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(Prov, \"\");\n}\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page3.Education.EduLine2.Prov": {
      "label": "Education — Province/state",
      "template_path": "form1.Page3.Education.EduLine2.Prov",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "if(this.mandatory == \"error\" && (!this.isNull))  //good\n{\n\tcolor.markCorrect(this);\t//correct\n}\nelse if (this.mandatory == \"error\" && (this.isNull))\n{\n\tcolor.markRequired(this);\n}\n"
      ],
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "form1.Page3.Employment.EmpRec1.Line1.From.YYYY": {
      "label": "Employment 1 — From date",
      "template_path": "form1.Page3.Employment.EmpRec1.Line1.From.YYYY",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n",
        "val.validateEduFromYear(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page3.Employment.EmpRec1.Line1.From.MM": {
      "label": "Employment 1 — From date",
      "template_path": "form1.Page3.Employment.EmpRec1.Line1.From.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n\tthis.rawValue = util.trim(this.rawValue);\n\tif (this.rawValue.charAt(0)  == \"-\")\n\t{\n\t\tthis.rawValue = null;\n\t}\n}\nval.validateEduMonth(this);\nval.validateEduDateInPresentOrPast(YYYY, this);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page3.Employment.EmpRec1.Line2.To.YYYY": {
      "label": "Employment 1 — To date",
      "template_path": "form1.Page3.Employment.EmpRec1.Line2.To.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//enable and make required the other fields\nif (!this.isNull || !MM.isNull)\n{\n\tcolor.markRequired(MM);\n\tcolor.markRequired(this);\n}\nelse\n{\n\tcolor.markUnRequired(MM);\n\tcolor.markUnRequired(this);\n}\n",
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page3.Employment.EmpRec1.Line2.To.MM": {
      "label": "Employment 1 — To date",
      "template_path": "form1.Page3.Employment.EmpRec1.Line2.To.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n\tthis.rawValue = util.trim(this.rawValue);\n\tif (this.rawValue.charAt(0)  == \"-\")\n\t{\n\t\tthis.rawValue = null;\n\t}\n}\nval.validateEduToYear(YYYY);\nval.validateEduMonth(this);\nval.validateEduCrossRef(Line1.From.YYYY, Line1.From.MM, YYYY, this, \"FromTo\");\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page3.Employment.EmpRec1.Line1.Occupation": {
      "label": "Employment 1 — Occupation/activity",
      "template_path": "form1.Page3.Employment.EmpRec1.Line1.Occupation",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page3.Employment.EmpRec1.Line1.Employer": {
      "label": "Employment 1 — Employer",
      "template_path": "form1.Page3.Employment.EmpRec1.Line1.Employer",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page3.Employment.EmpRec1.Line2.City": {
      "label": "Employment 1 — City/town",
      "template_path": "form1.Page3.Employment.EmpRec1.Line2.City",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page3.Employment.EmpRec1.Line2.Country": {
      "label": "Employment 1 — Country",
      "template_path": "form1.Page3.Employment.EmpRec1.Line2.Country",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfBirthList.CountryOfBirth[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "//Prov/State, and PostalCode is required if Country is Canada or US\nif ((this.rawValue != \"\" || this.rawValue != null) && (this.rawValue == '511' || this.rawValue == '461') )\n{\n\tutil.enableField(ProvState.somExpression, true);\t\n\tcolor.markRequired(ProvState);\n\t//util.crossValidateCountryStatePostalCode(ProvinceState.ProvinceState, PostalCode.PostalCode, Country.Country, messages.getMessage(\"Contact_Information\"), messages.getMessage(\"Contact_Information:C1f\"));\n}\nelse\n{\t\n\tutil.enableField(ProvState.somExpression, false);\n\tcolor.markUnRequired(ProvState);\t\t\t\t\n}\n\n//set province based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"\");\n}\n",
        "//set province based on country, reinstantiate prov/state based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"\");\n}\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page3.Employment.EmpRec1.Line2.ProvState": {
      "label": "Employment 1 — Province/state",
      "template_path": "form1.Page3.Employment.EmpRec1.Line2.ProvState",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "form1.Page4.EmpRec2.Line1.From.YYYY": {
      "label": "Employment 2 — From date",
      "template_path": "form1.Page4.EmpRec2.Line1.From.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateEduFromYear(this);\n",
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page4.EmpRec2.Line1.From.MM": {
      "label": "Employment 2 — From date",
      "template_path": "form1.Page4.EmpRec2.Line1.From.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n\tthis.rawValue = util.trim(this.rawValue);\n\tif (this.rawValue.charAt(0)  == \"-\")\n\t{\n\t\tthis.rawValue = null;\n\t}\n}\nval.validateEduMonth(this);\nval.validateEduDateInPresentOrPast(YYYY, this);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page4.EmpRec2.Line2.To.YYYY": {
      "label": "Employment 2 — To date",
      "template_path": "form1.Page4.EmpRec2.Line2.To.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//enable and make required the other fields\nif (!this.isNull || !MM.isNull)\n{\n\tcolor.markRequired(MM);\n\tcolor.markRequired(this);\n}\nelse\n{\n\tcolor.markUnRequired(MM);\n\tcolor.markUnRequired(this);\n}\n",
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page4.EmpRec2.Line2.To.MM": {
      "label": "Employment 2 — To date",
      "template_path": "form1.Page4.EmpRec2.Line2.To.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n    this.rawValue = util.trim(this.rawValue);\n\t if (this.rawValue.charAt(0)  == \"-\")\n\t {\n\t \tthis.rawValue = null;\n\t }\n}\n\nval.validateEduToYear(YYYY);\nval.validateEduMonth(this);\nval.validateEduCrossRef(Line1.From.YYYY, Line1.From.MM, YYYY, this, \"FromTo\");\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page4.EmpRec2.Line1.Occupation": {
      "label": "Employment 2 — Occupation/activity",
      "template_path": "form1.Page4.EmpRec2.Line1.Occupation",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n\n//If any one field has data make entire row required\n\tif (!From.YYYY.isNull || !From.MM.isNull || !this.isNull || !Employer.isNull || !Line2.To.YYYY.isNull || !Line2.To.MM.isNull || !Line2.City.isNull || !Line2.Country.isNull  || !Line2.ProvState.isNull){\n\t\tcolor.markRequired(From.YYYY);\n\t\tcolor.markRequired(From.MM);\n\t    color.markRequired(this);\n\t    color.markRequired(Employer);    \n\t    color.markRequired(Line2.City);\n\t    color.markRequired(Line2.Country);\n\t}\n\telse{\n\t\tcolor.markUnRequired(From.YYYY);\n\t\tcolor.markUnRequired(From.MM);\n\t    color.markUnRequired(this);\n\t    color.markUnRequired(Employer);    \n\t    color.markUnRequired(Line2.City);\n\t    color.markUnRequired(Line2.Country);\n\t} \n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page4.EmpRec2.Line1.Employer": {
      "label": "Employment 2 — Employer",
      "template_path": "form1.Page4.EmpRec2.Line1.Employer",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page4.EmpRec2.Line2.City": {
      "label": "Employment 2 — City/town",
      "template_path": "form1.Page4.EmpRec2.Line2.City",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page4.EmpRec2.Line2.Country": {
      "label": "Employment 2 — Country",
      "template_path": "form1.Page4.EmpRec2.Line2.Country",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfBirthList.CountryOfBirth[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "//Prov/State, and PostalCode is required if Country is Canada or US\nif ((this.rawValue != \"\" || this.rawValue != null) && (this.rawValue == '511' || this.rawValue == '461') )\n{\n\tutil.enableField(ProvState.somExpression, true);\t\n\tcolor.markRequired(ProvState);\n\t\n\t//util.crossValidateCountryStatePostalCode(ProvinceState.ProvinceState, PostalCode.PostalCode, Country.Country, messages.getMessage(\"Contact_Information\"), messages.getMessage(\"Contact_Information:C1f\"));\n}\nelse\n{\t\n\tutil.enableField(ProvState.somExpression, false);\n\tcolor.markUnRequired(ProvState);\t\t\t\t\n}\n\n//set province based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"\");\n}\n",
        "//set province based on country, reinstantiate prov/state based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"\");\n}\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page4.EmpRec2.Line2.ProvState": {
      "label": "Employment 2 — Province/state",
      "template_path": "form1.Page4.EmpRec2.Line2.ProvState",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "form1.Page4.EmpRec3.Line1.From.YYYY": {
      "label": "Employment 3 — From date",
      "template_path": "form1.Page4.EmpRec3.Line1.From.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateEduFromYear(this);\n",
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page4.EmpRec3.Line1.From.MM": {
      "label": "Employment 3 — From date",
      "template_path": "form1.Page4.EmpRec3.Line1.From.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n\tthis.rawValue = util.trim(this.rawValue);\n\tif (this.rawValue.charAt(0)  == \"-\")\n\t{\n\t\tthis.rawValue = null;\n\t}\n}\nval.validateEduMonth(this);\nval.validateEduDateInPresentOrPast(YYYY, this);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page4.EmpRec3.Line2.To.YYYY": {
      "label": "Employment 3 — To date",
      "template_path": "form1.Page4.EmpRec3.Line2.To.YYYY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//enable and make required the other fields\nif (!this.isNull || !MM.isNull)\n{\n\tcolor.markRequired(MM);\n\tcolor.markRequired(this);\n}\nelse\n{\n\tcolor.markUnRequired(MM);\n\tcolor.markUnRequired(this);\n}\n",
        "var myValue = xfa.event.newText;\nif (myValue.length == 4)\n\txfa.host.setFocus(MM);\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "form1.Page4.EmpRec3.Line2.To.MM": {
      "label": "Employment 3 — To date",
      "template_path": "form1.Page4.EmpRec3.Line2.To.MM",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//trim the value of negative characters, deisgner has a bug related to negatives\nif (!this.isNull)\n{\n\tthis.rawValue = util.trim(this.rawValue);\n\tif (this.rawValue.charAt(0)  == \"-\")\n\t{\n\t\tthis.rawValue = null;\n\t}\n}\n\nval.validateEduToYear(YYYY);\nval.validateEduMonth(this);\nval.validateEduCrossRef(Line1.From.YYYY, Line1.From.MM, YYYY, this, \"FromTo\");\n"
      ],
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "form1.Page4.EmpRec3.Line1.Occupation": {
      "label": "Employment 3 — Occupation/activity",
      "template_path": "form1.Page4.EmpRec3.Line1.Occupation",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n\n//If any one field has data make entire row required\nif (!From.YYYY.isNull || !From.MM.isNull || !this.isNull || !Employer.isNull || !Line2.To.YYYY.isNull || !Line2.To.MM.isNull || !Line2.City.isNull || !Line2.Country.isNull  || !Line2.ProvState.isNull)\n{\n\tcolor.markRequired(From.YYYY);\n\tcolor.markRequired(From.MM);\n    color.markRequired(this);\n    color.markRequired(Employer);    \n    color.markRequired(Line2.City);\n    color.markRequired(Line2.Country);\n}\nelse\n{\n\tcolor.markUnRequired(From.YYYY);\n\tcolor.markUnRequired(From.MM);\n    color.markUnRequired(this);\n    color.markUnRequired(Employer);    \n    color.markUnRequired(Line2.City);\n    color.markUnRequired(Line2.Country);\n} \n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page4.EmpRec3.Line1.Employer": {
      "label": "Employment 3 — Employer",
      "template_path": "form1.Page4.EmpRec3.Line1.Employer",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "form1.Page4.EmpRec3.Line2.City": {
      "label": "Employment 3 — City/town",
      "template_path": "form1.Page4.EmpRec3.Line2.City",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "form1.Page4.EmpRec3.Line2.Country": {
      "label": "Employment 3 — Country",
      "template_path": "form1.Page4.EmpRec3.Line2.Country",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.CountryOfBirthList.CountryOfBirth[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n",
        "//Prov/State, and PostalCode is required if Country is Canada or US\nif ((this.rawValue != \"\" || this.rawValue != null) && (this.rawValue == '511' || this.rawValue == '461') )\n{\n\tutil.enableField(ProvState.somExpression, true);\t\n\tcolor.markRequired(ProvState);\n\n\t//util.crossValidateCountryStatePostalCode(ProvinceState.ProvinceState, PostalCode.PostalCode, Country.Country, messages.getMessage(\"Contact_Information\"), messages.getMessage(\"Contact_Information:C1f\"));\n}\nelse\n{\t\n\tutil.enableField(ProvState.somExpression, false);\n\tcolor.markUnRequired(ProvState);\t\t\t\t\n}\n\n//set province based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"\");\n}\n",
        "//set province based on country, reinstantiate prov/state based on country\nif(this.rawValue == \"511\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"ProvinceAbbrevList.ProvinceAbbrev[*]\");\n}\nelse if(this.rawValue == \"461\")\n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"StateAbbrevList.StateAbbrev[*]\");\n}\nelse \n{\n\tLOVUtils.setDDLFromLOV(ProvState, \"\");\n}\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "form1.Page4.EmpRec3.Line2.ProvState": {
      "label": "Employment 3 — Province/state",
      "template_path": "form1.Page4.EmpRec3.Line2.ProvState",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDown(this);\n"
      ],
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "form1.Page4.BackgroundInfo.HealthQ.qANY": {
      "label": "Tuberculosis or close contact",
      "template_path": "form1.Page4.BackgroundInfo.HealthQ.qANY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tif(qBNY.rawValue == \"N\" && qBNY.rawValue != \"\")\n\t{\n\t\tcolor.markUnRequired(MedicalDetails);\n\t \tutil.enableField(MedicalDetails.somExpression, false);\n\t}\n\telse \n\t \tutil.enableField(MedicalDetails.somExpression, true);\n}\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(MedicalDetails);\n\tutil.enableField(MedicalDetails.somExpression, true);\n}\n\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.HealthQ.qBNY": {
      "label": "Physical/mental condition requiring services",
      "template_path": "form1.Page4.BackgroundInfo.HealthQ.qBNY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull){\n\tif(qANY.rawValue == \"N\"  && qANY.rawValue != \"\")\n\t{\n\t\tcolor.markUnRequired(MedicalDetails);\n\t\tutil.enableField(MedicalDetails.somExpression, false);\n\t}\n\telse\n\t{\n\t\tutil.enableField(MedicalDetails.somExpression, true);\n\t}\t\n}\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(MedicalDetails);\n\tutil.enableField(MedicalDetails.somExpression, true);\n}\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.PrevApplied.qANY": {
      "label": "Overstay, unauthorized study or work in Canada",
      "template_path": "form1.Page4.BackgroundInfo.PrevApplied.qANY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(refusedDetails);\n\tutil.enableField(refusedDetails.somExpression, true);\n}\n",
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tif((qBNY.rawValue == \"N\" && qBNY.rawValue != \"\") && (qCNY.rawValue == \"N\" && qCNY.rawValue != \"\"))\n\t{\n\t\tcolor.markUnRequired(refusedDetails);\n\t \tutil.enableField(refusedDetails.somExpression, false);\n\t}\n\telse \n\t \tutil.enableField(refusedDetails.somExpression, true);\n}\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "Y",
        "N"
      ]
    },
    "form1.Page4.BackgroundInfo.PrevApplied.qBNY": {
      "label": "Visa/permit refusal, denied entry or ordered to leave",
      "template_path": "form1.Page4.BackgroundInfo.PrevApplied.qBNY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(refusedDetails);\n\tutil.enableField(refusedDetails.somExpression, true);\n}\n\n",
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tif((qANY.rawValue == \"N\" && qANY.rawValue != \"\") && (qCNY.rawValue == \"N\" && qCNY.rawValue != \"\"))\n\t{\n\t\tcolor.markUnRequired(refusedDetails);\n\t \tutil.enableField(refusedDetails.somExpression, false);\n\t}\n\telse \n\t \tutil.enableField(refusedDetails.somExpression, true);\n}\n\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "Y",
        "N"
      ]
    },
    "form1.Page4.BackgroundInfo.PrevApplied.qCNY": {
      "label": "Previously applied to enter or remain in Canada",
      "template_path": "form1.Page4.BackgroundInfo.PrevApplied.qCNY",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/10/13 GCMS100094545.\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tif((qANY.rawValue == \"N\" && qANY.rawValue != \"\") && (qBNY.rawValue == \"N\" && qBNY.rawValue != \"\"))\n\t{\n\t\tcolor.markUnRequired(refusedDetails);\n\t \tutil.enableField(refusedDetails.somExpression, false);\n\t}\n\telse \n\t \tutil.enableField(refusedDetails.somExpression, true);\n}\n\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/10/13 GCMS100094545.\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(refusedDetails);\n\tutil.enableField(refusedDetails.somExpression, true);\n}\n\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.Criminal.qANY": {
      "label": "Criminal offences",
      "template_path": "form1.Page4.BackgroundInfo.Criminal.qANY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tif(this.rawValue == \"N\" && this.rawValue != \"\")\n\t{\n\t\tcolor.markUnRequired(refusedDetails);\n\t \tutil.enableField(refusedDetails.somExpression, false);\n\t}\n\telse \n\t \tutil.enableField(refusedDetails.somExpression, true);\n}\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(refusedDetails);\n\tutil.enableField(refusedDetails.somExpression, true);\n}\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.Military.qANY": {
      "label": "Military/militia/security/police service",
      "template_path": "form1.Page4.BackgroundInfo.Military.qANY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tutil.enableField(militaryServiceDetails.somExpression, false);\n\tcolor.markUnRequired(militaryServiceDetails);\n}\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n\nif (!this.isNull)\n{\n\tcolor.markRequired(militaryServiceDetails);\n\tutil.enableField(militaryServiceDetails.somExpression, true);\n}\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.GovPosition.qGovtNY": {
      "label": "Association with groups using violence or crime",
      "template_path": "form1.Page4.BackgroundInfo.GovPosition.qGovtNY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.Illtreatment.qWitnessNY": {
      "label": "Ill-treatment, looting or religious desecration",
      "template_path": "form1.Page4.BackgroundInfo.Illtreatment.qWitnessNY",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.HealthQ.MedicalDetails": {
      "label": "Medical explanation",
      "template_path": "form1.Page4.BackgroundInfo.HealthQ.MedicalDetails",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "form1.Page4.BackgroundInfo.PrevApplied.refusedDetails": {
      "label": "Immigration history explanation",
      "template_path": "form1.Page4.BackgroundInfo.PrevApplied.refusedDetails",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "form1.Page4.BackgroundInfo.Criminal.refusedDetails": {
      "label": "Criminal explanation",
      "template_path": "form1.Page4.BackgroundInfo.Criminal.refusedDetails",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "form1.Page4.BackgroundInfo.Military.militaryServiceDetails": {
      "label": "Military service details",
      "template_path": "form1.Page4.BackgroundInfo.Military.militaryServiceDetails",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "form1.Page4.Consent1.Signature.FutureComm": {
      "label": "Consent to future contact",
      "template_path": "form1.Page4.Consent1.Signature.FutureComm",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/10/13 GCMS100094545.\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/10/13 GCMS100094545.\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n//this.parent.mandatory = \"disabled\"\t//CPARK 5/29/12\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page1.PersonalDetails.ApplyingFor.Extend": {
      "label": "Work permit with same employer",
      "template_path": "form1.Page1.PersonalDetails.ApplyingFor.Extend",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CP 3/19/12\n//CPARK4/12/12 fix post rollback\nif (this.rawValue == false && RestoreStat.rawValue == false && NewEmployer.rawValue == false && TRP.rawValue == false)\t//CPARK 5/7/12\n\tcolor.markRequired(this)\n",
        "//CP 4/2/12\nif (this.rawValue == true || RestoreStat.rawValue == true || NewEmployer.rawValue == true || TRP.rawValue == true)\t//CPARK 5/7/12\n{\n\t//CPARK 7/25/13 GCMS100094545\n\t//color.markUnRequired(this)\n\t//color.markUnRequired(RestoreStat)\n\t//color.markUnRequired(NewEmployer)\n\t//color.markUnRequired(TRP)\t\t//CPARK 5/7/12\n\tcolor.markCorrect(this);\t\n\tcolor.markCorrect(RestoreStat)\n\tcolor.markCorrect(NewEmployer)\n\tcolor.markCorrect(TRP)\t\t//CPARK 5/7/12\n\t\n\tvalidateForm.validate5710TRIndicator()\t//CPARK6/20\t79838\n}\n//CPARK 7/31/13 reenabled code 94717\nelse\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(RestoreStat)\n\tcolor.markRequired(NewEmployer)\n\tcolor.markRequired(TRP)\t\t//CPARK 5/7/12\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page1.PersonalDetails.ApplyingFor.NewEmployer": {
      "label": "First work permit or new employer",
      "template_path": "form1.Page1.PersonalDetails.ApplyingFor.NewEmployer",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CP 3/19/12\nif (this.rawValue == false && RestoreStat.rawValue == false && Extend.rawValue == false && TRP.rawValue == false)\t//CPARK 5/7/12\n\tcolor.markRequired(this)\n",
        "//CP 4/2/12\nif (this.rawValue == true || Extend.rawValue == true || RestoreStat.rawValue == true || TRP.rawValue == true)\t//CPARK5/7/12\n{\n\t//CPARK 7/25/13 GCMS100094545\n\t//color.markUnRequired(this)\n\t//color.markUnRequired(Extend)\n\t//color.markUnRequired(RestoreStat)\n\t//color.markUnRequired(TRP)\t//CPARK5/7/12\n\tcolor.markCorrect(this);\t\n\tcolor.markCorrect(Extend)\t\n\tcolor.markCorrect(RestoreStat)\n\tcolor.markCorrect(TRP)\t//CPARK5/7/12\n\n\tvalidateForm.validate5710TRIndicator()\t//CPARK6/20\t79838\t\n}\n//CPARK 7/31/13 reenabled code 94717\nelse\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(Extend)\n\tcolor.markRequired(RestoreStat)\n\tcolor.markRequired(TRP)\t//CPARK5/7/12\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page1.PersonalDetails.ApplyingFor.RestoreStat": {
      "label": "Restore worker status",
      "template_path": "form1.Page1.PersonalDetails.ApplyingFor.RestoreStat",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CP 3/19/12\n//CPARK 4/12/12 fix post rollback\nif (this.rawValue == false && Extend.rawValue == false && NewEmployer.rawValue == false && TRP.rawValue == false)\t//CPARK 5/7/12\n\tcolor.markRequired(this)\n",
        "//CP 4/2/12\nif (this.rawValue == true || Extend.rawValue == true || NewEmployer.rawValue == true || TRP.rawValue == true)\t//CPARK5/7/12\n{\n\t//CPARK 7/25/13 GCMS100094545\n\t//color.markUnRequired(this)\n\t//color.markUnRequired(Extend)\n\t//color.markUnRequired(NewEmployer)\n\t//color.markUnRequired(TRP)\t//CPARK5/7/12\n\tcolor.markCorrect(this);\t\n\tcolor.markCorrect(Extend)\t\n\tcolor.markCorrect(NewEmployer)\n\tcolor.markCorrect(TRP)\t//CPARK 5/7/12\n\t\n\tvalidateForm.validate5710TRIndicator()\t//CPARK6/20\t79838\n}\n//CPARK 7/31/13 reenabled code 94717\nelse\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(Extend)\n\tcolor.markRequired(NewEmployer)\n\tcolor.markRequired(TRP)\t//CPARK5/7/12\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page1.PersonalDetails.ApplyingFor.TRP": {
      "label": "New temporary resident permit",
      "template_path": "form1.Page1.PersonalDetails.ApplyingFor.TRP",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CP 3/19/12\nif (this.rawValue == false && RestoreStat.rawValue == false && Extend.rawValue == false && NewEmployer.rawValue == false)\t//CPARK5/7/12\n\tcolor.markRequired(this)\n",
        "//CP 4/2/12\nif (this.rawValue == true || Extend.rawValue == true || RestoreStat.rawValue == true || NewEmployer.rawValue == true)\t//CPARK5/7/12\n{\n\t//CPARK 7/25/13 GCMS100094545\n\t//color.markUnRequired(this)\n\t//color.markUnRequired(Extend)\n\t//color.markUnRequired(RestoreStat)\n\t//color.markUnRequired(NewEmployer)\t//CPARK5/7/12\n\tcolor.markCorrect(this);\t\n\tcolor.markCorrect(Extend)\t\n\tcolor.markCorrect(RestoreStat)\n\tcolor.markCorrect(NewEmployer)\t//CPARK5/7/12\n\n\tvalidateForm.validate5710TRIndicator()\t//CPARK6/20\t79838\n}\n//CPARK 7/31/13 reenabled code 94717\nelse\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(Extend)\n\tcolor.markRequired(RestoreStat)\n\tcolor.markRequired(NewEmployer)\t//CPARK5/7/12\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "1",
        "0",
        "2"
      ]
    },
    "form1.Page3.DetailsOfWork.Purpose.Type": {
      "label": "Work permit type",
      "template_path": "form1.Page3.DetailsOfWork.Purpose.Type",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.WorkPermitTypeInLandList.WorkPermitTypeInLand[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "nullTest": "error",
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDownList(this, \"xfa.datasets.LOVFile.LOV.WorkPermitTypeInLandList\");\nval.validateDropDown(this);\n",
        "//CPARK 11/8/13 added null check to if\n//xfa.host.messageBox(this.rawValue+ \"val\")\n//if (this.rawValue == \"OWP\" || this.rawValue == \"OCWP\" || this.rawValue == \"PGWP\" || this.rawValue == \"COWP\" || this.rawValue == null)\t//OWP = open work permit\nif (this.rawValue == \"OWP\" || this.rawValue == \"PGWP\" || this.rawValue == \"COWP\" || this.rawValue == \"VWOWP\" || this.rawValue == null)\t//470413 Added check for \"Open work permit for vulnerable workers\"\n{\n \tcolor.markUnRequired(Employer.Name);\n\tcolor.markUnRequired(Employer.Addr);\n\tcolor.markUnRequired(Location.Prov);\n\tcolor.markUnRequired(Location.City);\n\tcolor.markUnRequired(Location.Addr);\n\t\n\tcolor.markUnRequired(Occupation.Job);\n\tcolor.markUnRequired(Occupation.Desc);\n\t\n\tcolor.markUnRequired(Duration.FromDate);\n\tcolor.markUnRequired(Duration.ToDate);\n\t\n\t//CPARK 9/30/13 22123\n\t//color.markUnRequired(Duration.LMO);\n}\nelse\n{ \n \tcolor.markRequired(Employer.Name);\n\tcolor.markRequired(Employer.Addr);\n\tcolor.markRequired(Location.Prov);\n\tcolor.markRequired(Location.City);\n\tcolor.markRequired(Location.Addr);\n\tcolor.markRequired(Occupation.Job);\n\tcolor.markRequired(Occupation.Desc);\n\tcolor.markRequired(Duration.FromDate);\n\tcolor.markRequired(Duration.ToDate);\n\t\t\t\t\t\n}\n\n////////////////////LMIA///////////////////////////\nif (this.rawValue == \"LMOS\" || this.rawValue == \"ELMO\") {\n\tcolor.markRequired(Duration.LMO);\n\tutil.enableField(Duration.LMO.somExpression, true);\n}\nelse if (this.rawValue == null){\n\tcolor.markUnRequired(Duration.LMO);\n\tutil.enableField(Duration.LMO.somExpression, true);\n}\nelse{\n\n\tcolor.markUnRequired(Duration.LMO);\n\tutil.enableField(Duration.LMO.somExpression, false);\n}\n\n\n\n\n//CPARK5/1/12\nif (this.rawValue == \"Other\" )   //Other is LIC\n{\n\tutil.enableField(Other.somExpression, true);\n\tcolor.markRequired(Other);\n}\t\nelse\n{ \n \tcolor.markUnRequired(Other);\n \t//CPARK 11/8/13 added null chk\n \tif (this.rawValue == null)\n \t\tutil.enableField(Other.somExpression, true);\n \telse\n\t\tutil.enableField(Other.somExpression, false);\n}\n\n\n//Enable disable CAQ based on prov and permit type\nif (Location.Prov.rawValue  === \"05\") {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((this.rawValue == null || this.rawValue === \"\") && (Location.Prov.rawValue == null || Location.Prov.rawValue === \"\")) {\n\tutil.enableField(CAQ.CertNum.somExpression, true);\n\tutil.enableField(CAQ.CertExpiry.somExpression, true);\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((this.rawValue  !=  null && this.rawValue  !== \"\")  &&  (Location.Prov.rawValue  !== \"05\" || Location.Prov.rawValue == null ||Location.Prov.rawValue === \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\nelse if ((this.rawValue == null || this.rawValue === \"\") && (Location.Prov.rawValue !== \"05\" && Location.Prov.rawValue != null &&Location.Prov.rawValue !== \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\n// Safety default (optional)\nelse {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\n\n//Check for Partial Records question2\nvar sPermitType = this.rawValue;\nif(!Employer.Addr.isNull || !Employer.Name.isNull ){\n\t\tcolor.markRequired(Employer.Name);\t\n\t\tcolor.markRequired(Employer.Addr);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Employer.Name);\t\n\t\t\tcolor.markUnRequired(Employer.Addr);\t\n\n\t\t}\n}\n\n//Check for Partial Records question3\nif(!Location.City.isNull || !Location.Prov.isNull || !Location.Addr.isNull ){\n\t\tcolor.markRequired(Location.Prov);\t\n\t\tcolor.markRequired(Location.City);\t\n\t\tcolor.markRequired(Location.Addr);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Location.Prov);\t\n\t\t\tcolor.markUnRequired(Location.City);\t\n\t\t\tcolor.markUnRequired(Location.Addr);\n\t\t}\n}\n\n\n\n//check for partial RECORDS question 4\nif(!Occupation.Desc.isNull || !Occupation.Job.isNull  ){\n\t\tcolor.markRequired(Occupation.Job);\t\n\t\tcolor.markRequired(Occupation.Desc);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\"){\n\t\t\tcolor.markUnRequired(Occupation.Job);\t\t\n\t\t\tcolor.markUnRequired(Occupation.Desc);\n\t\t}\n}\n\n//Check for Partial Records question5\nif(!Duration.ToDate.isNull || !Duration.FromDate.isNull){\n\tcolor.markRequired(Duration.FromDate);\t\n\tcolor.markRequired(Duration.ToDate);\t\n}\nelse{\n\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" || sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\tcolor.markUnRequired(Duration.ToDate);\t\n\t\tcolor.markUnRequired(Duration.FromDate);\t\n\t}\n}\n",
        "val.validateDropDownList(this, \"xfa.datasets.LOVFile.LOV.WorkPermitTypeInLandList\");\n\n//CPARK 11/8/13 added null check to if\n//xfa.host.messageBox(this.rawValue+ \"val\")\n//if (this.rawValue == \"OWP\" || this.rawValue == \"OCWP\" || this.rawValue == \"PGWP\" || this.rawValue == \"COWP\" || this.rawValue == null)\t//OWP = open work permit\nif (this.rawValue == \"OWP\" || this.rawValue == \"PGWP\" || this.rawValue == \"COWP\" || this.rawValue == \"VWOWP\" || this.rawValue == null)\t//470413 Added check for \"Open work permit for vulnerable workers\"\n{\n \tcolor.markUnRequired(Employer.Name);\n\tcolor.markUnRequired(Employer.Addr);\n\tcolor.markUnRequired(Location.Prov);\n\tcolor.markUnRequired(Location.City);\n\tcolor.markUnRequired(Location.Addr);\n\t\n\tcolor.markUnRequired(Occupation.Job);\n\tcolor.markUnRequired(Occupation.Desc);\n\t\n\tcolor.markUnRequired(Duration.FromDate);\n\tcolor.markUnRequired(Duration.ToDate);\n\t\n\t//CPARK 9/30/13 22123\n\t//color.markUnRequired(Duration.LMO);\n}\nelse\n{ \n \tcolor.markRequired(Employer.Name);\n\tcolor.markRequired(Employer.Addr);\n\tcolor.markRequired(Location.Prov);\n\tcolor.markRequired(Location.City);\n\tcolor.markRequired(Location.Addr);\n\tcolor.markRequired(Occupation.Job);\n\tcolor.markRequired(Occupation.Desc);\n\tcolor.markRequired(Duration.FromDate);\n\tcolor.markRequired(Duration.ToDate);\n\t\t\t\t\t\n}\n\n////////////////////LMIA///////////////////////////\nif (this.rawValue == \"LMOS\" || this.rawValue == \"ELMO\") {\n\tcolor.markRequired(Duration.LMO);\n\tutil.enableField(Duration.LMO.somExpression, true);\n}\nelse if (this.rawValue == null){\n\tcolor.markUnRequired(Duration.LMO);\n\tutil.enableField(Duration.LMO.somExpression, true);\n}\nelse{\n\n\tcolor.markUnRequired(Duration.LMO);\n\tutil.enableField(Duration.LMO.somExpression, false);\n}\n\n\n\n\n//CPARK5/1/12\nif (this.rawValue == \"Other\" )   //Other is LIC\n{\n\tutil.enableField(Other.somExpression, true);\n\tcolor.markRequired(Other);\n}\t\nelse\n{ \n \tcolor.markUnRequired(Other);\n \t//CPARK 11/8/13 added null chk\n \tif (this.rawValue == null)\n \t\tutil.enableField(Other.somExpression, true);\n \telse\n\t\tutil.enableField(Other.somExpression, false);\n}\n\n\n//Enable disable CAQ based on prov and permit type\nif (Location.Prov.rawValue  === \"05\") {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((this.rawValue == null || this.rawValue === \"\") && (Location.Prov.rawValue == null || Location.Prov.rawValue === \"\")) {\n\tutil.enableField(CAQ.CertNum.somExpression, true);\n\tutil.enableField(CAQ.CertExpiry.somExpression, true);\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((this.rawValue  !=  null && this.rawValue  !== \"\")  &&  (Location.Prov.rawValue  !== \"05\" || Location.Prov.rawValue == null ||Location.Prov.rawValue === \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\nelse if ((this.rawValue == null || this.rawValue === \"\") && (Location.Prov.rawValue !== \"05\" && Location.Prov.rawValue != null &&Location.Prov.rawValue !== \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\n// Safety default (optional)\nelse {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\n\n//Check for Partial Records question2\nvar sPermitType = this.rawValue;\nif(!Employer.Addr.isNull || !Employer.Name.isNull ){\n\t\tcolor.markRequired(Employer.Name);\t\n\t\tcolor.markRequired(Employer.Addr);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Employer.Name);\t\n\t\t\tcolor.markUnRequired(Employer.Addr);\t\n\n\t\t}\n}\n\n//Check for Partial Records question3\nif(!Location.City.isNull || !Location.Prov.isNull || !Location.Addr.isNull ){\n\t\tcolor.markRequired(Location.Prov);\t\n\t\tcolor.markRequired(Location.City);\t\n\t\tcolor.markRequired(Location.Addr);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Location.Prov);\t\n\t\t\tcolor.markUnRequired(Location.City);\t\n\t\t\tcolor.markUnRequired(Location.Addr);\n\t\t}\n}\n\n\n\n//check for partial RECORDS question 4\nif(!Occupation.Desc.isNull || !Occupation.Job.isNull  ){\n\t\tcolor.markRequired(Occupation.Job);\t\n\t\tcolor.markRequired(Occupation.Desc);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\"){\n\t\t\tcolor.markUnRequired(Occupation.Job);\t\t\n\t\t\tcolor.markUnRequired(Occupation.Desc);\n\t\t}\n}\n\n//Check for Partial Records question5\nif(!Duration.ToDate.isNull || !Duration.FromDate.isNull){\n\tcolor.markRequired(Duration.FromDate);\t\n\tcolor.markRequired(Duration.ToDate);\t\n}\nelse{\n\tif(sPermitType == \"OWP\" || sPermitType  == \"PGWP\" || sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\tcolor.markUnRequired(Duration.ToDate);\t\n\t\tcolor.markUnRequired(Duration.FromDate);\t\n\t}\n}\n\n\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "COWP": "Co-op Work Permit",
        "ELMO": "Exemption from Labour Market Impact Assessment",
        "LMOS": "Labour Market Impact Assessment Stream",
        "LCP": "Live-in Caregiver Program",
        "OWP": "Open Work Permit",
        "VWOWP": "Open Work Permit for Vulnerable Workers",
        "Other": "Other",
        "PGWP": "Post Graduation Work Permit",
        "SBC": "Start-up Business Class"
      }
    },
    "form1.Page3.DetailsOfWork.Purpose.Other": {
      "label": "Other work permit details",
      "template_path": "form1.Page3.DetailsOfWork.Purpose.Other",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": "work_permit_type:Other",
        "optional": true
      },
      "max_chars": 50
    },
    "form1.Page3.DetailsOfWork.Employer.Name": {
      "label": "Employer name",
      "template_path": "form1.Page3.DetailsOfWork.Employer.Name",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 200
    },
    "form1.Page3.DetailsOfWork.Employer.Addr": {
      "label": "Employer complete address",
      "template_path": "form1.Page3.DetailsOfWork.Employer.Addr",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//check for partial records for address\nvar sPermitType = Purpose.Type.rawValue;\nif(!this.isNull || !Name.isNull ){\n\t\tcolor.markRequired(Name);\t\n\t\tcolor.markRequired(this);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"OCWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Name);\t\n\t\t\tcolor.markUnRequired(this);\t\n\n\t\t}\n}\n\n\nval.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 150
    },
    "form1.Page3.DetailsOfWork.Location.Prov": {
      "label": "Work province",
      "template_path": "form1.Page3.DetailsOfWork.Location.Prov",
      "bindings": [
        {
          "ref": "xfa.datasets.LOVFile.LOV.ProvinceAbbrevList.ProvinceAbbrev[*]",
          "labelRef": "$",
          "valueRef": "lic",
          "template_kind": "bindItems"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDropDownList(this, \"xfa.datasets.LOVFile.LOV.ProvinceAbbrevList\");\nval.validateDropDown(this);\n\n\n",
        "if (this.rawValue != null && this.rawValue != \"\") \n{\n\tutil.enableField(City.somExpression, true);\n\tLOVUtils.setDDLFromLOV(City, \"CityList.\" + this.formattedValue+\".City[*]\");//set LOVs\n}\nelse\n{\n\tCity.rawValue = null;\n\tLOVUtils.setDDLFromLOV(City, \"\");//set LOVs\n\tutil.enableField(City.somExpression, false);\n}\n\n//Enable disable CAQ based on prov and permit type\nif (this.rawValue  === \"05\") {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((Purpose.Type.rawValue == null || Purpose.Type.rawValue === \"\") && (this.rawValue == null || this.rawValue === \"\")) {\n\tutil.enableField(CAQ.CertNum.somExpression, true);\n\tutil.enableField(CAQ.CertExpiry.somExpression, true);\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((Purpose.Type.rawValue != null && Purpose.Type.rawValue !== \"\") && (this.rawValue  !== \"05\" || this.rawValue == null || this.rawValue === \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\nelse if ((Purpose.Type.rawValue == null || Purpose.Type.rawValue === \"\") && (this.rawValue !== \"05\" && this.rawValue != null && this.rawValue !== \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\n// Safety default (optional)\nelse {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\n",
        "val.validateDropDownList(this, \"xfa.datasets.LOVFile.LOV.ProvinceAbbrevList\");\n\nif (this.rawValue != null && this.rawValue != \"\") \n{\n\tutil.enableField(City.somExpression, true);\n\tLOVUtils.setDDLFromLOV(City, \"CityList.\" + this.formattedValue+\".City[*]\");//set LOVs\n}\nelse\n{\n\tCity.rawValue = null;\n\tLOVUtils.setDDLFromLOV(City, \"\");//set LOVs\n}\n\n//Enable disable CAQ based on prov and permit type\nif (this.rawValue  === \"05\") {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((Purpose.Type.rawValue == null || Purpose.Type.rawValue === \"\") && (this.rawValue == null || this.rawValue === \"\")) {\n\tutil.enableField(CAQ.CertNum.somExpression, true);\n\tutil.enableField(CAQ.CertExpiry.somExpression, true);\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\nelse if ((Purpose.Type.rawValue != null && Purpose.Type.rawValue !== \"\") && (this.rawValue  !== \"05\" || this.rawValue == null || this.rawValue === \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\nelse if ((Purpose.Type.rawValue == null || Purpose.Type.rawValue === \"\") && (this.rawValue !== \"05\" && this.rawValue != null && this.rawValue !== \"\")) {\n\tcolor.markUnRequired(CAQ.CertNum)\n\tutil.enableField(CAQ.CertNum.somExpression, false)\n\tcolor.markUnRequired(CAQ.CertExpiry)\n\tutil.enableField(CAQ.CertExpiry.somExpression, false)\n}\n// Safety default (optional)\nelse {\n\tutil.enableField(CAQ.CertNum.somExpression, true)\n\tutil.enableField(CAQ.CertExpiry.somExpression, true)\t\n\tif(CAQ.CertNum.isNull && CAQ.CertExpiry.isNull){\n\t\tcolor.markUnRequired(CAQ.CertNum);\n\t\tcolor.markUnRequired(CAQ.CertExpiry);\n\t}\n}\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      }
    },
    "form1.Page3.DetailsOfWork.Location.City": {
      "label": "Work city",
      "template_path": "form1.Page3.DetailsOfWork.Location.City",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "if (Prov.rawValue != null && Prov.rawValue != \"\") \n{\n\tval.validateDropDownList(this, \"xfa.datasets.LOVFile.LOV.CityList.\" + Prov.formattedValue);\n} else {\n\tthis.rawValue = null;\n}\n\nval.validateDropDown(this);\n\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "city_choices": {
        "AB": {
          "7004": "Acme",
          "7005": "Aden",
          "7751": "Aetna",
          "7006": "Airdrie",
          "7008": "Alberta Beach",
          "7007": "Alder Flats",
          "7009": "Alexander, AB",
          "7011": "Alhambra, AB",
          "7010": "Alix",
          "7012": "Alliance",
          "7014": "Amisk",
          "7016": "Andrew",
          "7019": "Anzac",
          "7017": "Ardmore",
          "7015": "Ardrossan",
          "7018": "Argentia Beach",
          "7020": "Arrowwood",
          "7021": "Ashmont",
          "7022": "Athabasca",
          "7024": "Balac",
          "7135": "Balzac",
          "7023": "Banff",
          "7028": "Barnwell",
          "7030": "Barons",
          "7032": "Barrhead",
          "7033": "Barrons",
          "7034": "Bashaw",
          "7036": "Bassano",
          "7038": "Bawlf",
          "7039": "Beaumont",
          "7040": "Beaver Lodge",
          "7042": "Beiseker",
          "7044": "Bellevue",
          "7046": "Bentley",
          "7050": "Bertula Beach",
          "7048": "Berwyn",
          "7052": "Big Valley",
          "7054": "Bitternlake",
          "7056": "Black Diamond",
          "7058": "Blackfalds",
          "7060": "Blackie",
          "7061": "Blacktoct",
          "7062": "Blairmore",
          "7063": "Blufftir",
          "7055": "Bluffton",
          "7064": "Bon Accord",
          "7066": "Bonnyville",
          "7068": "Bonnyville Beach",
          "7070": "Botha",
          "7072": "Bow Island",
          "7074": "Bowden",
          "7076": "Boyle",
          "7077": "Bragg Creek",
          "7078": "Breton",
          "7080": "Brooks",
          "7082": "Bruderheim",
          "7083": "Buck Lake",
          "7084": "Burdett",
          "7086": "Busby",
          "7090": "Calgary",
          "7100": "Calmar",
          "7102": "Camrose",
          "7104": "Canmore",
          "7106": "Carbon",
          "9101": "Carbondale",
          "9100": "Cardiff",
          "7108": "Cardston",
          "7110": "Carmangay",
          "7112": "Caroline",
          "7114": "Carstairs",
          "7025": "Carvel",
          "7116": "Castle Island",
          "7118": "Castor",
          "7120": "Cayley",
          "7122": "Cereal",
          "7123": "Cessford",
          "7124": "Champion",
          "7103": "Chateh",
          "7126": "Chauvin",
          "7125": "Cherhill",
          "7752": "Chestermere",
          "7129": "Chief Mountain",
          "7127": "Chinook",
          "7128": "Chipman, AB",
          "7131": "Clairmont, AB",
          "7130": "Claresholm",
          "7132": "Clive",
          "7134": "Cluny",
          "7136": "Clyde",
          "7398": "Coaldale",
          "7137": "Coalhurst",
          "7138": "Cochrane, AB",
          "7140": "Cold Lake",
          "7142": "Coleman",
          "7143": "College Heights",
          "7144": "Consort",
          "7146": "Coronation",
          "7148": "Coutts",
          "7150": "Cowley",
          "7152": "Craigmyle",
          "7154": "Cremona",
          "7156": "Crossfield",
          "7158": "Crystal Srpings",
          "7159": "Czar",
          "7160": "Daysland",
          "7169": "De Winton",
          "7026": "Debolt",
          "7161": "Del Bonita Falls",
          "7027": "Delacour",
          "7162": "Delburne",
          "7164": "Delia",
          "7166": "Derwent",
          "7200": "Devon",
          "7170": "Dewberry",
          "7171": "Diamond City",
          "7172": "Didsbury",
          "7174": "Donalda",
          "7176": "Donnelly",
          "7178": "Drayton Valley",
          "7180": "Drumheller",
          "7182": "Duchess",
          "7139": "Dunmore",
          "7190": "Eaglesham",
          "7192": "Eckville",
          "7194": "Edberg",
          "7196": "Edgerton",
          "7198": "Edmonton",
          "7204": "Edmonton Beach",
          "7222": "Edson",
          "7224": "Elk Point",
          "7226": "Elnora",
          "7228": "Empress",
          "7229": "Enchant",
          "7230": "Entwistle",
          "7029": "Erskine",
          "7232": "Evansburg",
          "7234": "Fairview",
          "7236": "Falher",
          "7205": "Faust",
          "7238": "Ferintosh",
          "7240": "Foremost",
          "7243": "Forest Lawn",
          "7242": "Forestburg",
          "7244": "Fort Assiniboine",
          "7245": "Fort Chipewyan",
          "7246": "Fort Macleod",
          "7248": "Fort Mcmurray",
          "7206": "Fort Saskatchewan",
          "7207": "Fort Vermillion",
          "7252": "Fox Creek",
          "7254": "Frank",
          "7260": "Gadsby",
          "7262": "Galahad",
          "7264": "Ghost Lake",
          "7266": "Gibbons, AB",
          "7267": "Giroux",
          "7268": "Girouxville, AB",
          "7270": "Gleichen",
          "7272": "Glendon",
          "7209": "Glenevis",
          "7274": "Glenwood, AB",
          "7276": "Golden Days",
          "7277": "Good Fish Lake",
          "7035": "Goodfare",
          "7278": "Grand Centre",
          "7280": "Grande Cache",
          "7282": "Grande Prairie",
          "7284": "Grandview, AB",
          "7286": "Granum",
          "7287": "Grassland",
          "7288": "Grassy Lake",
          "7290": "Grimshaw",
          "7292": "Gull Lake, AB",
          "7300": "Hairy Hill",
          "7302": "Halkirk",
          "7304": "Hanna",
          "7306": "Hardisty",
          "7308": "Hay Lakes",
          "7307": "Hays",
          "7309": "Hayter",
          "7310": "Heisler",
          "7312": "High Level",
          "7314": "High Prairie",
          "7316": "High River",
          "7317": "Hilda",
          "7318": "Hill Spring",
          "7031": "Hilliard",
          "7319": "Hines Creek",
          "7320": "Hinton",
          "7321": "Hobbema",
          "7322": "Holden",
          "7324": "Hughenden",
          "7326": "Huies Creek",
          "7328": "Hussar",
          "7330": "Hythe",
          "7340": "Innisfail",
          "7753": "Innisfield",
          "7342": "Innisfree",
          "7344": "Irma",
          "7347": "Iron River",
          "7037": "Iron Springs",
          "7346": "Irricana",
          "7348": "Irvine",
          "7350": "Island Lake, AB",
          "7352": "Itaska Beach",
          "7211": "Janvier",
          "7356": "Jasper",
          "7360": "Kapasiwin",
          "7515": "Keoma",
          "7362": "Killam",
          "7364": "Kinuso",
          "7365": "Kipp",
          "7366": "Kitscoty",
          "7141": "La Crête",
          "7145": "La Glace",
          "7380": "Lac la Biche",
          "7382": "Lacombe",
          "7383": "Lake Louise",
          "7384": "Lakeview",
          "7386": "Lamont",
          "7013": "Langdon",
          "7390": "Lavoy",
          "7208": "Leduc",
          "7394": "Legal",
          "7395": "Leslieville",
          "7396": "Lethbridge",
          "7408": "Linden",
          "7409": "Little Smoky",
          "7410": "Lloydminster, AB",
          "7411": "Lodgepole",
          "7412": "Lomond",
          "7414": "Longview",
          "7416": "Lougheed",
          "7420": "Ma Me O Beach",
          "7422": "Magrath",
          "7153": "Mallaig",
          "7426": "Manning",
          "7428": "Mannville",
          "7429": "Markerville",
          "7430": "Marsden",
          "7434": "Marwayne",
          "7436": "Mayerthorpe",
          "7438": "McLennan",
          "7440": "Medicine Hat",
          "7441": "Medley",
          "7443": "Meeting Creek",
          "7448": "Midnapore",
          "7450": "Milk River",
          "7041": "Millarville",
          "7452": "Millet",
          "7454": "Milo",
          "7456": "Minburn",
          "7458": "Mirror",
          "7459": "Monarch",
          "7460": "Morinville",
          "7462": "Morrin",
          "7464": "Mundare",
          "7466": "Munson",
          "7043": "Musidora",
          "7468": "Myrnam",
          "7480": "Nakamun Park",
          "7482": "Nampa",
          "7484": "Nanton",
          "7485": "Neerlandia",
          "7487": "New Dayton",
          "7488": "New Norway",
          "7490": "New Sarepta",
          "7491": "Nisku",
          "7495": "Nito Junction",
          "7492": "Nobleford",
          "7147": "Nordegg",
          "7494": "Norglenwood",
          "7045": "North Star",
          "7496": "Nythe",
          "7094": "Okotoks",
          "7502": "Olds",
          "7504": "Onoway",
          "7999": "Other",
          "7506": "Oyen",
          "7512": "Paradise Valley",
          "7513": "Patricia",
          "7514": "Peace River",
          "7361": "Peers",
          "7516": "Penhold",
          "7517": "Pickard Ville",
          "7518": "Picture Butte",
          "7520": "Pincher Creek",
          "7522": "Plamondon",
          "7524": "Point Alison",
          "7526": "Ponoka",
          "7528": "Poplar Bay",
          "7529": "Priddis",
          "7532": "Prosperity",
          "7530": "Provost",
          "7536": "Purple Springs",
          "7540": "Radway",
          "7542": "Rainbow Lake",
          "7543": "Rainier",
          "7151": "Ralston",
          "7544": "Raymond",
          "7546": "Red Deer",
          "7047": "Red Deer County",
          "7213": "Red Earth Creek",
          "7442": "Redcliff",
          "7550": "Redwater",
          "7049": "Redwood Meadows",
          "7552": "Rimbey",
          "7553": "Rochester",
          "7555": "Rochfort Bridge",
          "7554": "Rochon Sands",
          "7556": "Rocky Mountain Ho",
          "7096": "Rocky View",
          "7560": "Rockyford",
          "7561": "Rolling Hills",
          "7562": "Rosalind",
          "7149": "Rosedale Station",
          "7564": "Rosemary",
          "7566": "Ross Haven",
          "7568": "Rumsey",
          "7570": "Rycroft",
          "7572": "Ryley",
          "7597": "Saint-Isidore",
          "7599": "Saint-Lina",
          "7601": "Saint-Michael",
          "7580": "Sandy Beach, AB",
          "7582": "Sanguda Silver Sa",
          "7583": "Scandia",
          "7584": "Seba Beach",
          "7586": "Sedgewick",
          "7588": "Sexsmith",
          "7589": "Shaughnessy",
          "7210": "Sherwood Park, AB",
          "7215": "Siksika",
          "7590": "Silver Beach",
          "7592": "Slave Lake",
          "7594": "Smoky Lake",
          "7596": "South View",
          "7598": "Spirit River",
          "7051": "Spring Lake",
          "7212": "Spruce Grove",
          "7603": "Spruceview",
          "7214": "St Albert",
          "7600": "St. Paul",
          "7595": "St-Albert Falls",
          "7604": "Standard",
          "7606": "Stavely",
          "7608": "Stettler",
          "7610": "Stirling, AB",
          "7216": "Stony Plain",
          "7218": "Strathcona",
          "7616": "Strathmore",
          "7618": "Strome",
          "7619": "Sturgeon",
          "7621": "Suffield",
          "7620": "Sundance Beach",
          "7622": "Sundre",
          "7623": "Sunset House",
          "7624": "Sunset Point",
          "7626": "Swan Hills",
          "7628": "Sylvan Lake",
          "7640": "Taber",
          "7754": "Tangent",
          "7642": "Thorhild",
          "7644": "Thorsby",
          "7646": "Three Hills",
          "7648": "Tilley",
          "7650": "Tofield",
          "7651": "Tomahaw",
          "7652": "Torrington",
          "7654": "Trochu",
          "7655": "Turin",
          "7656": "Turner Valley",
          "7658": "Two Hills",
          "7670": "Val Quentin",
          "7672": "Valleyview",
          "7674": "Vauxhall",
          "7676": "Vegreville",
          "7678": "Vermillion",
          "7680": "Veteran",
          "7682": "Viking",
          "7684": "Vilna",
          "7053": "Vimy",
          "7686": "Vulcan",
          "7688": "Wabamun",
          "7689": "Wabas-Desmar",
          "7690": "Wainwright",
          "7692": "Wanham",
          "7694": "Warburg",
          "7696": "Warner",
          "7698": "Warspite",
          "7700": "Wasca",
          "7702": "Waskatenau",
          "7057": "Water Valley",
          "7699": "Waterton",
          "7701": "Waterton Lakes",
          "7703": "Watino",
          "7059": "Welling",
          "7704": "Wembly",
          "7706": "West Cove",
          "7065": "Westerose",
          "7708": "Westlock",
          "7710": "Wetaskiwin",
          "7712": "Whitecourt",
          "7755": "Whitelaw",
          "7713": "Wild Horse",
          "7714": "Wildwood",
          "7716": "Willingdon",
          "7718": "Winfield, AB",
          "7720": "Winterburn",
          "7725": "Woking",
          "7730": "Yellowstone",
          "7732": "Youngstown",
          "7750": "Zama"
        },
        "BC": {
          "8720": "100 Mile House",
          "8317": "108 Mile Ranch",
          "8200": "150 Mile House",
          "8201": "70 Mile House",
          "8210": "Abbotsford",
          "8202": "Agassiz",
          "8203": "Alberni",
          "8204": "Albion",
          "8211": "Aldergrove",
          "8212": "Alert Bay",
          "8740": "Alexis Creek",
          "8205": "Alvin",
          "8209": "Anahim Lk.",
          "8206": "Anglemont",
          "8268": "Anmore, BC",
          "8213": "Argenta",
          "8214": "Armstrong, BC",
          "8341": "Arras",
          "8216": "Ashcroft",
          "8207": "Atlin",
          "8219": "Baldonnel",
          "8343": "Balfour",
          "8732": "Bamfield",
          "8215": "Barnston Isl",
          "8220": "Barriere",
          "8217": "Beach Grove",
          "8221": "Beaver Creek",
          "8344": "Beaverdell",
          "8218": "Belcarra",
          "8223": "Bella Bella",
          "8225": "Bella Coola",
          "8637": "Big Creek",
          "8208": "Big Lake",
          "8226": "Black Creek",
          "8227": "Blind Bay",
          "8228": "Blue River",
          "8229": "Boston Bar",
          "8279": "Boswell, BC",
          "8722": "Boundry Bay",
          "8723": "Bowen Island",
          "8724": "Bowser",
          "8725": "Brackendale",
          "8726": "Brentwood Bay",
          "8639": "Bridesville",
          "8727": "Bridge Lake",
          "8641": "Brisco",
          "8345": "Britannia Beach",
          "8728": "Bubble Hill",
          "8361": "Buffalo Creek",
          "8643": "Buick",
          "8729": "Bull River",
          "8636": "Burnaby",
          "8222": "Burns Lake",
          "8224": "Burrard Inlet",
          "8730": "Burton",
          "8230": "Cache Creek",
          "8233": "Campbell River",
          "8297": "Canal Flats",
          "8363": "Canim Lake",
          "8364": "Canoe",
          "8235": "Canyon",
          "8231": "Capiland",
          "8239": "Caribou",
          "8243": "Carson",
          "8244": "Cascade",
          "8245": "Cassiar",
          "8247": "Cassidy",
          "8232": "Castlegar",
          "8249": "Cawston",
          "8366": "Cecil Lake",
          "8251": "Cedar",
          "8252": "Celista",
          "8676": "Central Saanich",
          "8253": "Charlie Lake",
          "8234": "Chase",
          "8254": "Chemainus",
          "8236": "Chetwynd",
          "8255": "Chilanko Forks",
          "8257": "Chilcotin",
          "8258": "Chilko Lake",
          "8238": "Chilliwack",
          "8259": "Chopaka",
          "8367": "Christina Lake",
          "8260": "Clearbrook",
          "8261": "Clearwater, BC",
          "8731": "Clements",
          "8240": "Clinton, BC",
          "8241": "Cloverdale",
          "8465": "Coal Harbour",
          "8262": "Cobble Hill",
          "8299": "Coldstream",
          "8263": "Columbia Gardens",
          "8368": "Colwood",
          "8242": "Comox",
          "8264": "Coombs",
          "8638": "Coquitlam",
          "8265": "Cortes Island",
          "8246": "Courtenay",
          "8371": "Cowichan Bay",
          "8248": "Cranbrook",
          "8382": "Crawford Bay",
          "8266": "Crescent Beach",
          "8250": "Creston, BC",
          "8267": "Crofton, BC",
          "8384": "Cultus Lake",
          "8256": "Cumberland, BC",
          "8385": "D'Arcy",
          "8270": "Dawson Creek, BC",
          "8386": "Dease Lake",
          "8271": "Deep Bay",
          "8272": "Delta",
          "8277": "Denman Island",
          "8273": "Deroche",
          "8275": "Dewdeny",
          "8276": "Douglas",
          "8274": "Duncan",
          "8278": "Dunster",
          "8280": "Eagle Bay, BC",
          "8401": "Eagle Creek",
          "8284": "East Pine",
          "8286": "Ebrune",
          "8287": "Edgewater",
          "8403": "Edgewood",
          "8288": "Elkford",
          "8404": "Elko",
          "8289": "Endako",
          "8290": "Enderby",
          "8292": "Erickson, BC",
          "8294": "Erikson",
          "8293": "Errington",
          "8678": "Esquimalt",
          "8405": "Fair. Hot Springs",
          "8296": "Falkland",
          "8407": "Fanny Bay",
          "8409": "Fauquier",
          "8298": "Femberton",
          "8300": "Fernie",
          "8281": "Forest Grove, BC",
          "8302": "Fort Fraser",
          "8301": "Fort Langley",
          "8310": "Fort Nelson",
          "8314": "Fort St James",
          "8316": "Fort St John",
          "8410": "Fort Steele",
          "8466": "Francois Lake",
          "8320": "Fraser Lake",
          "8318": "Fraser Mills",
          "8321": "Fraser Valley",
          "8322": "Fruitvale",
          "8323": "Fulford Harbor",
          "8291": "Furry Creek",
          "8329": "Gabriola",
          "8324": "Galiano Island",
          "8325": "Ganges",
          "8411": "Gar. Highlands",
          "8333": "Garden Bay",
          "8326": "Garibaldi",
          "8327": "Genelle",
          "8328": "Gibbons, BC",
          "8330": "Gibsons",
          "8331": "Gillies Bay",
          "8332": "Gold River",
          "8334": "Golden",
          "8304": "Goodlow",
          "8733": "Gr Birch",
          "8336": "Grand Forks",
          "8319": "Granisle",
          "8335": "Grasmere",
          "8337": "Gray Creek",
          "8338": "Greenwood, BC",
          "8412": "Grindrod",
          "8340": "Hagensborg",
          "8342": "Halfmoon Bay",
          "8346": "Hammond",
          "8467": "Hanceville",
          "8339": "Haney",
          "8350": "Harrison Hot Spri",
          "8348": "Harrison Mills",
          "8352": "Hazelton",
          "8413": "Hedley",
          "8347": "Heffley Creek",
          "8349": "Heriot Bay, BC",
          "8351": "Highlands",
          "8353": "Hixon",
          "8419": "Holberg",
          "8354": "Hope",
          "8355": "Hornby Island",
          "8356": "Horsefly",
          "8468": "Horseshoe Bay",
          "8357": "Houston",
          "8734": "Huds Hop",
          "8358": "Huntingdon, BC",
          "8360": "Invermere",
          "8359": "Inverness, BC",
          "8362": "Island Highway",
          "8365": "Jaffray",
          "8369": "Kalendan",
          "8370": "Kamloops",
          "8372": "Kaslo",
          "8373": "Katzie",
          "8374": "Kelowna",
          "8376": "Keremeos",
          "8378": "Kimberley",
          "8375": "Kingsgate",
          "8380": "Kinnaird",
          "8379": "Kitimat",
          "8377": "Kitwanga",
          "8431": "Kleena Kleene",
          "8433": "Kootenay Bay",
          "8735": "La Hache",
          "8381": "Ladner",
          "8390": "Ladysmith",
          "8435": "Lake Country",
          "8392": "Lake Cowichan",
          "8640": "Langley",
          "8393": "Lantzville",
          "8391": "Lasqueti Island",
          "8388": "Latham",
          "8394": "Laurier",
          "8389": "Lazo",
          "8395": "Lehman",
          "8396": "Lillooet",
          "8305": "Lindell Beach",
          "8398": "Lion's Bay",
          "8387": "Lister",
          "8397": "Little Fort",
          "8400": "Logan Lake",
          "8402": "Lone Butte",
          "8306": "Lower Nicola",
          "8406": "Lumby",
          "8436": "Lund",
          "8408": "Lytton",
          "8414": "Mackenzie",
          "8415": "Madeira Park",
          "8437": "Malahat",
          "8438": "Malakwa",
          "8416": "Mansos Landing",
          "8642": "Maple Ridge",
          "8418": "Mara",
          "8420": "Marysville, BC",
          "8422": "Masset",
          "8421": "Matsqui",
          "8439": "Mayne Lake",
          "8425": "Mc Millian Isl",
          "8424": "McBride",
          "8440": "Mcleese Lake",
          "8441": "Meadow Creek",
          "8426": "Merritt",
          "8427": "Merville",
          "8428": "Midway",
          "8429": "Milhouse",
          "8430": "Mill Bay",
          "8644": "Mission",
          "8442": "Moberly Lake",
          "8443": "Montney",
          "8432": "Montrose",
          "8434": "Moyle Lake",
          "8450": "Nakusp",
          "8452": "Nanaimo",
          "8451": "Nanoose Bay",
          "8453": "Naramata",
          "8454": "Nelson, BC",
          "8455": "Nelway",
          "8458": "New Aiyansh",
          "8456": "New Denver",
          "8460": "New Hazelton",
          "8646": "New Westminster",
          "8739": "Nig Creek",
          "8462": "Nimpo",
          "8295": "North Delta",
          "8464": "North Pine",
          "8680": "North Saanich",
          "8648": "North Vancouver",
          "8682": "Oak Bay, BC",
          "8472": "Ocean Falls",
          "8476": "Okanagan",
          "8474": "Okanagan Falls",
          "8480": "Oliver",
          "8482": "Osoyoos",
          "8999": "Other",
          "8484": "Oyama",
          "8307": "Panorama",
          "8500": "Parksville",
          "8498": "Paterson",
          "8499": "Peachland",
          "8502": "Pemberton",
          "8501": "Pender Island",
          "8504": "Penticton",
          "8444": "Pink Mountain",
          "8650": "Pitt Meadows",
          "8503": "Pleasant Camp",
          "8505": "Point Roberts",
          "8508": "Port Alberni",
          "8510": "Port Alice",
          "8512": "Port Clements",
          "8652": "Port Coquitlam",
          "8514": "Port Edward",
          "8654": "Port Hardy",
          "8515": "Port Hawksbury",
          "8516": "Port Mcneill",
          "8518": "Port Moody",
          "8520": "Pouce Coupe",
          "8522": "Powell River",
          "8524": "Prince George",
          "8526": "Prince Rupert",
          "8528": "Princeton, BC",
          "8445": "Pritchard",
          "8530": "Proctor",
          "8446": "Quadra Island",
          "8540": "Qualicum Beach",
          "8536": "Quathiaski Cove",
          "8538": "Quatsino",
          "8541": "Queen Charlotte",
          "8542": "Quesnel",
          "8544": "Quilchena",
          "8546": "Radium Hot Springs",
          "8550": "Revelstoke",
          "8656": "Richmond, BC",
          "8737": "Robert C",
          "8551": "Robson",
          "8548": "Rock Creek",
          "8552": "Roosville",
          "8553": "Rosedale",
          "8554": "Rossland",
          "8308": "Royston",
          "8556": "Ruskin",
          "8558": "Rykerts",
          "8684": "Saanich",
          "8560": "Saanichton",
          "8570": "Salmo",
          "8564": "Salmon Arm",
          "8566": "Salt Spring Isl.",
          "8568": "Sandpit",
          "8569": "Sardis",
          "8571": "Saturna Island",
          "8469": "Savona",
          "8572": "Sayward",
          "8573": "Seal Cove, BC",
          "8574": "Sechelt",
          "8575": "Semiahmoo",
          "8579": "Sewell Inlet",
          "8576": "Shawnigan Lake",
          "8577": "Shuswap",
          "8686": "Sicamous",
          "8688": "Sidney",
          "8578": "Silverton",
          "8447": "Skidegate",
          "8448": "Skookumchuck",
          "8580": "Slocan",
          "8582": "Smithers",
          "8738": "Sointula",
          "8583": "Sooke",
          "8567": "Sorrento",
          "8584": "South Fort George",
          "8585": "Sparwood",
          "8589": "Spences Bridge",
          "8586": "Squamish",
          "8587": "Stave Falls",
          "8588": "Stewart",
          "8590": "Stikine",
          "8592": "Sullivan Bay",
          "8594": "Summerland",
          "8309": "Sun Peaks",
          "8596": "Surge Narrows",
          "8598": "Surrento",
          "8658": "Surrey, BC",
          "8599": "Ta Ta Creek",
          "8600": "Tahsis",
          "8690": "Tappen",
          "8692": "Tasu",
          "8694": "Tatla Lake",
          "8602": "Taylor",
          "8741": "Telegraph Creek",
          "8604": "Telkwa",
          "8605": "Terrace",
          "8603": "Tête Jaune Cache",
          "8282": "Thetis Island",
          "8696": "Thompson, BC",
          "8742": "T'Kumlups",
          "8470": "Tlell",
          "8606": "Tofino",
          "8608": "Trail",
          "8607": "Tsawwassen",
          "8743": "Tsay Keh",
          "8698": "Tumbler",
          "8699": "Tumbler Ridge",
          "8620": "Ucluelet",
          "8622": "Union Bay",
          "8630": "Valemount",
          "8632": "Vananda",
          "8634": "Vancouver",
          "8670": "Vanderhoof",
          "8633": "Vavenby",
          "8672": "Vernon",
          "8674": "Victoria, BC",
          "8283": "Waglisla, BC",
          "8701": "Waneta",
          "8700": "Warfield",
          "8703": "Wasa Lake",
          "8706": "Webster's Corner",
          "8707": "Wells",
          "8660": "West Vancouver",
          "8708": "Westbank",
          "8312": "Westbridge",
          "8709": "Westminister",
          "8449": "Westwold",
          "8711": "Whaletown",
          "8712": "Whistler",
          "8702": "White Rock",
          "8635": "Whonnock",
          "8704": "Williams Lake",
          "8714": "Willow River",
          "8715": "Windermere",
          "8716": "Winfield, BC",
          "8717": "Winlaw",
          "8457": "Wonowon",
          "8315": "Woss",
          "8718": "Wyndel",
          "8459": "Yahk",
          "8461": "Yale",
          "8719": "Yarrow",
          "8463": "Ymir",
          "8721": "Youbou",
          "8710": "Zeballos"
        },
        "MB": {
          "5011": "Alexander, MB",
          "5010": "Altona",
          "5013": "Anola, MB",
          "5012": "Arborg",
          "5014": "Arden",
          "5016": "Arnaud",
          "5018": "Arnes",
          "5107": "Ashern",
          "5020": "Ashville",
          "5022": "Austin",
          "5108": "Bagot",
          "5029": "Baldur",
          "5109": "Balmoral",
          "5028": "Barrows",
          "5030": "Beausejour",
          "5031": "Belmont, MB",
          "5032": "Benito",
          "5034": "Binscarth",
          "5036": "Birtle",
          "5037": "Bloodvein River",
          "5039": "Blumenort",
          "5038": "Boissevain",
          "5040": "Bowsman",
          "5042": "Brandon",
          "5110": "Brunkild",
          "5111": "Bruxelles",
          "5060": "Carberry",
          "5062": "Carman",
          "5112": "Cartier",
          "5064": "Cartwright",
          "5065": "Churchill",
          "5407": "Clandeboye",
          "5067": "Coulter",
          "5113": "Cross Lake",
          "5066": "Crystal City",
          "5080": "Dauphin",
          "5081": "Decker",
          "5082": "Deloraine",
          "5083": "Dominion City",
          "5033": "Dufresne",
          "5015": "Dugald, MB",
          "5084": "Dunnottar",
          "5088": "Durban",
          "5380": "East Kildonan",
          "5092": "East Landmark",
          "5381": "East St Paul",
          "5099": "Elgin, MB",
          "5098": "Elie",
          "5100": "Elkhorn",
          "5101": "Elma",
          "5103": "Elmer",
          "5102": "Emerson",
          "5104": "Erickson, MB",
          "5105": "Eriksdale",
          "5106": "Ethelbert",
          "5118": "Fisher Branch",
          "5120": "Flin Flon",
          "5114": "Gardenhill",
          "5130": "Garson, MB",
          "5132": "Gilbert Plains",
          "5133": "Gillam",
          "5134": "Gimli",
          "5136": "Gladstone",
          "5138": "Glenboro",
          "5139": "Goodlands",
          "5141": "Grand Rapids",
          "5097": "Grande Pointe",
          "5140": "Grandview, MB",
          "5115": "Graysville",
          "5142": "Great Falls",
          "5144": "Gretna",
          "5116": "Grosse Isle",
          "5146": "Grunthal",
          "5117": "Gypsumville",
          "5147": "Hadashville",
          "5158": "Hamilton, MB",
          "5160": "Hamiota",
          "5162": "Hartney",
          "5163": "Haywood",
          "5164": "Headingley",
          "5161": "Hilbre",
          "5148": "Holland",
          "5165": "Horndean",
          "5166": "Hudgson",
          "5171": "Île-des-Chênes",
          "5150": "Island Lake, MB",
          "5151": "Kelwood",
          "5167": "Kenton",
          "5168": "Kenville, MB",
          "5170": "Killarney",
          "5408": "Kirkella",
          "5169": "Kleefeld",
          "5086": "Kola",
          "5178": "Komarno",
          "5192": "La Broquerie, MB",
          "5090": "La Salle, MB",
          "5190": "Lac du Bonnet",
          "5189": "Landmark",
          "5191": "La-Riviere",
          "5193": "Leaf Rapids",
          "5194": "Lena",
          "5188": "Libau",
          "5198": "Lindenwoods",
          "5152": "Lockport",
          "5094": "Lorette, MB",
          "5195": "Lowe Farm",
          "5409": "Lundar",
          "5196": "Lyleton",
          "5197": "Lynn Lake",
          "5200": "MacGregor",
          "5204": "Manitou",
          "5017": "Manson, MB",
          "5044": "Marchand",
          "5173": "Marquette",
          "5153": "Matlock",
          "5019": "McAuley",
          "5206": "McCreary",
          "5208": "Melita",
          "5410": "Miami",
          "5209": "Middlebro",
          "5211": "Miniolta",
          "5210": "Minitonas",
          "5212": "Minnedosa",
          "5215": "Minto, MB",
          "5096": "Mitchell, MB",
          "5213": "Moar Lake",
          "5214": "Morden",
          "5216": "Morris",
          "5230": "Napinka",
          "5232": "Neepawa",
          "5122": "New Bothwell",
          "5231": "Newdale",
          "5154": "Ninette",
          "5234": "Niverville",
          "5174": "North Kildonan",
          "5235": "Norway House",
          "5236": "Notre Dame de Lou",
          "5244": "Oak Lake",
          "5021": "Oakbank, MB",
          "5155": "Onanole",
          "5799": "Other",
          "5246": "Otterburne, MB",
          "5257": "Pierson",
          "5260": "Pilot Mound",
          "5259": "Pinawa",
          "5411": "Pine Falls",
          "5048": "Pine River",
          "5261": "Piney",
          "5258": "Pipestone",
          "5262": "Plum Coulee",
          "5156": "Plumas",
          "5263": "Poplar Point",
          "5175": "Poplarfield",
          "5264": "Portage la Prairi",
          "5266": "Powerview",
          "5157": "Prawda",
          "5277": "Randolf",
          "5280": "Rapid City",
          "5278": "Red Sucker Lake",
          "5026": "Reinfeld",
          "5283": "Reston",
          "5279": "Richer",
          "5281": "Ritchot",
          "5282": "Rivers",
          "5284": "Riverton",
          "5286": "Roblin",
          "5285": "Roland",
          "5287": "Rorketon",
          "5293": "Roseisle",
          "5289": "Rosenfeld",
          "5292": "Rosenort",
          "5288": "Rossburn",
          "5291": "Rossendale",
          "5290": "Russell, MB",
          "5412": "Saint Adolphe",
          "5310": "Saint Claude",
          "5383": "Saint François Xavier",
          "5315": "Saint Martin",
          "5295": "Sandy Hook",
          "5159": "Sarto",
          "5035": "Schanzenfeld",
          "5300": "Selkirk",
          "5296": "Shamattawa",
          "5301": "Shilo",
          "5302": "Shoal Lake",
          "5297": "Shortdale",
          "5303": "Snow Lake",
          "5305": "Snowflake",
          "5304": "Somerset",
          "5306": "Souris, MB",
          "5308": "South Junction",
          "5309": "Sprague",
          "5307": "Springfield, MB",
          "5124": "St Andrews, MB",
          "5382": "St Boniface, MB",
          "5311": "St Germain",
          "5312": "St Laurent, MB",
          "5386": "St Vital",
          "5384": "St. James-Assiniboia",
          "5046": "St. Jean",
          "5317": "St. Malo",
          "5313": "St.-Pierre-Jolys",
          "5404": "Starbuck",
          "5318": "Ste Agatha, MB",
          "5320": "Ste Anne",
          "5321": "Ste Rose du Lac",
          "5322": "Steinbach",
          "5314": "St-Lazare",
          "5324": "Stonewall",
          "5406": "Stoney Mountain",
          "5323": "Strathclair",
          "5325": "Sundance",
          "5413": "Sundown",
          "5414": "Swan Lake",
          "5326": "Swan River",
          "5340": "Teulon",
          "5342": "The Pas",
          "5176": "Thicket Portage",
          "5344": "Thompson, MB",
          "5345": "Tolstol",
          "5346": "Tourand",
          "5388": "Transcona",
          "5348": "Treherne",
          "5390": "Tuxedo",
          "5024": "Tyndall",
          "5358": "Vermette",
          "5360": "Virden",
          "5362": "Vita",
          "5177": "Warren, MB",
          "5370": "Waskada",
          "5368": "Waterhen",
          "5372": "Wawanesa",
          "5068": "Waywayseecappo",
          "5205": "Wellwood",
          "5392": "West Kildonan",
          "5393": "West St Paul",
          "5373": "Whitemouth",
          "5375": "Windygate",
          "5376": "Winkler",
          "5378": "Winnipeg",
          "5400": "Winnipeg Beach",
          "5402": "Winnipegosis",
          "5379": "Woodlands",
          "5172": "Woodmore",
          "5023": "Zhoda, MB"
        },
        "NB": {
          "0625": "Acadieville",
          "0610": "Alma, NB",
          "0611": "Andover",
          "0612": "Aroostook",
          "0613": "Arthurette",
          "0614": "Atholville",
          "0615": "Back Bay",
          "0618": "Baie Sainte-Anne",
          "0623": "Bains Corner",
          "0620": "Baker Brook",
          "0622": "Barkers Point",
          "0624": "Bath, NB",
          "0626": "Bathurst",
          "0627": "Beaconsfield, NB",
          "0629": "Bedell",
          "0628": "Belledune",
          "0630": "Beresford",
          "0632": "Bertrand",
          "0953": "Berts Cove",
          "0633": "Blacks Harbour",
          "0634": "Blackville",
          "0635": "Bloomfield, NB",
          "0640": "Bouctouche",
          "0636": "Bridgedale",
          "0638": "Bristol",
          "0639": "Browns Flat",
          "0667": "Bulls Creek",
          "0650": "Cambridge Narrows",
          "0652": "Campbellton",
          "0653": "Campobello",
          "0654": "Canterbury",
          "0656": "Cap Pele",
          "0657": "Cape Tourmentine",
          "0658": "Caraquet",
          "0712": "Carlingford",
          "0660": "Centreville, NB",
          "0662": "Charlo",
          "0664": "Chartersville",
          "0666": "Chatham, NB",
          "0668": "Chipman, NB",
          "0670": "Clair",
          "0669": "Clairville",
          "0673": "Cocagne",
          "0671": "Codys",
          "0954": "Coles Island",
          "0672": "College Bridge",
          "0621": "Colpitts Settl.",
          "0674": "Connors",
          "0687": "Cummings Cove",
          "0680": "Dalhousie, NB",
          "0681": "Deer Island Point",
          "0774": "Dieppe",
          "9102": "Dipper Harbour",
          "0682": "Doaktown",
          "0684": "Dorchester, NB",
          "0686": "Douglastown",
          "0688": "Drummond",
          "0690": "East Riverside-Kingshurst",
          "0692": "East Shediac",
          "0694": "Edmundston",
          "0700": "Eel River Crossin",
          "0683": "Eng. Settlement",
          "0701": "Fairhaven",
          "0852": "Fairvale",
          "0702": "Florenceville",
          "0703": "Forest City",
          "0705": "Fosterville",
          "0709": "Four Falls",
          "0704": "Fredericton",
          "0710": "Fredericton Junct",
          "0716": "Gagetown",
          "0713": "Gaspereau Forks",
          "0717": "Gillespie",
          "0718": "Gondola Point",
          "0722": "Grand Falls, NB",
          "0724": "Grand Harbour",
          "0725": "Grand Manan",
          "0720": "Grande-Anse",
          "0727": "Green Point",
          "0726": "Gunningsville",
          "0728": "Hampton, NB",
          "0631": "Hanwell",
          "0729": "Harcourt",
          "0730": "Hartland",
          "0732": "Harvey",
          "0734": "Hillsborough",
          "0736": "Hopewell Cape",
          "0637": "Jacksontown",
          "0740": "Jacquet River",
          "0743": "Juniper",
          "0746": "Kedgewick",
          "0685": "Keswick Ridge",
          "0955": "Kouchibouguac",
          "0750": "Lac Baker",
          "0751": "Lakeville",
          "0752": "Lameque",
          "0854": "Lancaster, NB",
          "0855": "Lansdowne, NB",
          "0776": "Lewisville",
          "0753": "Lincoln Heights",
          "0689": "Little River",
          "0755": "Loch Lomond",
          "0754": "Loggieville",
          "0642": "Lower Brighton",
          "0756": "Lower Caraquet",
          "0757": "Ludlow",
          "0759": "Maisonnette",
          "0761": "Mars Hill Road",
          "0706": "Marysville, NB",
          "0714": "Maugerville",
          "0760": "McAdam",
          "0651": "Mckenna",
          "0762": "Meductic",
          "0715": "Memramcook",
          "0763": "Millerton",
          "0764": "Milltown, NB",
          "0766": "Millville",
          "0768": "Minto, NB",
          "0770": "Miramichi",
          "0771": "Miscou Centre",
          "0691": "Mohannes",
          "0772": "Moncton",
          "0780": "Nackawic",
          "0719": "Napan",
          "0708": "Nashwaaksis",
          "0782": "Neguac",
          "0784": "Nelson, NB",
          "0787": "New Denmark",
          "0619": "New Maryland",
          "0786": "Newcastle, NB",
          "0788": "Nigadoo",
          "0790": "North Head",
          "0655": "Northampton",
          "0792": "Norton",
          "0794": "Notre Dame, NB",
          "0659": "Oak Bay, NB",
          "0693": "Oakland, NB",
          "0800": "Oromocto",
          "0999": "Other",
          "0806": "Pamdenec",
          "0808": "Paquetville",
          "0675": "Peel",
          "0956": "Pennfield",
          "0809": "Perth, NB",
          "0810": "Perth-Andover",
          "0812": "Petit Rocher",
          "0814": "Petitcodiac",
          "0816": "Plaster Rock",
          "0661": "Pleasant Villa",
          "0817": "Pointe-du-Chêne",
          "0818": "Pointe-Verte",
          "0820": "Port Elgin, NB",
          "0823": "Prince William",
          "0826": "Quispamsis",
          "0828": "Red Bank",
          "0830": "Renforth",
          "0829": "Renous",
          "0832": "Rexton",
          "0834": "Richibucto",
          "0835": "River de Chute",
          "0616": "Riverbank",
          "0836": "Riverside-Albert",
          "0837": "Riverview",
          "0778": "Riverview Heights",
          "0838": "Riviere-Verte",
          "0839": "Robichaud",
          "0840": "Rogersville",
          "0842": "Rothesay",
          "0848": "Sackville, NB",
          "0880": "Saint Andrews",
          "0890": "Saint Hilaire",
          "0850": "Saint John, NB",
          "0878": "Saint-André",
          "0884": "Saint-Anselme",
          "0858": "Saint-Antoine",
          "0696": "Saint-Basile",
          "0721": "Saint-Charles",
          "0957": "Sainte-Anne-de-Kent",
          "0882": "Sainte-Anne-de-Madawaska",
          "0695": "Saint-Edouard-de-Kent",
          "0899": "Sainte-Marie-de-Kent",
          "0886": "Saint-François-de-Madawaska",
          "0892": "Saint-Jacques",
          "0894": "Saint-Joseph, NB",
          "0896": "Saint-Leonard, NB",
          "0898": "Saint-Louis-de-Kent",
          "0902": "Saint-Quentin",
          "0860": "Salisbury",
          "0641": "Scoudouc",
          "0862": "Sea Cove, NB",
          "0866": "Shediac",
          "0868": "Shippegan",
          "0870": "Silverwood",
          "0888": "St George, NB",
          "0900": "St Martins",
          "0904": "St Stephen",
          "0910": "Stanley",
          "0911": "Stickney",
          "0676": "Summerfield",
          "0916": "Surrey, NB",
          "0918": "Sussex",
          "0831": "Sussex Corner",
          "0920": "Taymouth",
          "0924": "Tide Head",
          "0928": "Tracadie",
          "0697": "Tracadie-Sheila",
          "0930": "Tracy, NB",
          "0678": "Upper Coverdale",
          "0958": "Upper Kent",
          "0677": "Upper Woodstock",
          "0663": "Wakefield, NB",
          "0698": "Waterville",
          "0946": "Welshpool",
          "0950": "Westfield",
          "0707": "Whitehead",
          "0711": "Wicklow",
          "0951": "Wilson's Beach",
          "0665": "Woodside",
          "0952": "Woodstock, NB",
          "0679": "Youngs Cove",
          "0970": "Zealand"
        },
        "NL": {
          "0009": "Aguathuna",
          "0002": "Badger",
          "0004": "Baie de Verde",
          "0006": "Baie Verte",
          "0067": "Bauline",
          "0011": "Bay L'Argent",
          "0008": "Bay Roberts",
          "0013": "Bell Island",
          "0010": "Belleoram",
          "0015": "Benoit's Cove",
          "0012": "Bishop's Falls",
          "0014": "Bonavista",
          "0016": "Botwood",
          "0018": "Brigus",
          "0054": "Buchans",
          "0020": "Burgeo",
          "0022": "Burin",
          "0017": "Burl.-Green Bay",
          "0094": "Cape Broyle",
          "0024": "Carbonear",
          "0284": "Carmanville",
          "0026": "Catalina",
          "0055": "Cavendish",
          "0028": "Change Islands",
          "0030": "Channel-Port aux Basques",
          "0056": "Chapel Cove",
          "0032": "Clarenville",
          "0034": "Clark's Beach",
          "0040": "Come By Chance",
          "0019": "Conception Bay",
          "0021": "Cormack",
          "0036": "Corner Brook",
          "0023": "Cow Head",
          "0068": "Creston, NL",
          "0038": "Cupids",
          "0042": "Deer Lake",
          "0025": "Doyles",
          "0044": "Dunnville, NL",
          "0057": "Durrell",
          "0058": "Eastport",
          "0050": "Elliston",
          "0052": "Englee",
          "0003": "Flowers Cove, NL",
          "0060": "Fogo",
          "0069": "Forteau",
          "0062": "Fortune",
          "0064": "Freshwater",
          "0027": "Gambo",
          "0080": "Gander",
          "0082": "Gaultois",
          "0029": "Gillams",
          "0084": "Glenwood, NL",
          "0086": "Glovertown",
          "0087": "Goose Bay",
          "0281": "Gould",
          "0088": "Grand Bank",
          "0090": "Grand Falls, NL",
          "0092": "Greenspond",
          "0095": "Hants Harbour",
          "0100": "Happy Valley",
          "0102": "Harbour Breton",
          "0104": "Harbour Grace",
          "0106": "Hare Bay",
          "0031": "Hawke's Bay",
          "0108": "Holyrood",
          "0285": "Hopedale",
          "0033": "Jackson's Arm",
          "0114": "Jerseyside",
          "0035": "Kelligrews",
          "0037": "Kilbride, NL",
          "0120": "Labrador City",
          "0122": "Lamaline",
          "0124": "Lawn",
          "0126": "Lewisporte",
          "0128": "Little Catalina",
          "0005": "Lourdes, NL",
          "0130": "Lumsden, NL",
          "0140": "Main Brook",
          "0286": "Makkovik",
          "0283": "Manuels",
          "0287": "Mary's Harbour",
          "0142": "Marystown",
          "0039": "Milltown, NL",
          "0228": "Mount Pearl",
          "0288": "Nain",
          "0289": "Natuashish",
          "0230": "Newtown",
          "0156": "Norris Arm",
          "0160": "Old Pelican",
          "0041": "O'Regans",
          "0299": "Other",
          "0059": "Outer Cove",
          "0007": "Paradise, NL",
          "0170": "Pasadena",
          "0172": "Placentia",
          "0174": "Point Leamington",
          "0066": "Port au Choix",
          "0096": "Port Rexton",
          "0045": "Port Saunders",
          "0176": "Port Union",
          "0043": "Port-au-Port",
          "0046": "Portugal Cove",
          "0178": "Pouch Cove",
          "0290": "Pound Cove",
          "0190": "Ramea",
          "0047": "Renews",
          "0291": "Rigolet",
          "0192": "Robert's Arm",
          "0292": "Rocky Harbour",
          "0194": "Roddickton",
          "0210": "South Brook",
          "0212": "South River, NL",
          "0214": "Spaniard's Bay",
          "0216": "Springdale",
          "0220": "St Alban's, NL",
          "0222": "St Anthony",
          "0224": "St George's, NL",
          "0226": "St John's, NL",
          "0236": "St Lawrence",
          "0240": "Stephenville",
          "0242": "Stephenville Cros",
          "0048": "Topsail",
          "0049": "Torbay",
          "0250": "Trepassey",
          "0282": "Trinity",
          "0051": "Triton",
          "0252": "Twillingate",
          "0260": "Upper Island Cove",
          "0270": "Wabana",
          "0272": "Wabush",
          "0274": "Wesleyville",
          "0053": "Western Bay",
          "0276": "Whitbourne",
          "0278": "Windsor, NL",
          "0280": "Winterton",
          "0070": "Witless Bay"
        },
        "NS": {
          "0410": "Amherst",
          "0412": "Annapolis Royal",
          "0414": "Antigonish",
          "0409": "Arcadia",
          "0411": "Armdale",
          "0413": "Aylesford",
          "0415": "Baddeck",
          "0405": "Bakers Settlement",
          "0416": "Barrington Pas.",
          "0404": "Beach Meadows",
          "0417": "Bear River",
          "0403": "Beaver Bank",
          "0452": "Bedford, NS",
          "0561": "Beechville",
          "0402": "Belmont, NS",
          "0418": "Berwick",
          "0419": "Bible Hill",
          "0591": "Black Point",
          "0420": "Blandford",
          "0421": "Blockhouse",
          "0590": "Bonico",
          "0422": "Bridgetown",
          "0424": "Bridgewater",
          "0423": "Brier Island",
          "0425": "Brockfield",
          "0426": "Brookfield",
          "0401": "Brookside",
          "0427": "Caledonia, NS",
          "0400": "Camperdown",
          "0428": "Canning",
          "0430": "Canso",
          "0429": "Cape Breton",
          "0431": "Centerville, NS",
          "0398": "Centreville",
          "0433": "Chester",
          "0434": "Chester Basin",
          "0435": "Cheticamp",
          "0436": "Church Point",
          "0432": "Clark's Harbour",
          "0437": "Clementsvale",
          "0471": "Cleveland",
          "0438": "Colchester",
          "0564": "Coldbrook",
          "0511": "Cole Harbour",
          "0387": "Cow Bay",
          "0439": "Cumberland, NS",
          "0441": "Dalhousie, NS",
          "0440": "Dartmouth",
          "0550": "Debert, NS",
          "0566": "Deep Brook",
          "0442": "Digby",
          "0592": "Dingwall",
          "0446": "Dominion",
          "0443": "East Bay",
          "0396": "East Lake Ainslie",
          "0567": "East Pennant",
          "0478": "Eastern Passage",
          "0479": "Economy",
          "0444": "Ellerhouse",
          "0569": "Elmsdale",
          "0559": "Enfield",
          "0395": "Englishtown",
          "0445": "Eskasoni",
          "0447": "Fall River",
          "0551": "Falmouth, NS",
          "0394": "Fletchers",
          "0448": "Freeport",
          "0582": "Gaetz Brook",
          "0593": "Gillis Point",
          "0532": "Glace Bay",
          "0449": "Glenwood, NS",
          "0451": "Grand Pre",
          "0487": "Grand River",
          "0454": "Granville",
          "0453": "Granville Ferry",
          "0455": "Greenwood, NS",
          "0457": "Guysborough",
          "0450": "Halifax",
          "0573": "Hammands Plains",
          "0489": "Hants County",
          "0460": "Hantsport",
          "0407": "Hatchet Lake",
          "0563": "Head Chezzetcook",
          "0575": "Head Of Jeddore",
          "0576": "Herring Cove",
          "0393": "Hillsburn",
          "0458": "Hubbards, NS",
          "0577": "Hubley",
          "0367": "Indian Brook",
          "0462": "Ingonish Beach",
          "0459": "Inverness, NS",
          "0461": "Irish Cove",
          "0377": "Jeddore Oyster Ponds",
          "0392": "Judique",
          "0391": "Karsdale",
          "0389": "Kempt",
          "0464": "Kentville, NS",
          "0463": "Kings City",
          "0465": "Kingston, NS",
          "0466": "Kingsville, NS",
          "0467": "La Have",
          "0397": "Lake Echo",
          "0383": "Lakeside",
          "0468": "Lantz",
          "0523": "Larry's River",
          "0469": "Lawrencetown",
          "0384": "Litchfield",
          "0470": "Liverpool",
          "0472": "Lockeport",
          "0474": "Louisbourg",
          "0473": "Lower L'Ardoise",
          "0475": "Lower Sackville",
          "0406": "Lucasville",
          "0476": "Lunenburg",
          "0477": "Lunnenburg County",
          "0531": "Mabou",
          "0480": "Mahone Bay",
          "0578": "Malagash",
          "0533": "Margaree Forks",
          "0579": "Margaretsville",
          "0529": "Marion Bridge",
          "0481": "Martins River",
          "0385": "Mavillette",
          "0553": "Merigomish, NS",
          "0483": "Meteghan River",
          "0379": "Middle Sackville",
          "0482": "Middleton",
          "0537": "Mill Village",
          "0366": "Millbrook, NS",
          "0485": "Minesville",
          "0557": "Moose River",
          "0484": "Mulgrave",
          "0486": "Musquodoboit",
          "0488": "New Germany",
          "0490": "New Glasgow, NS",
          "0491": "New Minas",
          "0492": "New Waterford",
          "0380": "Newport",
          "0493": "Noel",
          "0381": "North East Point",
          "0496": "North Sydney",
          "0494": "Northwest Cove",
          "0565": "Oakfield",
          "0599": "Other",
          "0502": "Oxford, NS",
          "0510": "Parrsboro",
          "0497": "Petit-de-Grat",
          "0495": "Petite Riviere",
          "0512": "Pictou",
          "0498": "Pleasant Bay",
          "0499": "Pleasant Valley",
          "0595": "Pleasantville",
          "0500": "Pomquet",
          "0504": "Port George",
          "0514": "Port Hawkesbury",
          "0503": "Port Hood",
          "0501": "Port Maitland",
          "0539": "Port Saxon",
          "0505": "Port Williams",
          "0506": "Porters Lake",
          "0596": "Potter's Lake",
          "0507": "Poulamon",
          "0597": "Prospect",
          "0508": "Pugwash",
          "0594": "River Denys",
          "0541": "River John",
          "0375": "Roberta",
          "0509": "Rose Bay",
          "0456": "Sackville, NS",
          "0543": "Salmon River",
          "0513": "Sandford",
          "0545": "Saulnierville",
          "0555": "Scotch Village",
          "0589": "Scotsburn",
          "0583": "Seabright",
          "0369": "Shad Bay",
          "0515": "Shag Harbour",
          "0516": "Shear Water",
          "0517": "Sheet Harbour",
          "0518": "Shelburne, NS",
          "0547": "Sherbrooke, NS",
          "0519": "Shubenacadie",
          "0521": "Shubewacad",
          "0584": "South Ohio",
          "0585": "Springfield",
          "0520": "Springhill",
          "0525": "St Margaret's Bay",
          "0526": "St. George's Channel",
          "0527": "St. Peter's",
          "0528": "Ste. Anne du Ruis",
          "0522": "Stellarton",
          "0524": "Stewiacke",
          "0586": "Stillwater Lake",
          "0534": "Sydney Mines",
          "0530": "Sydney, NS",
          "0536": "Tantallon, NS",
          "0538": "Tatamagouche",
          "0598": "Terence Bay",
          "0535": "Timberlea",
          "0540": "Trenton, NS",
          "0542": "Truro",
          "0544": "Tusket",
          "0548": "Upper Kennetcook",
          "0546": "Upper Stewiacke",
          "0370": "Upper Tantallon",
          "0552": "Walton, NS",
          "0554": "Waterville, NS",
          "0556": "Waverley",
          "0558": "Wedge Port",
          "0549": "Wellington, NS",
          "0587": "West Arichat",
          "0560": "West Bay",
          "0562": "West Dover",
          "0570": "Westville",
          "0568": "Weymouth",
          "0588": "Whites Lake",
          "0408": "Whycocomagh",
          "0571": "Wilmot, NS",
          "0572": "Windsor, NS",
          "0574": "Wolfville",
          "0371": "Woods Harbour",
          "0580": "Yarmouth"
        },
        "NT": {
          "9029": "Coleville Lk",
          "9032": "Deline",
          "9038": "Detah",
          "9046": "Enterprise",
          "9041": "Fort Liard",
          "8020": "Fort Rae",
          "7249": "Fort Simpson",
          "8030": "Fort Smith, NT",
          "9030": "Ft Good Hope",
          "9044": "Ft Providenc",
          "9047": "Ft Resolutio",
          "9027": "Ft.Mcpherson",
          "8040": "Hay River, NT",
          "9024": "Holman",
          "9026": "Iklavik",
          "8060": "Inuvik, NT",
          "9042": "Jeanmarie Ri",
          "9045": "Kakisa",
          "9039": "Lutselk'e",
          "9040": "Nahanni Butt",
          "9031": "Norman Wells",
          "8099": "Other",
          "9048": "Paulatuk",
          "9035": "Rae Lakes",
          "9023": "Sachs Harbou",
          "9036": "Snare Lakes",
          "9043": "Trout Lake",
          "9028": "Tsiligetchik",
          "9025": "Tuktoyaktuk",
          "9033": "Tulita",
          "9034": "Wrigley",
          "8090": "Yellowknife, NT"
        },
        "NU": {
          "7547": "Arctic Bay",
          "9013": "Arviat",
          "9012": "Baker Lake",
          "9018": "Bathurst Inl",
          "9019": "Bay Chimo",
          "9000": "Broughton I.",
          "7101": "Cambridge Bay",
          "9001": "Cape Dorset",
          "9014": "Chesterfield",
          "9002": "Clyde River",
          "7548": "Coppermine",
          "9015": "Coral Harbou",
          "7256": "Frobisher Bay",
          "9020": "Gjoa Haven",
          "9003": "Grise Fjord",
          "9004": "Hall Beach",
          "9005": "Igloolik",
          "7345": "Iqaluit",
          "9006": "Kimminut",
          "9021": "Kugluktuk",
          "9007": "Nanisivik",
          "9099": "Other",
          "9008": "Pangnittung",
          "9049": "Pelly Bay",
          "9009": "Pond Inlet",
          "9051": "Rankin Inlet",
          "9016": "Repulse Bay",
          "9010": "Resolute",
          "9011": "Sanikiluaq",
          "9022": "Taloyoak",
          "9017": "Whale Cove"
        },
        "ON": {
          "3001": "Aberfoyl",
          "3002": "Acton",
          "3003": "Agincourt",
          "3004": "Ailsa Craig",
          "3006": "Ajax",
          "3007": "Aldershot",
          "3009": "Alderwood",
          "3008": "Alexandria",
          "3010": "Alfred",
          "3011": "Algoma",
          "3013": "Algoma Mills",
          "3941": "Allenford",
          "3012": "Alliston",
          "3005": "Alma, ON",
          "3014": "Almonte",
          "3015": "Alton",
          "3016": "Alvinston",
          "3018": "Amherstburg",
          "3995": "Amherstview",
          "3326": "Ancaster",
          "3017": "Anderson",
          "3019": "Angus",
          "3000": "Annan",
          "3285": "Apple Hill",
          "3255": "Apsley",
          "3021": "Ariss",
          "3020": "Arkona",
          "3023": "Armitage",
          "3025": "Armstrong, ON",
          "3022": "Arnprior",
          "3027": "Arnstein",
          "3024": "Arthur",
          "3287": "Arva",
          "3029": "Ashburn",
          "3031": "Ashton",
          "3026": "Athens",
          "3033": "Atikokan",
          "3288": "Attawapiskat",
          "3943": "Atwood",
          "3944": "Auburn",
          "3028": "Aurora",
          "3034": "Avon",
          "3942": "Avonmore",
          "3030": "Aylmer, ON",
          "3032": "Ayr",
          "3113": "Azilda, ON",
          "3114": "Baden, ON",
          "3289": "Bailieboro",
          "3035": "Bainsville",
          "3036": "Bala",
          "3037": "Baldwin",
          "3038": "Ballantree",
          "3039": "Balmertown",
          "3045": "Baltimore",
          "3041": "Bamkanen",
          "3040": "Bancroft",
          "3043": "Bar Harbour",
          "3042": "Barrie",
          "3044": "Barry's Bay",
          "3047": "Basswood Lake",
          "3049": "Batawa",
          "3046": "Bath, ON",
          "3315": "Battersea",
          "3048": "Bayfield",
          "3051": "Baymouth",
          "3053": "Baysville",
          "3050": "Beachburg",
          "3052": "Beachville",
          "3055": "Beamsville",
          "3057": "Beardmore",
          "3054": "Beaverton",
          "3056": "Beeton",
          "3059": "Belfountain",
          "3570": "Bell Ewart",
          "3058": "Belle River",
          "3060": "Belleville",
          "3062": "Belmont, ON",
          "3105": "Belwood",
          "3065": "Berkeley",
          "3079": "Bethany",
          "3067": "Binbrook",
          "3063": "Blackburn Hamlet",
          "3081": "Blackstock",
          "3064": "Blenheim",
          "3066": "Blind River",
          "3068": "Bloomfield, ON",
          "3571": "Bloomingdale",
          "3069": "Bluevale",
          "3070": "Blyth",
          "3072": "Bobcaygeon",
          "3073": "Bob-Lo Island",
          "3074": "Bolton",
          "3071": "Bond Head",
          "3076": "Bonfield",
          "3077": "Borden, ON",
          "3078": "Bothwell",
          "3115": "Bourget, ON",
          "3080": "Bowmanville",
          "3082": "Bracebridge",
          "3084": "Bradford",
          "3086": "Braeside",
          "3087": "Bramalea",
          "3088": "Brampton",
          "3089": "Branchton",
          "3090": "Brantford",
          "3085": "Brechin",
          "3091": "Breslau",
          "3535": "Bridgenorth",
          "3092": "Bridgeport",
          "3572": "Brigden",
          "3093": "Bright",
          "3094": "Brighton",
          "3095": "Bright's Grove",
          "3573": "Britt",
          "3096": "Brockville",
          "3097": "Bronte",
          "3116": "Brooklin, ON",
          "3075": "Brownsville",
          "3098": "Bruce Mines",
          "3099": "Brunner",
          "3100": "Brussels",
          "3539": "Buckhorn",
          "3103": "Burford",
          "3101": "Burgessville",
          "3102": "Burk's Falls",
          "3104": "Burlington",
          "3106": "Burnt River",
          "3108": "Burritts Rapids",
          "3110": "Buttonville",
          "3118": "Cabden",
          "3120": "Cache Bay",
          "3119": "Caesarea",
          "3121": "Caistor Centre",
          "3123": "Caledon",
          "3122": "Caledon East",
          "3319": "Caledon Village",
          "3124": "Caledonia, ON",
          "3127": "Callander",
          "3129": "Cambridge",
          "3126": "Cambridge-Galt",
          "3574": "Cameron",
          "3182": "Camlachie",
          "3131": "Campbellcroft",
          "3128": "Campbellford",
          "3133": "Campbellville",
          "3183": "Canfield",
          "3130": "Cannington",
          "3132": "Capreol",
          "3135": "Caramat",
          "3134": "Cardinal",
          "3137": "Cardwal",
          "3136": "Carleton Place",
          "3139": "Carlisle",
          "3321": "Carlsbad Springs",
          "3141": "Carp",
          "3117": "Carrying Place",
          "3138": "Casselman",
          "3266": "Castleton",
          "3323": "Cavan",
          "3195": "Cayuga, ON",
          "3143": "Cedar Valley",
          "3568": "Central Elgin",
          "3145": "Centralia",
          "3325": "Chaffey's Lock",
          "3140": "Chalk River",
          "3147": "Chapleau",
          "3149": "Charing Cross",
          "3151": "Charlesbourg, ON",
          "3142": "Charlton",
          "3144": "Chatham, ON",
          "3146": "Chatsworth",
          "3153": "Chelmsford",
          "3155": "Cheltenham",
          "3148": "Chesley",
          "3150": "Chesterville, ON",
          "3157": "Churchill, ON",
          "3159": "Claremount, ON",
          "3161": "Clarendon",
          "3541": "Clarkson",
          "3163": "Clearwater, ON",
          "3152": "Clifford",
          "3154": "Clinton, ON",
          "3165": "Coatsworth",
          "3156": "Cobalt",
          "3158": "Cobden",
          "3160": "Cobourg",
          "3162": "Cochrane, ON",
          "3164": "Colborne",
          "3166": "Coldwater",
          "3167": "Colgan",
          "3168": "Collingwood",
          "3169": "Combermere",
          "3171": "Comlachie",
          "3173": "Concord",
          "3245": "Conestogo",
          "3170": "Coniston",
          "3184": "Conn",
          "3175": "Connaught",
          "3177": "Consecon",
          "3172": "Cookstown",
          "3174": "Copper Cliff",
          "3555": "Corbeil",
          "3176": "Cornwall, ON",
          "3185": "Corunna",
          "3179": "Cottam",
          "3107": "Courtice",
          "3189": "Courtland",
          "3178": "Courtright",
          "3180": "Creemore",
          "3181": "Crofton, ON",
          "3109": "Crysler",
          "3111": "Crystal Beach",
          "3186": "Cumberland, ON",
          "3187": "Curran",
          "3188": "Curve Lake",
          "3112": "Cutterville",
          "3191": "Dashwood",
          "3190": "Deep River",
          "3327": "Delaware",
          "3196": "Delhi",
          "3198": "Deloro",
          "3192": "Denfield",
          "3197": "Desbarats",
          "3200": "Deseronto",
          "3199": "Devlin",
          "3205": "Dinbrook",
          "3201": "Don Mills",
          "3212": "Dorchester, ON",
          "3207": "Downs",
          "3203": "Downsview",
          "3202": "Drayton",
          "3204": "Dresden",
          "3206": "Dryden",
          "3193": "Dublin",
          "3211": "Dufferin",
          "3559": "Dunchurch",
          "3210": "Dundalk",
          "3328": "Dundas",
          "3214": "Dunnville, ON",
          "3194": "Dunrobin",
          "3575": "Dunsford",
          "3219": "Dunvegan",
          "3216": "Durham, ON",
          "3218": "Dutton",
          "3213": "Dwight",
          "3215": "Dwyer Hill",
          "3217": "E Gwillimbury",
          "3222": "Eagle River",
          "3224": "Ear Falls",
          "3818": "East York",
          "3226": "Echo Bay",
          "3228": "Eden",
          "3230": "Eganville",
          "3229": "Elgin, ON",
          "3329": "Elizabethtown",
          "3231": "Elliot Lake",
          "3233": "Elmida",
          "3232": "Elmira",
          "3234": "Elmvale",
          "3235": "Elmwood",
          "3236": "Elora",
          "3238": "Embro",
          "3239": "Embrun",
          "3237": "Emo",
          "3240": "Englehart",
          "3243": "Enniskillen",
          "3241": "Ennismore",
          "3242": "Erie Beach",
          "3244": "Erieau",
          "3246": "Erin",
          "3248": "Espanola",
          "3250": "Essex",
          "3819": "Etobicoke",
          "3254": "Everett",
          "3256": "Exeter",
          "3270": "Fenelon Falls",
          "3220": "Fenwick, ON",
          "3272": "Fergus",
          "3274": "Finch",
          "3273": "Fisherville",
          "3271": "Fitzroy Harbour",
          "3275": "Flamborough",
          "3276": "Flesherton",
          "3277": "Floradale",
          "3281": "Florence",
          "3279": "Fonthill",
          "3278": "Forest",
          "3125": "Forks of the Credit",
          "3623": "Fort Albany",
          "3280": "Fort Erie",
          "3282": "Fort Frances",
          "3284": "Frankford",
          "3283": "Freelton",
          "3286": "Fruitland",
          "3337": "Fullarton",
          "3290": "Gananoque",
          "3292": "Garson, ON",
          "3294": "Georgetown, ON",
          "3291": "Georgian Bay",
          "3296": "Geraldton",
          "3297": "Gilford",
          "3317": "Girouxville, ON",
          "3945": "Glen Robertson",
          "3299": "Glen William",
          "3298": "Glencoe",
          "3301": "Gloucester",
          "3300": "Goderich",
          "3303": "Godfrey",
          "3338": "Golden Lake",
          "3295": "Goodwood",
          "3302": "Gore Bay",
          "3461": "Gores Landing",
          "3305": "Gormley",
          "3307": "Goulais",
          "3309": "Gowanstown",
          "3311": "Grafton",
          "3304": "Grand Bend",
          "3306": "Grand Valley",
          "3293": "Granton",
          "3313": "Grassie",
          "3576": "Grassy Narrows",
          "3308": "Gravenhurst",
          "3314": "Greely",
          "3316": "Griffith",
          "3310": "Grimsby",
          "3312": "Guelph",
          "3320": "Hagersville",
          "3322": "Haileybury",
          "3333": "Haliburton",
          "3334": "Halton Hills",
          "3324": "Hamilton, ON",
          "3335": "Hampton, ON",
          "3339": "Hanmer",
          "3336": "Hannon",
          "3340": "Hanover",
          "3341": "Harbour Crest",
          "3343": "Harley",
          "3342": "Harriston",
          "3344": "Harrow",
          "3345": "Harrowsmith",
          "3578": "Harwood",
          "3346": "Hastings",
          "3348": "Havelock",
          "3350": "Hawkesbury",
          "3349": "Hawkestone",
          "3351": "Hawkesville",
          "3352": "Hearst",
          "3560": "Heidelberg",
          "3354": "Hensall",
          "3356": "Hepworth",
          "3358": "Highgate",
          "3221": "Hillsburgh, ON",
          "3331": "Hillsdale",
          "3360": "Hilton Beach",
          "3347": "Holland Centre",
          "3361": "Holland Landing",
          "3363": "Holstein",
          "3353": "Honeywood",
          "3364": "Hornby, ON",
          "3366": "Hornepayne",
          "3359": "Horning Mills",
          "3362": "Huntsville",
          "3367": "Huron Park",
          "3368": "Hyde Park",
          "3372": "Ignace",
          "3355": "Ilderton",
          "3380": "Ingersoll",
          "3374": "Ingleside",
          "3376": "Inglewood",
          "3378": "Innerkip",
          "3357": "Innisfil",
          "3591": "Inverary",
          "3371": "Inwood",
          "3365": "Iona Station",
          "3382": "Iron Bridge",
          "3384": "Iroquois",
          "3386": "Iroquois Falls",
          "3387": "Islington",
          "3388": "Jackson's Point",
          "3593": "Janetville",
          "3390": "Jarvis",
          "3389": "Jerseyville",
          "3395": "Jordan",
          "3391": "Kagawong",
          "3393": "Kakabeka Falls",
          "3392": "Kaministiquia",
          "3394": "Kanata",
          "3400": "Kapuskasing",
          "3369": "Kars",
          "3402": "Kearney",
          "3403": "Keene",
          "3404": "Keewatin",
          "3405": "Kemble",
          "3406": "Kemptville",
          "3401": "Kenilworth",
          "3408": "Kenora",
          "3409": "Kent Bridge",
          "3411": "Kerwood",
          "3415": "Keswick",
          "3417": "Kettleby",
          "3373": "Kilbride, ON",
          "3410": "Killaloe",
          "3407": "Kinburn",
          "3412": "Kincardine",
          "3419": "Kincourt",
          "3413": "King",
          "3422": "King City",
          "3414": "Kingston, ON",
          "3416": "Kingsville, ON",
          "3594": "Kinmount",
          "3595": "Kippen",
          "3418": "Kirkland Lake",
          "3420": "Kitchener",
          "3424": "Kleinburg",
          "3426": "Komoka",
          "3430": "La Broquerie",
          "3431": "La Salette",
          "3441": "Ladner Lake",
          "3434": "Lake St. Peter",
          "3442": "Lakefield",
          "3436": "Lambeth",
          "3444": "Lanark",
          "3446": "Lancaster, ON",
          "3438": "Langton",
          "3447": "Lansdowne",
          "3433": "LaSalle, ON",
          "3448": "Latchford",
          "3450": "Leamington",
          "3451": "Leaside",
          "3453": "Leaskdale",
          "3432": "Lefaivre",
          "3449": "Lefroy",
          "3452": "Levack",
          "3457": "Limehouse",
          "3454": "Lincoln",
          "3456": "Lindsay",
          "3459": "Linwood",
          "3458": "Lion's Head",
          "3460": "Listowel",
          "3375": "Little Britain",
          "3462": "Little Current",
          "3464": "Lively",
          "3465": "Lombardy",
          "3377": "Londesborough",
          "3466": "London",
          "3467": "Long Branch",
          "3469": "Long Sault",
          "3379": "Longlac",
          "3471": "Lorette, ON",
          "3440": "L'Orignal",
          "3946": "Loring",
          "3468": "Lucan",
          "3470": "Lucknow",
          "3472": "Lynden",
          "3476": "Maberly",
          "3478": "Mactier",
          "3480": "Madoc",
          "3482": "Magnetawan",
          "3483": "Maidstone, ON",
          "3485": "Maitland",
          "3223": "Mallorytown, ON",
          "3477": "Malton",
          "3487": "Manitouwadge",
          "3489": "Manotick",
          "3491": "Mansfield",
          "3493": "Maple",
          "3479": "Marathon",
          "3484": "Markdale",
          "3486": "Markham",
          "3561": "Markstay",
          "3488": "Marmora",
          "3490": "Massey",
          "3492": "Mattawa",
          "3494": "Maxville",
          "3481": "Maynooth",
          "3495": "McGregor",
          "3381": "Mckellar",
          "3496": "Meaford",
          "3497": "Merlin",
          "3498": "Merrickville",
          "3383": "Metcalfe",
          "3499": "Midhurst",
          "3500": "Midland",
          "3502": "Mildmay",
          "3385": "Milford",
          "3268": "Millbank",
          "3504": "Millbrook",
          "9103": "Miller Lake",
          "3264": "Millgrove",
          "3506": "Milton",
          "3508": "Milverton",
          "3509": "Mimico",
          "3596": "Mindemoya",
          "3507": "Minden",
          "3396": "Minesing",
          "3511": "Missanabie",
          "3510": "Mississauga",
          "3512": "Mitchell, ON",
          "3397": "Moffat",
          "3503": "Monkton",
          "3996": "Monteith",
          "3505": "Moonbeam",
          "3513": "Moorefield",
          "3501": "Moose Factory",
          "3515": "Moosonee",
          "3514": "Morrisburg",
          "3597": "Morriston",
          "3518": "Mount Albert",
          "3517": "Mount Brydges",
          "3949": "Mount Elgin",
          "3516": "Mount Forest",
          "3330": "Mount Hope",
          "3519": "Mount Pleasant",
          "3520": "Mountain",
          "3521": "Muirkirk",
          "3950": "Murillo",
          "3522": "Nairn",
          "3524": "Nakina",
          "3525": "Nannon",
          "3526": "Nanticoke",
          "3530": "Napanee",
          "3528": "Navan",
          "3531": "Nepean",
          "3529": "Nestor Falls",
          "3532": "Neustadt",
          "3533": "New Dundee",
          "3534": "New Hamburg",
          "3536": "New Liskeard",
          "3537": "New Lowell",
          "3538": "Newboro",
          "3540": "Newburgh",
          "3542": "Newbury",
          "3544": "Newcastle, ON",
          "3546": "Newmarket",
          "3547": "Newtonville",
          "3548": "Niagara Falls",
          "3550": "Niagara-on-the-Lake",
          "3543": "Nipigon",
          "3598": "Nobel",
          "3549": "Nobleton",
          "3551": "North Augusta",
          "3552": "North Bay",
          "3545": "North Gower",
          "3827": "North York",
          "3553": "Norval",
          "3554": "Norwich",
          "3556": "Norwick",
          "3557": "Norwood",
          "3527": "Nottawa",
          "3562": "Novar",
          "3370": "Oakland",
          "3580": "Oakville",
          "3582": "Oil Springs",
          "3579": "Oldcastle",
          "3581": "Oliphant",
          "3584": "Omemee",
          "3583": "Ompah",
          "3586": "Orangeville",
          "3588": "Orillia",
          "3585": "Orleans",
          "3258": "Orono",
          "3587": "Orton",
          "3589": "Osgoode",
          "3590": "Oshawa",
          "3592": "Ospringe",
          "4999": "Other",
          "3600": "Ottawa",
          "3606": "Otterville, ON",
          "3610": "Owen Sound",
          "3609": "Oxford County",
          "3608": "Oxford Mills",
          "3607": "Oxford, ON",
          "3611": "Oxley",
          "3620": "Paisley",
          "3621": "Palgrave",
          "3622": "Palmerston",
          "3624": "Paris",
          "3625": "Parkdale, ON",
          "3626": "Parkhill",
          "3628": "Parry Sound",
          "3563": "Pass Lake",
          "3629": "Pefferlaw",
          "3630": "Pelham",
          "3632": "Pembroke",
          "3633": "Penetang",
          "3634": "Penetanguishene",
          "3635": "Perkinsfield",
          "3463": "Perrault Falls",
          "3564": "Perth Road",
          "3636": "Perth, ON",
          "3638": "Petawawa",
          "3640": "Peterborough",
          "3641": "Petersburg",
          "3642": "Petrolia",
          "3398": "Phelpston",
          "3644": "Pickering",
          "3646": "Picton, ON",
          "3947": "Pigeon Lake",
          "3648": "Plantagenet",
          "3649": "Plattsville",
          "3647": "Plevna",
          "3650": "Point Edward",
          "3643": "Pointe au Baril",
          "3645": "Pontypool",
          "3651": "Porcupine",
          "3652": "Port Burwell",
          "3655": "Port Cambton",
          "3653": "Port Carling",
          "3654": "Port Colborne",
          "3656": "Port Credit",
          "3658": "Port Dover",
          "3660": "Port Elgin, ON",
          "3399": "Port Franks",
          "3662": "Port Hope",
          "3663": "Port Lambton",
          "3664": "Port McNicoll",
          "3666": "Port Perry",
          "3668": "Port Rowan",
          "3669": "Port Severn",
          "3667": "Port Stanley",
          "3665": "Port Sydney",
          "3421": "Pottageville",
          "3670": "Powassan",
          "3672": "Prescott",
          "3674": "Princeton, ON",
          "3675": "Proton Station",
          "3676": "Puslinch",
          "3599": "Queenston",
          "3681": "Queensville",
          "3680": "Quibell",
          "3690": "Rainy River",
          "3565": "Ravenna",
          "3688": "Ravenswood",
          "3689": "Red Lake",
          "3691": "Red Rock",
          "3692": "Renfrew",
          "3693": "Rexdale",
          "3225": "Richards Landing",
          "3696": "Richmond Hill, ON",
          "3694": "Richmond, ON",
          "3698": "Ridgetown",
          "3699": "Ridgeville",
          "3701": "Ridgeway",
          "3700": "Ripley",
          "3423": "River Drive Park",
          "3602": "Rockcliffe Park",
          "3704": "Rockland",
          "3703": "Rockwood",
          "3706": "Rodney",
          "3707": "Roseneath",
          "3709": "Rossport",
          "3708": "Rousseau",
          "3710": "Russell, ON",
          "3711": "Ruthven",
          "3713": "Salford",
          "3771": "Saltfort",
          "3714": "Sarnia",
          "3566": "Sarsfield",
          "3716": "Sault Ste Marie",
          "3829": "Scarborough",
          "3712": "Schomberg",
          "3715": "Schreiber",
          "3717": "Schumacher",
          "3718": "Scotland",
          "3720": "Seaforth",
          "3601": "Seagrave",
          "3773": "Sebringville",
          "3719": "Seeleys Bay",
          "3775": "Selby",
          "3721": "Severn Bridge",
          "3737": "Shakespeare",
          "3722": "Shallow Lake",
          "3776": "Shanty Bay",
          "3723": "Sharon",
          "3425": "Sheguiandah",
          "3724": "Shelburne, ON",
          "3725": "Sherkston",
          "3726": "Simcoe",
          "3473": "Singhampton",
          "3728": "Sioux Lookout",
          "3727": "Sioux Narrows",
          "3729": "Sleeman",
          "3730": "Smiths Falls",
          "3731": "Smithville",
          "3732": "Smooth Rock Falls",
          "3756": "Sombra",
          "3733": "South Porcupine",
          "3735": "South Portage",
          "3734": "South River, ON",
          "3948": "South Wold",
          "3428": "South Woodslee",
          "3736": "Southampton",
          "3777": "Spencerville",
          "3778": "Spring Bay",
          "3738": "Springfield, ON",
          "3740": "St Catharines",
          "3742": "St Clair Beach",
          "3567": "St Davids",
          "3260": "St George",
          "3746": "St Mary's",
          "3748": "St Thomas",
          "3745": "St. Agatha",
          "3429": "St. Andrews West",
          "3739": "St. Ann's",
          "3741": "St. Bernardin",
          "3743": "St. Charles, ON",
          "3744": "St. Isidore",
          "3747": "St. Paul, ON",
          "3749": "St. Williams",
          "3751": "Staffa",
          "3750": "Stayner",
          "3753": "Stevensville",
          "3752": "Stirling, ON",
          "3754": "Stittsville",
          "3332": "Stoney Creek",
          "3755": "Stoney Point",
          "3922": "Stouffville",
          "3759": "Stratffordville",
          "3758": "Stratford, ON",
          "3760": "Strathroy",
          "3757": "Stratton",
          "3761": "Streetford",
          "3762": "Streetsville",
          "3763": "Stroud",
          "3765": "Strudberry",
          "3764": "Sturgeon Falls",
          "3767": "Sturgeon Lake",
          "3766": "Sturgeon Point",
          "3768": "Sudbury",
          "3769": "Sunderland",
          "3770": "Sundridge",
          "3774": "Sutton West",
          "3772": "Sutton, ON",
          "3780": "Tara",
          "3782": "Tavistock",
          "3784": "Tecumseh",
          "3786": "Teeswater",
          "3785": "Terra Cotta",
          "3787": "Terrace Bay",
          "3789": "Teviotdale",
          "3227": "Thamesford, ON",
          "3788": "Thamesville",
          "3790": "Thedford, ON",
          "3792": "Thessalon",
          "3794": "Thornbury",
          "3795": "Thorndale",
          "3793": "Thornhill",
          "3796": "Thornloe",
          "3791": "Thornton",
          "3798": "Thorold",
          "3800": "Thunder Bay",
          "3802": "Tilbury",
          "3804": "Tillsonburg",
          "3806": "Timmins",
          "3808": "Tiverton",
          "3810": "Tobermory",
          "3811": "Toledo",
          "3812": "Toronto",
          "3842": "Tottenham",
          "3844": "Trenton, ON",
          "3846": "Trout Creek",
          "3847": "Turkey Point",
          "3848": "Tweed",
          "3856": "Unionville",
          "3858": "Utopia",
          "3860": "Uxbridge",
          "3866": "Val Caron",
          "3868": "Vanessa",
          "3870": "Vanier, ON",
          "3872": "Vankleek Hill",
          "3247": "Vars",
          "3874": "Vaughan",
          "3875": "Vermillion Bay",
          "3876": "Victoria Harbour",
          "3878": "Vienna",
          "3880": "Vineland",
          "3882": "Virgil",
          "3884": "Virginiatown",
          "3885": "Vittoria",
          "3435": "Wahnapitae",
          "3886": "Wainfleet",
          "3888": "Waldhof",
          "3890": "Walkerton",
          "3892": "Wallaceburg",
          "3887": "Wallenstein",
          "3889": "Walsingham",
          "3891": "Walton, ON",
          "3894": "Wardsville",
          "3603": "Warkworth",
          "3895": "Warminster",
          "3893": "Warren, ON",
          "3474": "Warsaw",
          "3896": "Wasaga Beach",
          "3897": "Washago",
          "3899": "Waterdown",
          "3898": "Waterford",
          "3900": "Waterloo, ON",
          "3901": "Watertown",
          "3902": "Watford",
          "3437": "Waubaushene",
          "3904": "Wawa",
          "3906": "Webbwood",
          "3908": "Welland",
          "3907": "Wellandport",
          "3910": "Wellesley",
          "3912": "Wellington, ON",
          "3475": "Wendover",
          "3914": "West Lorne",
          "3913": "Westhill",
          "3523": "Westmeath",
          "3915": "Weston",
          "3916": "Westport",
          "3917": "Westwood",
          "3918": "Wheatley",
          "3920": "Whitby",
          "3909": "White Lake",
          "3923": "Whitefish",
          "3262": "Whitevale",
          "3911": "Wiarton",
          "3919": "Williamsford",
          "3921": "Williamstown",
          "3604": "Willow Beach",
          "3925": "Willowdale",
          "3443": "Wilno",
          "3927": "Wilsonville",
          "3926": "Winchester",
          "3928": "Windsor, ON",
          "3930": "Wingham",
          "3931": "Winona",
          "3933": "Woodbridge",
          "3903": "Woodham",
          "3445": "Woodlawn",
          "3932": "Woodstock, ON",
          "3934": "Woodville",
          "3558": "Worwood",
          "3929": "Wroxeter",
          "3937": "Wyebridge",
          "3455": "Wyevale",
          "3936": "Wyoming",
          "3938": "Yarker",
          "3838": "York",
          "3839": "York Mills",
          "3939": "Zephyr",
          "3940": "Zurich"
        },
        "PE": {
          "0301": "Albany, PE",
          "0302": "Alberton",
          "0303": "Belfast",
          "0313": "Birch Hill",
          "0319": "Bloomfield, PE",
          "0315": "Bonshaw",
          "0304": "Borden, PE",
          "0305": "Breadalbane",
          "0306": "Bunbury",
          "0308": "Cardigan",
          "0310": "Central Bedeque",
          "0312": "Charlottetown",
          "0320": "Cornwall, PE",
          "0322": "Crapaud",
          "0326": "French River",
          "0323": "Garfield",
          "0324": "Georgetown, PE",
          "0318": "Hampton",
          "0307": "Hunter River, PE",
          "0330": "Kensington",
          "0336": "Kinkora",
          "0338": "Miminigash",
          "0340": "Miscouche",
          "0342": "Montague",
          "0344": "Morell",
          "0346": "Mount Stewart",
          "0348": "Murray Harbour",
          "0350": "Murray River",
          "0309": "New Glasgow, PE",
          "0354": "North Rustico",
          "0358": "O'Leary",
          "0399": "Other",
          "0314": "Parkdale, PE",
          "0355": "Richmond, PE",
          "0317": "Rosebank",
          "0316": "Sherwood, PE",
          "0328": "Slemon Park",
          "0360": "Souris, PE",
          "0361": "South Port",
          "0362": "St Eleanor's",
          "0364": "St Louis, PE",
          "0368": "St. Peters Bay",
          "0311": "Stratford",
          "0374": "Summerside",
          "0376": "Tignish",
          "0378": "Tyne Valley",
          "0382": "Victoria, PE",
          "0386": "Wellington, PE",
          "0388": "Wilmot, PE",
          "0390": "Winsloe"
        },
        "QC": {
          "1006": "Abercorn",
          "1027": "Abitibi",
          "1008": "Actonvale",
          "1010": "Adamsville",
          "1021": "Adstock",
          "1604": "Ahuntsic",
          "1012": "Albanel",
          "1014": "Alma, QC",
          "1602": "A-Ma-Baie",
          "1016": "Amos",
          "1018": "Amqui",
          "1022": "Andreville",
          "1028": "Angers",
          "1029": "Anjou",
          "1030": "Annaville",
          "1032": "Armagh",
          "1034": "Arthabaska",
          "1036": "Arvida",
          "1038": "Asbestos",
          "1039": "Ascot Corner",
          "1040": "Aston Jonction",
          "1041": "Athelston",
          "1042": "Ayer's Cliff",
          "1044": "Aylmer, QC",
          "1050": "Bagotville",
          "1056": "Baie de Shawiniga",
          "1052": "Baie-Comeau",
          "1054": "Baie-des-Sables",
          "1057": "Baie-du-Febvre",
          "1053": "Baie-du-Poste",
          "1606": "Baie-d'Urfé",
          "1058": "Baie-Saint-Paul",
          "1060": "Baie-Trinite",
          "1062": "Baieville",
          "1064": "Barkmere",
          "1066": "Barraute",
          "1068": "Barville",
          "1608": "Beaconsfield, QC",
          "1070": "Beattyville",
          "1189": "Beauce",
          "1072": "Beauceville",
          "1074": "Beauharnois",
          "1076": "Beaulac",
          "1078": "Beaulieu",
          "2032": "Beauport",
          "1082": "Beaupre",
          "1610": "Beaurepaire",
          "1084": "Becancour",
          "1086": "Bedford, QC",
          "1088": "Beebe Plain",
          "1090": "Belair",
          "1091": "Bellefeuille",
          "1092": "Belleterre",
          "1094": "Beloeil",
          "1095": "Bernieres",
          "1096": "Bernierville",
          "1098": "Berthierville",
          "1102": "Bishopton",
          "1104": "Black Lake",
          "1106": "Blainville",
          "1597": "Boileau",
          "1107": "Boisbriand",
          "1105": "Boisbuard",
          "1109": "Boischatel",
          "1108": "Bois-des-Filion",
          "1153": "Bolton-Ouest",
          "1111": "Bonaventure",
          "1110": "Boucherville",
          "1043": "Brebeuf",
          "1119": "Brigham",
          "1112": "Brome",
          "1114": "Bromont",
          "1116": "Bromptonville",
          "1612": "Brossard",
          "1120": "Brownsburg",
          "1122": "Bryson",
          "1124": "Buckingham",
          "1130": "Cabano",
          "1132": "Cadillac, QC",
          "1045": "Calixa-Lavallee",
          "1134": "Calumet",
          "1136": "Campbell's Bay",
          "1616": "Candiac",
          "1138": "Cantley",
          "1140": "Cap-a-l'Aigle",
          "1142": "Cap-aux-Meules",
          "1144": "Cap-Chat",
          "1146": "Cap-de-la-Madeleine",
          "1046": "Caplan",
          "1147": "Cap-Rouge",
          "1587": "Cap-Santé",
          "1148": "Carignan",
          "1150": "Carillon",
          "1151": "Carleton",
          "1618": "Cartierville",
          "1152": "Causapscal",
          "1154": "Chambly",
          "1156": "Chambord",
          "1158": "Champlain",
          "1160": "Chandler",
          "1162": "Chapais",
          "1164": "Chapeau",
          "1118": "Charlemagne",
          "2034": "Charlesbourg, QC",
          "1170": "Charny",
          "1174": "Chateauguay",
          "1176": "Chateauguay Centre",
          "1172": "Chateau-Richer",
          "1177": "Chelsea",
          "1178": "Cheneville",
          "1007": "Chertsey, QC",
          "1180": "Chesterville, QC",
          "1182": "Chibougamau",
          "1184": "Chicoutimi",
          "1186": "Chicoutimi Nord",
          "1187": "Chisasibi",
          "1622": "Chomedy",
          "1188": "Chute-aux-Outardes",
          "1190": "Clarenceville",
          "1192": "Clermont",
          "1193": "Clova",
          "1194": "Coaticook",
          "1196": "Compton",
          "1198": "Contrecoeur",
          "1200": "Cookshire",
          "1202": "Coteau-du-Lac",
          "1204": "Coteau-Landing",
          "1025": "Cote-des-Neiges",
          "1630": "Côte-Sainte-Catherine",
          "1628": "Côte-Saint-Luc",
          "1205": "Courcelles",
          "1206": "Courville",
          "1208": "Cowansville",
          "1210": "Crabtree",
          "1218": "Dalesville",
          "1220": "Danville",
          "1222": "Daveluyville",
          "1224": "De Grasse",
          "1226": "Deauville",
          "1228": "Degelis",
          "1634": "Delson",
          "1232": "Desbiens",
          "1234": "Deschaillons",
          "1236": "Deschaillons-sur-Saint-Laurent",
          "1238": "Deschambault",
          "1240": "Deschenes",
          "1242": "Deux-Montagnes",
          "1244": "Disraeli",
          "1246": "Dixville",
          "1248": "Dolbeau",
          "1636": "Dollard-des-Ormeaux",
          "1252": "Donnaconna",
          "1254": "Dorion",
          "1638": "Dorval",
          "1256": "Dosquet",
          "1258": "Douville",
          "1260": "Drummondville",
          "1261": "Duberger",
          "1125": "Duclos",
          "1262": "Dunham",
          "1264": "Duparquet",
          "1266": "Durham South, QC",
          "1640": "Duvernay",
          "1270": "East Angus",
          "1272": "East Broughton St",
          "1274": "East Farnham",
          "1275": "East Hereford",
          "1276": "Eastman",
          "1278": "Esterel",
          "1280": "Evain",
          "1286": "Fabre",
          "1288": "Fabreville",
          "1290": "Farnham",
          "1292": "Ferme-Neuve",
          "1291": "Fermont",
          "1293": "Filford",
          "1295": "Fleurmont",
          "1294": "Forestville",
          "1296": "Fort-Coulonge",
          "1298": "Fortierville",
          "1300": "Fossambault-sur-le-Lac",
          "1301": "Foster",
          "1302": "Francoeur",
          "1303": "Franklin",
          "1304": "Frelighsburg",
          "1310": "Gagnon",
          "1312": "Gaspe",
          "1314": "Gatineau",
          "1315": "Gentilly",
          "1316": "Giffard",
          "1047": "Girardville",
          "1317": "Glenn Sutton",
          "1318": "Godbout",
          "1126": "Godmanchester",
          "1320": "Gracefield",
          "1322": "Granby",
          "1323": "Grande-Ile",
          "1326": "Grandes-Bergeronnes",
          "1325": "Grande-Vallée",
          "1324": "Grand-Mère",
          "1328": "Greece's Point",
          "1646": "Greenfield Park",
          "1330": "Grenville",
          "1336": "Ham Nord",
          "1648": "Hampstead",
          "1340": "Hatley",
          "1342": "Hauterive",
          "1344": "Hebertville Stati",
          "1346": "Hemmingford",
          "1348": "Henryville",
          "1350": "Howick",
          "1352": "Hudson",
          "1353": "Hudson Heights",
          "1354": "Hull",
          "1356": "Huntingdon, QC",
          "1360": "Iberville",
          "1650": "Île Charron",
          "1652": "Île Claude",
          "1658": "Île Dorval",
          "1660": "Île Laval",
          "1361": "Île-aux-Coudres",
          "1364": "Île-Bizard",
          "1362": "Île-Cadieux",
          "1654": "Île-de-la-Visitation",
          "1656": "Île-des-Soeurs",
          "1363": "Île-d'Orlea",
          "1365": "Île-Michon",
          "1366": "Île-Perrot",
          "1367": "Îles-de-la-Madeleine",
          "1368": "Îles-d'Entree",
          "1370": "Inverness, QC",
          "1626": "Jacques-Cartier",
          "1380": "Joliette",
          "1382": "Jonquière",
          "1384": "Joutel",
          "1620": "Kahnawake",
          "1386": "Kamouraska",
          "1388": "Kenogami",
          "1390": "Kingsbury",
          "1392": "Kingsey Falls",
          "1387": "Kinnear",
          "1664": "Kirkland",
          "1393": "Knowlton",
          "2497": "La Baie",
          "1408": "La Guadeloupe",
          "1585": "La Macaza",
          "1410": "La Malbaie",
          "1412": "La Patrie",
          "1049": "La Peche",
          "1414": "La Perade",
          "1415": "La Plaine",
          "1416": "La Pocatière",
          "1670": "La Prairie",
          "1418": "La Présentation",
          "1420": "La Providence",
          "1422": "La Reine",
          "1424": "La Sarre",
          "1426": "La Station du Cot",
          "1428": "La Tuque",
          "1429": "La Visitation",
          "1430": "Labelle",
          "1394": "L'Acadie",
          "1432": "Lac-à-la-Croix",
          "1434": "Lac-au-Saumon",
          "1435": "Lac-Beauport",
          "1436": "Lac-Bouchette",
          "1438": "Lac-Brome",
          "1440": "Lac-Carre",
          "1442": "Lac-Delage",
          "1444": "Lac-des-Écorces",
          "1446": "Lac-Etchemin",
          "1456": "Lachenaie",
          "1672": "Lachine",
          "1458": "Lachute",
          "1447": "Lac-Masson",
          "1448": "Lac-Megantic",
          "1460": "Lacolle",
          "1450": "Lac-Poulin",
          "1451": "Lac-Saint-Charles",
          "1051": "Lac-Sainte-Marie",
          "1453": "Lac-Saint-Jean",
          "1454": "Lac-Saint-Joseph",
          "1455": "Lac-Saint-Paul",
          "1452": "Lac-Sergent",
          "1457": "Lac-Supérieur",
          "1674": "Laflèche, QC",
          "1464": "Lafontaine",
          "1466": "Lambton",
          "1020": "L'Ancienne-Lorette",
          "1024": "L'Ange-Gardien",
          "1026": "Langeliers",
          "1396": "L'Annonciation",
          "1048": "L'Anse-Saint-Jean",
          "1676": "LaSalle",
          "1468": "Lasavanne",
          "1398": "L'Assomption",
          "1470": "Laterrière",
          "1472": "Laurentides",
          "1474": "Laurier Station",
          "1476": "Laurierville",
          "1478": "Lauzon",
          "1678": "Laval",
          "1480": "Laval-des-Rapides",
          "1482": "Lavaltrie",
          "1400": "L'Avenir",
          "1484": "Lawrenceville",
          "1100": "Le Bic",
          "1489": "Le Gardeur",
          "1486": "Lebel-sur-Quévillon",
          "1488": "Leclercville",
          "1490": "Lemieux",
          "1680": "Lemoyne",
          "1492": "Lennoxville",
          "1402": "L'Épiphanie",
          "1494": "Lery",
          "1496": "Les Becquets",
          "1498": "Les Cèdres",
          "1500": "Lévis",
          "1501": "Limoilou",
          "1502": "Liniere",
          "1406": "L'Isle Verte",
          "1404": "L'Islet",
          "1682": "Longue-Pointe",
          "1684": "Longueuil",
          "2036": "Loretteville",
          "1506": "Lorraine",
          "1508": "Lorrainville",
          "1510": "Lotbinière",
          "1512": "Louiseville",
          "1514": "Luceville",
          "1516": "Luskville",
          "1518": "Lyster",
          "1530": "Macamic",
          "1532": "Magog",
          "1534": "Malartic",
          "1535": "Malbaie",
          "1536": "Maniwaki",
          "1538": "Manseau",
          "1539": "Mansonville",
          "1540": "Maple Grove",
          "1542": "Marbleton",
          "1055": "Maria",
          "1544": "Marieville",
          "1546": "Marsoui",
          "1548": "Mascouche",
          "1550": "Maskinonge",
          "1552": "Masson",
          "1554": "Massueville",
          "1556": "Matagami",
          "1558": "Matane",
          "1560": "McMasterville",
          "1562": "Melbourne",
          "1564": "Melocheville",
          "1566": "Mercier",
          "1567": "Metabetchouan",
          "1568": "Métis-sur-Mer",
          "1573": "Mirabel",
          "1570": "Mistassini",
          "1569": "Moffet",
          "1576": "Mont Laurier",
          "1580": "Mont Saint-Pierre",
          "1571": "Mont-Apica",
          "1582": "Montauban",
          "1575": "Mont-Carmel",
          "1583": "Montcerf",
          "1584": "Montebello",
          "1572": "Mont-Gabriel",
          "1574": "Mont-Joli",
          "1586": "Montmagny",
          "1588": "Montmorency",
          "1694": "Montreal",
          "1692": "Montreal Centre-Nord",
          "1696": "Montreal Est",
          "1698": "Montreal Nord",
          "1700": "Montreal Nord-Est",
          "1702": "Montreal Nord-Ouest",
          "1708": "Montreal Ouest",
          "1710": "Montreal Sud-Est",
          "1577": "Mont-Rolland",
          "1716": "Mont-Royal",
          "1579": "Mont-Saint-Gregoire",
          "1578": "Mont-Saint-Hilaire",
          "1581": "Mont-Tremblant",
          "1590": "Morin-Heights",
          "1908": "Murdochville",
          "1928": "Napierville",
          "1929": "Neufchâtel",
          "1930": "Neuville",
          "2772": "New Carlisle",
          "1932": "New Glasgow, QC",
          "1934": "New Richmond",
          "1936": "Nicolet",
          "1937": "Nitro",
          "1938": "Nominingue",
          "1940": "Noranda",
          "1942": "Norbertville",
          "1944": "Normandin",
          "1946": "North Hatley",
          "1718": "Notre-Dame-de-Bon-Secours",
          "1720": "Notre-Dame-de-Grace",
          "1719": "Notre-Dame-de-Île-Perrot",
          "1919": "Notre-Dame-de-Pierreville",
          "1922": "Notre-Dame-des-Anges",
          "2038": "Notre-Dame-des-Laurentides",
          "1721": "Notre-Dame-des-Pins",
          "1923": "Notre-Dame-des-Prairies",
          "1920": "Notre-Dame-d'Hebertville",
          "1924": "Notre-Dame-du-Bon-Conseil",
          "1926": "Notre-Dame-du-Lac",
          "1722": "Notre-Dame-du-Sacré-Coeur",
          "1947": "Noyan",
          "1948": "Oka",
          "1952": "Omerville",
          "1953": "Orford",
          "1954": "Ormstown",
          "2040": "Orsainville",
          "2999": "Other",
          "1958": "Otterburn Park",
          "1730": "Outremont",
          "1059": "Packington",
          "1736": "Pagenteuil",
          "1970": "Papineauville",
          "1972": "Parent",
          "1974": "Pascalis",
          "1975": "Paspebiac",
          "1737": "Pentecote",
          "1976": "Percé",
          "1738": "Perkins",
          "1127": "Petite-Riviere-Saint-Francois",
          "1598": "Petit-Saguenay",
          "1978": "Philipsburg",
          "1979": "Piedmont",
          "1740": "Pierrefonds Est",
          "1742": "Pierrefonds Ouest",
          "1980": "Pierreville",
          "1982": "Pincourt",
          "1743": "Pintendre",
          "1984": "Plessisville",
          "1061": "Pohenegamook",
          "1985": "Point-au-Père",
          "1986": "Pointe-au-Pic",
          "1988": "Pointe-aux-Outardes",
          "1746": "Pointe-aux-Trembles",
          "1992": "Pointe-Calumet",
          "1748": "Pointe-Claire",
          "1996": "Pointe-des-Cascades",
          "1998": "Pointe-du-Moulin",
          "2002": "Pointe-Fortune",
          "2004": "Pointe-Gatineau",
          "2006": "Pointe-Lebel",
          "2008": "Pont-Rouge",
          "1750": "Pont-Viau",
          "2014": "Portage-du-Fort",
          "2010": "Port-Alfred",
          "2012": "Port-Cartier",
          "2016": "Portneuf",
          "2017": "Povungnituk",
          "1063": "Preissac",
          "1754": "Preville",
          "2018": "Prevost",
          "2020": "Price",
          "2022": "Princeville",
          "2024": "Proulxville",
          "2030": "Quebec City",
          "2060": "Quyon",
          "2068": "Radisson, QC",
          "2070": "Rawdon",
          "2072": "Repentigny",
          "2074": "Richelieu",
          "2078": "Richmond, QC",
          "2080": "Rigaud",
          "2082": "Rimouski",
          "2084": "Rimouski Est",
          "2086": "Ripon",
          "2088": "Rivière-Beaudette",
          "1760": "Rivière-des-Prairies",
          "2090": "Rivière-du-Loup",
          "2092": "Rivière-du-Moulin",
          "2093": "Riviere-Malbaie",
          "2094": "Robertsonville",
          "2096": "Roberval",
          "2098": "Rock Island",
          "2097": "Rock-Forest",
          "2100": "Rosemere",
          "1128": "Rosemont",
          "2102": "Rougemont",
          "2104": "Rouyn",
          "1762": "Roxboro",
          "2108": "Roxton Falls",
          "1763": "Roxton Pond",
          "1065": "S.Bernard-Lacolle",
          "2109": "Sabrevois",
          "2110": "Sacré-Coeur-de-Jesus",
          "2112": "Saguenay",
          "1243": "Saint-Adolphe-d'Howard",
          "1765": "Saint-Anaclet-de-Lessard",
          "2156": "Saint-Andre-Avellin",
          "2157": "Saint-Andre-d'Acton",
          "2158": "Saint-Andre-du-Lac-Saint-Jean",
          "2163": "Saint-Antoine-de-Tilly",
          "2166": "Saint-Basile-le-Grand",
          "2172": "Saint-Boniface-de-Shawinigan",
          "2176": "Saint-Bruno-de-Montarville",
          "1009": "Saint-Charles-Borromee",
          "2188": "Saint-Charles-des-Grondines",
          "2190": "Saint-Charles-sur-Richelieu",
          "2196": "Saint-Coeur-de-Marie",
          "1129": "Saint-Come",
          "2202": "Saint-David-de-L'Auberiviere",
          "2386": "Sainte-Anne-de-Beaupré",
          "1770": "Sainte-Anne-de-Bellevue",
          "2404": "Sainte-Cécile-de-Levrard",
          "2405": "Sainte-Cécile-de-Masham",
          "2399": "Sainte-Cécile-de-Milton",
          "1771": "Sainte-Claire",
          "2401": "Sainte-Dorothée",
          "1019": "Sainte-Emelie-de-L'Energie",
          "2402": "Sainte-Felicité",
          "2042": "Sainte-Foy",
          "1772": "Sainte-Genevieve",
          "1773": "Sainte-Genevieve-de-Batiscan",
          "2408": "Sainte-Hélène-de-Bagot",
          "2410": "Sainte-Jeanne-d'Arc",
          "2411": "Sainte-Julie",
          "1774": "Saint-Elie-d'Orford",
          "1145": "Sainte-Marcelline-de-Kildare",
          "1137": "Sainte-Marguerite-Esterel",
          "1775": "Sainte-Marie-Beauce",
          "2419": "Sainte-Marthe-sur-le-Lac",
          "2423": "Sainte-Mélanie",
          "2212": "Saint-Ephrem-De-Tring",
          "2426": "Sainte-Scholastique",
          "1776": "Sainte-Sophie",
          "2428": "Sainte-Sophie-de-Levrard",
          "1069": "Saint-Esprit",
          "2432": "Sainte-Thérèse Ouest",
          "1777": "Saint-Etienne-de-Lauzon",
          "2218": "Saint-Felix-de-Valois",
          "1011": "Saint-Ferreol-les-Neiges",
          "2114": "Saint-Gedeon",
          "2231": "Saint-Georges-de-Beauce",
          "2232": "Saint-Georges-de-Cacouna",
          "2234": "Saint-Georges-de-Windsor",
          "2236": "Saint-Georges-Ouest",
          "2240": "Saint-Germain-de-Grantham",
          "2242": "Saint-Gregoire",
          "2244": "Saint-Gregoire-de-Greenlay",
          "2250": "Saint-Herménégilde",
          "1135": "Saint-Hilarion",
          "2252": "Saint-Honoré",
          "2264": "Saint-Jean",
          "2266": "Saint-Jean-Baptiste-de-Nicolet",
          "2268": "Saint-Jean-Chrysostome",
          "2270": "Saint-Jean-de-Boischatel",
          "2771": "Saint-Jean-de-Dieu",
          "2271": "Saint-Jean-de-Matha",
          "1778": "Saint-Jean-Port-Joli",
          "2269": "Saint-Jean-sur-le-Richelieu",
          "2272": "Saint-Jean-Vianney",
          "2274": "Saint-Jerome",
          "2278": "Saint-Joseph, QC",
          "2280": "Saint-Joseph-de-Beauce",
          "2282": "Saint-Joseph-de-la-Rive",
          "2281": "Saint-Joseph-de-Levis",
          "2284": "Saint-Joseph-de-Sorel",
          "2283": "Saint-Joseph-du-Lac",
          "1766": "Saint-Lambert",
          "2115": "Saint-Lazare",
          "2290": "Saint-Léon",
          "2292": "Saint-Léonard, QC",
          "2294": "Saint-Léonard-d'Aston",
          "1767": "Saint-Lin",
          "1081": "Saint-Louis-du-Ha!-Ha!",
          "2300": "Saint-Luc-de-Vincennes",
          "2302": "Saint-Ludger",
          "1779": "Saint-Marc sur Richelieu",
          "2304": "Saint-Marc-des-Carrières",
          "2303": "Saint-Mathias",
          "2119": "Saint-Mathieu",
          "2305": "Saint-Mathieu-de-Beloeil",
          "2301": "Saint-Mathieu-du-Parc",
          "1591": "Saint-Michel-des-Saints",
          "2318": "Saint-Patrice-de-Beaurivage",
          "1139": "Saint-Paul",
          "2117": "Saint-Phillipe",
          "2323": "Saint-Pie-de-Bagot",
          "1593": "Saint-Pierre-les-Becquets",
          "2335": "Saint-Rock-sur-Richelieu",
          "1015": "Saint-Romuald, QC",
          "2340": "Saint-Romuald-d'Etchemin",
          "2342": "Saint-Sauveur-des-Monts",
          "2344": "Saint-Sebastien",
          "2349": "Saint-Sulpice",
          "2350": "Saint-Sylvère",
          "2353": "Saint-Théodore-d'Acton",
          "1141": "Saint-Thomas",
          "2358": "Saint-Timothée",
          "2365": "Saint-Urbain",
          "1594": "Saint-Valérien",
          "1768": "Saint-Vincent-de-Paul",
          "1595": "Saint-Zénon",
          "2484": "Salaberry-de-Valleyfield",
          "2111": "Saules",
          "2116": "Sault-au-Mouton",
          "2118": "Sawyerville",
          "2120": "Sayabec",
          "2122": "Schefferville",
          "2124": "Scotstown",
          "2126": "Senneterre",
          "1764": "Senneville",
          "2130": "Sept Iles",
          "2132": "Shawbridge",
          "2134": "Shawinigan",
          "2136": "Shawinigan Sud",
          "2135": "Shawinigan-Nord",
          "2138": "Shawville",
          "1131": "Shefford",
          "2140": "Sherbrooke, QC",
          "2141": "Sherrington",
          "2142": "Sillery",
          "1133": "Snowdon",
          "2144": "Sorel",
          "2145": "St-Adolphe-d'How",
          "2147": "St-Adrien de Ham",
          "2146": "St-Agapitville",
          "2148": "St-Alban",
          "2149": "St-Albert",
          "2150": "St-Alexandre",
          "2152": "St-Alexis",
          "2153": "St-Amable",
          "2154": "St-Ambroise",
          "2375": "Stanbridge East",
          "2377": "Stanbridge Stat",
          "2160": "St-Andre Est",
          "2433": "Stanhope",
          "2161": "St-Anicet",
          "2162": "St-Anselme",
          "2376": "Stanstead Plain",
          "2164": "St-Antoine",
          "2165": "St-Augustin",
          "2169": "St-Augustin-de-De",
          "2167": "St-Barthelemy",
          "2168": "St-Basile Sud",
          "2170": "St-Bernard",
          "2171": "St-Blaise",
          "2173": "St-Boniface",
          "2174": "St-Bruno",
          "2178": "St-Calixte",
          "2180": "St-Casimir",
          "2182": "St-Casimir Est",
          "2184": "St-Cesaire",
          "2186": "St-Charles",
          "2192": "St-Chrysostome",
          "2193": "St-Cleophas",
          "2194": "St-Clet",
          "2195": "St-Colomban",
          "2113": "St-Constant",
          "2197": "St-Cyprien",
          "2198": "St-Cyrille",
          "2200": "St-Damase",
          "2201": "St-Damien-de-Bra",
          "2204": "St-Denis",
          "1067": "St-Denis-de-Brom.",
          "2206": "St-Dominique",
          "2203": "St-Donat",
          "2379": "Ste-Adele",
          "2378": "Ste-Agathe",
          "2380": "Ste-Agathe Monts",
          "2382": "Ste-Agathe Sud",
          "2384": "Ste-Angele Merici",
          "2383": "Ste-Angele-de-Lav",
          "2392": "Ste-Anne du Lac",
          "2390": "Ste-Anne Monts",
          "2397": "Ste-Anne Plaines",
          "2387": "Ste-Anne-de-la-Pe",
          "2388": "Ste-Anne-de-la-Ro",
          "1143": "Ste-Anne-des-Lacs",
          "2389": "Ste-Anne-de-Sorel",
          "1080": "Ste-Brigit.-Laval",
          "2403": "Ste-Brigitte",
          "2406": "Ste-Christine",
          "2398": "Ste-Clothide Hort",
          "2400": "Ste-Croix",
          "2205": "St-Edmond",
          "2207": "St-Edouard",
          "2407": "Ste-Elizabeth",
          "2222": "Ste-Francoise Lac",
          "2409": "Ste-Gertrude",
          "2413": "Ste-Henedine",
          "2414": "Ste-Julienne",
          "2208": "St-Elzear",
          "2412": "Ste-Madeleine",
          "1083": "Ste-Mar.Lac-Mass.",
          "2415": "Ste-Marguerite",
          "2421": "Ste-Marguerite-de",
          "2416": "Ste-Marie",
          "2418": "Ste-Marthe",
          "2417": "Ste-Martine",
          "2210": "St-Emile",
          "2420": "Ste-Monique",
          "2422": "Ste-Prudentienne",
          "2424": "Ste-Rosalie",
          "2425": "Ste-Rose",
          "1085": "Ste-Rose-Watford",
          "2427": "Ste-Sabine",
          "2429": "Ste-Sophie-de-Meg",
          "2430": "Ste-Therese",
          "2213": "St-Eugene",
          "2214": "St-Eustache",
          "2431": "Ste-Veronique",
          "2216": "St-Felicien",
          "2219": "St-Ferdinand",
          "2220": "St-Flavien",
          "2224": "St-Fulgence",
          "2226": "St-Gabriel",
          "1071": "St-Gabriel-Brand.",
          "2230": "St-Georges",
          "2238": "St-Gerard",
          "2245": "St-Gregoire-de-Ni",
          "2246": "St-Guillaume",
          "2248": "St-Henri",
          "2259": "St-Hippolyte",
          "2254": "St-Hubert",
          "2256": "St-Hughes",
          "2258": "St-Hyacinthe",
          "2260": "St-Isidore",
          "2262": "St-Jacques",
          "2261": "St-Jacques de Mon",
          "2263": "St-Janvier",
          "1600": "St-Jean-Baptiste",
          "2286": "St-Jovite",
          "2288": "St-Julien",
          "2296": "St-Liboire",
          "2297": "St-Louis Terrebon",
          "1013": "St-Louis-de-Franc",
          "2298": "St-Luc",
          "1073": "St-Mathias-Riche.",
          "2307": "St-Michel",
          "2309": "St-Nicephore",
          "2306": "St-Nicholas",
          "2308": "St-Noel",
          "2311": "St-Norbert",
          "1592": "Stoke",
          "2435": "Stoneham",
          "2310": "St-Ours",
          "2312": "St-Pacome",
          "2314": "St-Pamphile",
          "2316": "St-Pascal",
          "2320": "St-Paulin",
          "2322": "St-Pie",
          "2324": "St-Pierre",
          "1596": "St-Pierre-Baptist",
          "2326": "St-Placide",
          "2328": "St-Polycarpe",
          "2330": "St-Prime",
          "2332": "St-Raphael",
          "2437": "Stratford, QC",
          "2334": "St-Raymond",
          "2336": "St-Redempteur",
          "2338": "St-Remi",
          "2339": "St-Robert",
          "1077": "St-Roch-Aulnaies",
          "1075": "St-Roch-de-L'Achi",
          "2337": "St-Romain",
          "2341": "St-Saurcur",
          "2343": "St-Sauveur",
          "2345": "St-Severin-de-Pro",
          "2346": "St-Simeon",
          "1031": "St-Simon-de-Bagot",
          "2348": "St-Stanislaus",
          "2352": "St-Sylvestre",
          "2354": "St-Thecle",
          "2356": "St-Theophile",
          "2360": "St-Tite",
          "2362": "St-Ubald",
          "2434": "Stukely-Sud",
          "2364": "St-Ulric",
          "1079": "St-Valerien-Milt.",
          "2366": "St-Vallier",
          "2368": "St-Victor",
          "2370": "St-Wendeslas",
          "2372": "St-Zacharie",
          "2373": "St-Zephirin",
          "2374": "St-Zotique",
          "2436": "Sutton, QC",
          "2440": "Tadoussac",
          "2442": "Temiscaming",
          "2444": "Templeton",
          "2445": "Terrasse-Vaudreuil",
          "2446": "Terrebonne",
          "2448": "Thetford Mines, QC",
          "2450": "Thurso",
          "1121": "Tingwick",
          "2452": "Tracy, QC",
          "2454": "Tring-Jonction",
          "2456": "Trois-Pistoles",
          "2458": "Trois-Rivières",
          "2460": "Upton",
          "2470": "Val-Barette",
          "1781": "Val-Belair",
          "2472": "Val-Brillant",
          "2479": "Valcartier",
          "2480": "Valcourt",
          "2476": "Val-David",
          "1087": "Val-des-Bois",
          "1017": "Val-des-Monts, QC",
          "2474": "Val-d'Or",
          "2482": "Vallée-Jonction",
          "2477": "Val-Morin",
          "1780": "Valois",
          "1089": "Val-Racine",
          "2478": "Val-Saint-Michel",
          "2044": "Vanier, QC",
          "2488": "Varennes",
          "2490": "Vaudreuil",
          "2489": "Vaudreuil-Dorion",
          "2491": "Vaudreuil-sur-la-Lac",
          "2493": "Vendée",
          "2494": "Venise-en-Québec",
          "2492": "Verchères",
          "1782": "Verdun",
          "2496": "Victoriaville, QC",
          "1786": "Ville de L'Île Perrot",
          "1155": "Ville Emard",
          "2499": "Ville LeMoyne",
          "1790": "Ville Saint-Laurent",
          "1792": "Ville Saint-Pierre",
          "2498": "Ville-Marie",
          "2500": "Villeneuve",
          "1800": "Vimont",
          "2510": "Wakefield, QC",
          "2512": "Warden",
          "2514": "Warwick",
          "2516": "Waterloo, QC",
          "2518": "Waterville, QC",
          "2520": "Weedon-Centre",
          "1149": "Wentworth-Nord",
          "1802": "Westmount",
          "2524": "Wickham",
          "1804": "Windmill Point",
          "2526": "Windsor, QC",
          "2528": "Wootenville",
          "2532": "Wotton",
          "2540": "Yamachiche",
          "2542": "Yamaska",
          "2544": "Yamaska-Est"
        },
        "SK": {
          "5802": "Abbey",
          "5804": "Aberdeen",
          "5806": "Abernethy",
          "5808": "Adanac",
          "5810": "Admiral",
          "5812": "Alameda",
          "5814": "Alida",
          "5816": "Allan",
          "5818": "Alsask",
          "5820": "Alvena",
          "5822": "Aneroid",
          "5803": "Annaheim",
          "5824": "Antler",
          "5826": "Arborfield",
          "5828": "Archerwill",
          "5830": "Arcola",
          "5832": "Ardath",
          "5834": "Ardili",
          "5836": "Arelee",
          "5838": "Arran",
          "5840": "Asquith",
          "5842": "Assiniboia",
          "5844": "Atwater",
          "5846": "Avonlea",
          "5848": "Aylesbury",
          "5850": "Aylsham",
          "5862": "Balcarres",
          "5864": "Balgonie",
          "5866": "Bangor",
          "5868": "Battleford",
          "5870": "Beatty",
          "5805": "Beauval",
          "5872": "Beechy",
          "5874": "Belle Plaine",
          "5807": "Bellegarde",
          "5876": "Bengough",
          "5878": "Benson",
          "5880": "Bethume",
          "5882": "Bienfait",
          "5883": "Big Beaver",
          "5884": "Big River",
          "5809": "Biggar",
          "5886": "Bigger",
          "5888": "Birch Hills",
          "5890": "Birsay",
          "5892": "Bjorkdale",
          "5894": "Bladworth",
          "5896": "Blaine Lake",
          "5898": "Borden, SK",
          "5900": "Bounty",
          "5902": "Bracken",
          "5904": "Bradwell",
          "5811": "Bredenbury",
          "5908": "Briercrest",
          "5910": "Broadview",
          "5912": "Brock",
          "5914": "Broderick",
          "5916": "Brownlee",
          "5918": "Bruno",
          "5860": "B-Say-Tah",
          "5920": "Buchanan",
          "5922": "Buena Vista",
          "5923": "Buffalo Narrows",
          "5924": "Bulyea",
          "5926": "Burstall",
          "5927": "Bushell Park",
          "5930": "Cabri",
          "5932": "Cadillac, SK",
          "5934": "Calder",
          "5936": "Cando",
          "5938": "Canora",
          "5940": "Canwood",
          "5942": "Carievale",
          "5944": "Carlyle",
          "5946": "Carlyle Lake Reso",
          "5948": "Carmichael",
          "5950": "Carnduff",
          "5951": "Caronport",
          "5952": "Carragana",
          "5954": "Carrot River",
          "5956": "Central Butte",
          "5958": "Ceylon",
          "5960": "Chamberlain",
          "5962": "Chaplin",
          "5964": "Choiceland",
          "5963": "Christopher Lake",
          "5966": "Churchbridge",
          "5817": "Clavet",
          "5968": "Climax",
          "5970": "Coderre",
          "5972": "Codette",
          "5974": "Coleville",
          "5976": "Colgate",
          "5978": "Colonsay",
          "5980": "Conquest",
          "5982": "Consul",
          "5813": "Corning",
          "5984": "Coronach",
          "5986": "Craik",
          "5988": "Craven",
          "5990": "Creelman",
          "5992": "Creighton",
          "5994": "Cudworth",
          "5995": "Cumberland House",
          "5996": "Cupar",
          "5998": "Cut Knife",
          "6002": "Dafoe",
          "6004": "Dalmeny",
          "6006": "Davidson",
          "6008": "Debden",
          "6010": "Delisle",
          "6011": "Denare Beach",
          "6012": "Denholm",
          "6014": "Denzil",
          "6016": "Dilke",
          "6018": "Dinsmore",
          "6020": "Disley",
          "6022": "Dodsland",
          "6024": "Dollard",
          "6026": "Domremy",
          "6028": "Drake",
          "6030": "Drinkwater",
          "6032": "Dubuc",
          "6034": "Duck Lake",
          "6036": "Duff",
          "6038": "Dunblane",
          "6040": "Dundurn",
          "6042": "Duval",
          "6044": "Dysart",
          "6050": "Earl Grey",
          "6052": "Eastend",
          "6054": "Eatonia",
          "6056": "Ebebezer",
          "6058": "Edam",
          "6060": "Edenwold",
          "6062": "Elbow",
          "6064": "Elfros",
          "6066": "Elrose",
          "6068": "Elstow",
          "6736": "Emerald Park",
          "6070": "Endeavour",
          "6072": "Englefeld",
          "6074": "Ernfold",
          "6076": "Esterhazy",
          "6078": "Estevan",
          "6080": "Eston",
          "6082": "Etters Beach",
          "6084": "Evesham",
          "6086": "Eyebrow",
          "6090": "Fairlight",
          "6092": "Fenwood",
          "6094": "Ferland",
          "6096": "Fielding",
          "6098": "Fife Lake",
          "6100": "Fillmore",
          "6102": "Findlater",
          "6103": "Fiske",
          "6104": "Flaxcombe",
          "6106": "Fleming",
          "6110": "Foam Lake",
          "6112": "Forget",
          "6114": "Fort Qu'appelle",
          "6116": "Fosston",
          "6118": "Fox Valley",
          "6120": "Francis",
          "6122": "Frobisher",
          "6124": "Frontier",
          "6130": "Gainsborough",
          "6132": "Gerald",
          "6134": "Girvin",
          "6136": "Gladmar",
          "6138": "Glaslyn",
          "6140": "Glen Ewen",
          "6142": "Glenavon",
          "6144": "Glenside",
          "6146": "Glentworth",
          "6148": "Glidden",
          "6150": "Golden Prairie",
          "6152": "Goodeve",
          "6154": "Goodsoil",
          "6156": "Goodwater",
          "6158": "Govan",
          "5821": "Grandora",
          "6160": "Grandview Beach S",
          "6162": "Gravelbourg",
          "6164": "Grayson",
          "6166": "Grenfell",
          "6168": "Guernsey",
          "6170": "Gull Lake, SK",
          "6174": "Hafford",
          "6176": "Hague",
          "6178": "Halbrite",
          "6180": "Handel",
          "6182": "Hanley",
          "6184": "Hardy",
          "6186": "Harris",
          "6188": "Hawarden",
          "5819": "Hazelwood No.94",
          "6190": "Hazenmore",
          "6192": "Hazlet",
          "6194": "Hepburn",
          "6196": "Herbert",
          "6198": "Herschel",
          "6200": "Heward",
          "6202": "Hodgeville",
          "6204": "Hold Fast",
          "6206": "Horizon",
          "6208": "Hubbard",
          "6210": "Hudson Bay",
          "6212": "Humboldt",
          "6214": "Hyas",
          "6218": "Île-à-la-Crosse",
          "6220": "Imperial",
          "6222": "Indian Head",
          "6224": "Insinger",
          "6226": "Invermay",
          "6228": "Ituna",
          "6230": "Jansen",
          "6232": "Jasmin",
          "6234": "Jedburgh",
          "6240": "Kamsack",
          "6242": "Kannata Valley",
          "6244": "Katepwa Beach",
          "6246": "Keeler",
          "6250": "Kelfield",
          "6252": "Kelliher",
          "6254": "Kelvington",
          "6256": "Kenaston",
          "6258": "Kendal",
          "6260": "Kennedy",
          "6248": "Kerrobert",
          "6262": "Khedive",
          "6264": "Killaly",
          "6266": "Kincaid",
          "6268": "Kindersley",
          "6270": "Kinistino",
          "6272": "Kinley",
          "6274": "Kipabiskau",
          "6276": "Kipling",
          "6278": "Kisbey",
          "6280": "Krydor",
          "6282": "Kyle",
          "5825": "La Loche",
          "6312": "La Ronge",
          "6290": "Lafleche, SK",
          "6292": "Laird",
          "6294": "Lake Alma",
          "6296": "Lake Lenore",
          "6298": "Lampman",
          "6300": "Lancer",
          "6302": "Landis",
          "6304": "Lang",
          "6306": "Langenburg",
          "6308": "Langham",
          "6310": "Lanigan",
          "6313": "Lashburn",
          "6314": "Lawson",
          "6316": "Leader",
          "6318": "Leask",
          "6320": "Lebret",
          "6322": "Leipzig",
          "6324": "Lemberg",
          "6326": "Leney",
          "6328": "Leoville",
          "6330": "Leross",
          "6332": "Leroy",
          "6334": "Leslie",
          "6336": "Lestock",
          "6338": "Liberty",
          "6339": "Liebanthal",
          "6340": "Limerick",
          "6342": "Lintlaw",
          "6344": "Lipton",
          "6345": "Lloydminster, SK",
          "6346": "Lockwood",
          "6348": "Loon Lake",
          "6350": "Loreburn",
          "6352": "Love",
          "6354": "Loverna",
          "6356": "Lucky Lake",
          "6360": "Lumsden Beac, SK",
          "6358": "Lumsden, SK",
          "6362": "Luseland",
          "5827": "MacDowall",
          "6368": "Macklin",
          "6370": "MacNutt",
          "6372": "Macoun",
          "6374": "Macrorie",
          "6376": "Madison",
          "6377": "Maidstone",
          "6381": "Main Centre",
          "6378": "Major",
          "6380": "Makwa",
          "6382": "Manitou Beach",
          "6384": "Mankota",
          "6386": "Manor",
          "6388": "Mantario",
          "6390": "Maple Creek",
          "6392": "Marcelin",
          "6394": "Marengo",
          "6396": "Margo",
          "6398": "Markinch",
          "6400": "Marquis",
          "6401": "Marshall",
          "6402": "Martensville",
          "6404": "Maryfield",
          "6406": "Maymont",
          "6408": "Mazenod",
          "6410": "McLean",
          "6411": "McMahon",
          "6412": "McTaggart",
          "6414": "Meacham",
          "6416": "Meadow Lake",
          "6418": "Meath Park",
          "6420": "Medstead",
          "6422": "Melfort",
          "6424": "Melville",
          "6426": "Mendham",
          "6428": "Meota",
          "6430": "Mervin",
          "6432": "Metinota",
          "6434": "Meyronne",
          "6436": "Midale",
          "6438": "Middle Lake",
          "6440": "Milden",
          "6442": "Milestone",
          "6444": "Minton",
          "6446": "Mistatim",
          "6447": "Monchy",
          "6448": "Montmartre",
          "6450": "Moose Jaw",
          "6454": "Moosomin",
          "6456": "Morse",
          "6458": "Mortlach",
          "6460": "Mossbank",
          "6462": "Muenster",
          "6468": "Naicam",
          "6469": "Neilburg, SK",
          "6470": "Netherhill",
          "6472": "Neudorf",
          "6474": "Neville",
          "6476": "Nipawin",
          "6478": "Nokomis",
          "6480": "Norquay",
          "6482": "North Battleford",
          "6484": "North Portal",
          "6483": "Northgate",
          "6488": "Odessa",
          "6490": "Ogema",
          "6492": "Osage",
          "6494": "Osler",
          "6999": "Other",
          "6495": "Oungre",
          "6496": "Outlook",
          "6498": "Oxbow",
          "6502": "Paddockwood",
          "6504": "Palmer",
          "6506": "Pangman",
          "6509": "Paradise Hill",
          "6508": "Parkside",
          "6510": "Paynton",
          "5829": "Peebles",
          "6512": "Pelly",
          "6514": "Pennant",
          "6516": "Pense",
          "6518": "Penzance",
          "6520": "Perdue",
          "6522": "Piapot",
          "6524": "Pilger",
          "6526": "Pilot Butte",
          "6528": "Plato",
          "6530": "Plenty",
          "6532": "Plunkett",
          "6534": "Ponteix",
          "6536": "Porcupine Plain",
          "6538": "Portreeve",
          "6540": "Preeceville",
          "6542": "Prelate",
          "6544": "Primate",
          "6546": "Prince Albert",
          "6548": "Prud'Homme",
          "6550": "Punnichy",
          "6552": "Qu'Appelle",
          "6554": "Quill Lake",
          "6556": "Quinton",
          "6560": "Rabbit Lake",
          "6562": "Radisson, SK",
          "6564": "Radville",
          "6566": "Rama",
          "6568": "Raymore",
          "6570": "Redvers",
          "6572": "Regina",
          "6574": "Regina Beach",
          "6475": "Regway",
          "6576": "Rhein",
          "6578": "Richard",
          "5815": "Richardson",
          "6580": "Richmond, SK",
          "6582": "Ridgedale",
          "6584": "Riverhurst",
          "6586": "Robsart",
          "6588": "Rocanville",
          "6590": "Roche Percee",
          "6592": "Rock Haven",
          "6594": "Rockglen",
          "6596": "Rose Valley",
          "6598": "Rosetown",
          "6600": "Rosthern",
          "6602": "Rouleau",
          "6604": "Ruddell",
          "6606": "Rush Lake",
          "6608": "Ruthilda",
          "6674": "Saint-Benedict",
          "6676": "Saint-Brieux",
          "6678": "Saint-Gregor",
          "6680": "Saint-Louis",
          "6682": "Saint-Victor",
          "7602": "Saint-Walburg",
          "6612": "Saltcoats",
          "6614": "Salvador",
          "6616": "Sandy Beach, SK",
          "6618": "Saskatchewan Beac",
          "6620": "Saskatoon",
          "6622": "Sceptre",
          "6623": "Scobey",
          "6624": "Scott",
          "6626": "Sedley",
          "6628": "Semans",
          "6630": "Senlac",
          "6632": "Shackleton",
          "6634": "Shamrock",
          "6636": "Shaunavon",
          "6638": "Shedo",
          "6640": "Shell Lake",
          "6642": "Shellbrook",
          "6644": "Silton",
          "6645": "Simmie",
          "6646": "Simpson",
          "6648": "Sintaluta",
          "6650": "Smeaton",
          "6652": "Smiley",
          "6654": "Southey",
          "6656": "Sovereign",
          "6658": "Spalding",
          "6660": "Speers",
          "6662": "Spirit Wood",
          "6666": "Spring Valley",
          "6664": "Spring Water",
          "6668": "Springside",
          "6670": "Spruce Lake",
          "6672": "Spy Hill",
          "6684": "Star City",
          "6685": "Steelman",
          "6686": "Stenen",
          "6688": "Stewart Valley",
          "6690": "Stockholm",
          "6692": "Stornoway",
          "6694": "Storthoaks",
          "6696": "Stoughton",
          "6698": "Stranraer",
          "6700": "Strasbourg",
          "6702": "Strongfield",
          "6704": "Sturgis",
          "6706": "Success",
          "6708": "Summerberry",
          "6710": "Swift Current",
          "6712": "Tantallon, SK",
          "6714": "Tessier",
          "6716": "Theodore",
          "6718": "Tisdale",
          "6720": "Togo",
          "6722": "Tompkins",
          "6724": "Torquay",
          "6726": "Tramping Lake",
          "6728": "Tribune",
          "6730": "Tugaske",
          "6732": "Turtleford",
          "6734": "Tuxford",
          "6740": "Unity",
          "6741": "Unwin",
          "6742": "Uranium City",
          "6743": "Usherville",
          "6744": "Val Marie",
          "6746": "Valparaiso",
          "6748": "Vanguard",
          "6750": "Vanscoy",
          "6752": "Vawn",
          "6754": "Veregin",
          "6756": "Vibank",
          "6758": "Viceroy",
          "6760": "Viscount",
          "6762": "Vonda",
          "6770": "Wadena",
          "6772": "Wakaw",
          "6774": "Wakaw Lake",
          "6776": "Waldeck",
          "6778": "Waldeim",
          "6780": "Waldron",
          "6782": "Wapella",
          "6784": "Warman",
          "6786": "Watrous",
          "6788": "Watson",
          "6790": "Wawota",
          "6792": "Webb",
          "6794": "Weekes",
          "6796": "Weirdale",
          "6798": "Weldon",
          "6800": "Welwyn",
          "6802": "West Bend",
          "6803": "West Poplar River",
          "6804": "Weyburn",
          "6806": "White City",
          "6808": "White Fox",
          "6810": "Whitewood",
          "6812": "Wilcox",
          "6814": "Wilkie",
          "6816": "Willow Bunch",
          "6819": "Willow Creek",
          "6818": "Willowbrook",
          "6820": "Windthorst",
          "6822": "Wiseton",
          "6824": "Wishart",
          "6826": "Wolseley",
          "6828": "Wood Mountain",
          "6830": "Woodrow",
          "6832": "Wroxton",
          "6834": "Wynyard",
          "6840": "Yarbo",
          "6842": "Yellow Creek",
          "6844": "Yellow Grass",
          "6846": "Yorkton",
          "6848": "Young",
          "6852": "Zealandia",
          "6853": "Zehner",
          "6854": "Zelma",
          "6855": "Zeneta",
          "6856": "Zenon Park",
          "6864": "Zumbro"
        },
        "YT": {
          "8237": "Carcross",
          "8181": "Carmacks",
          "8150": "Dawson City",
          "8160": "Faro",
          "8165": "Haines Junction",
          "8399": "Little Gold",
          "8423": "Mayo-Elsa",
          "8478": "Old Crow",
          "8199": "Other",
          "8182": "Ross River",
          "8170": "Swift River",
          "8151": "Tagish",
          "8705": "Watson Lake",
          "8180": "Whitehorse"
        }
      }
    },
    "form1.Page3.DetailsOfWork.Location.Addr": {
      "label": "Work location address",
      "template_path": "form1.Page3.DetailsOfWork.Location.Addr",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//check for partial records for address\nvar sPermitType = Purpose.Type.rawValue;\nif(!this.isNull || !Prov.isNull || !City.isNull ){\n\t\tcolor.markRequired(Prov);\t\n\t\tcolor.markRequired(City);\t\n\t\tcolor.markRequired(this);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"OCWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Prov);\t\n\t\t\tcolor.markUnRequired(City);\t\n\t\t\tcolor.markUnRequired(this);\n\t\t}\n}\n\n\nval.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 130
    },
    "form1.Page3.DetailsOfWork.Occupation.Job": {
      "label": "Job title",
      "template_path": "form1.Page3.DetailsOfWork.Occupation.Job",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateOpenText(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 50
    },
    "form1.Page3.DetailsOfWork.Occupation.Desc": {
      "label": "Brief duties description",
      "template_path": "form1.Page3.DetailsOfWork.Occupation.Desc",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//check for partial \nvar sPermitType = Purpose.Type.rawValue;\nif(!this.isNull || !Job.isNull  ){\n\t\tcolor.markRequired(Job);\t\n\t\tcolor.markRequired(this);\n}\nelse{\n\t\tif(sPermitType == \"OWP\" || sPermitType  == \"OCWP\" || sPermitType  == \"PGWP\" ||sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\t\tcolor.markUnRequired(Job);\t\t\n\t\t\tcolor.markUnRequired(this);\n\t\t}\n}\n\n\n//CPARK 6/19/12\t79202\nval.validateJobDescription(this);\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 100
    },
    "form1.Page3.DetailsOfWork.Duration.FromDate": {
      "label": "Expected work start date",
      "template_path": "form1.Page3.DetailsOfWork.Duration.FromDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "//CPARK4/11/12\nval.validateDate(this, \">=\", utilDates.getToday(), \"Today\");\n"
      ],
      "rules": {
        "gate": null,
        "not_past": true,
        "optional": true
      }
    },
    "form1.Page3.DetailsOfWork.Duration.ToDate": {
      "label": "Expected work end date",
      "template_path": "form1.Page3.DetailsOfWork.Duration.ToDate",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "\n\n//ensure there is no partial records\nvar sPermitType = Purpose.Type.rawValue;\nif(!this.isNull || !FromDate.isNull){\n\tcolor.markRequired(this);\t\n\tcolor.markRequired(FromDate);\t\n}\nelse{\n\tif(sPermitType == \"OWP\" || sPermitType  == \"OCWP\" || sPermitType  == \"PGWP\" || sPermitType  == \"COWP\" || sPermitType == \"VWOWP\" ){\n\t\tcolor.markUnRequired(this);\t\n\t\tcolor.markUnRequired(FromDate);\t\n\t}\n}\n\n\n//CPARK 4/3/12\nvar result = val.validateDate(this, \">=\", utilDates.getToday(), \"Today\");\nif(result[0])\n{\n\tif (!FromDate.isNull && !this.isNull){\t\n\tval.validateDate(this, \">=\", FromDate.rawValue, \"FromTo\");\n\t}\n\n}\n"
      ],
      "rules": {
        "gate": null,
        "not_past": true,
        "compare": "work_from",
        "optional": true
      }
    },
    "form1.Page3.DetailsOfWork.Duration.LMO": {
      "label": "LMIA or exempt offer number",
      "template_path": "form1.Page3.DetailsOfWork.Duration.LMO",
      "bindings": [],
      "validation": [
        {
          "scriptTest": "warning",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateLMIAandExemptionCode(this, Purpose.Type );\n",
        "//CPARK4/5/12\n//val.validateLMO(this)\n\n"
      ],
      "rules": {
        "gate": null,
        "optional": true
      }
    },
    "form1.Page3.DetailsOfWork.CAQ.CertNum": {
      "label": "CAQ certificate number",
      "template_path": "form1.Page3.DetailsOfWork.CAQ.CertNum",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateCAQText(this);\n",
        "//CPARK 3/15/12 SUC361\nif (!this.isNull)\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(CertExpiry)\n}\nelse\n{\n\tif (CertExpiry.isNull)\n\t{\n\t\tcolor.markUnRequired(this)\t\n\t\tcolor.markUnRequired(CertExpiry)\n\t}\t\n}\n\n"
      ],
      "rules": {
        "gate": "has_caq",
        "optional": true
      },
      "max_chars": 25
    },
    "form1.Page3.DetailsOfWork.CAQ.CertExpiry": {
      "label": "CAQ expiry date",
      "template_path": "form1.Page3.DetailsOfWork.CAQ.CertExpiry",
      "bindings": [
        {
          "template_kind": "bind"
        }
      ],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "val.validateDate(this, \">\", utilDates.getToday(), \"Today\");\n",
        "//CPARK 3/15/12 SUC361\nif (!this.isNull)\n{\n\tcolor.markRequired(this)\n\tcolor.markRequired(CertNum)\n}\nelse\n{\n\tif (CertNum.isNull)\n\t{\n\t\tcolor.markUnRequired(this)\n\t\tcolor.markUnRequired(CertNum)\n\t}\n}\n\n"
      ],
      "rules": {
        "gate": "has_caq",
        "after_today": true,
        "optional": true
      }
    },
    "form1.Page3.DetailsOfWork.ProvNominee.ProvNominee": {
      "label": "Provincial nominee certificate issued",
      "template_path": "form1.Page3.DetailsOfWork.ProvNominee.ProvNominee",
      "bindings": [],
      "validation": [
        {
          "nullTest": "error",
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "color.markCorrect(this);\ncolor.markCorrect(Yes);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(Yes);\n",
        "color.markCorrect(this);\ncolor.markCorrect(No);\n//CPARK 7/25/13 GCMS100094545\n//color.markUnRequired(this);\n//color.markUnRequired(No);\n"
      ],
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "form1.Page4.BackgroundInfo.Occupation.Choice": {
      "label": "Have you ever been employed by a government in a security-related capacity?",
      "template_path": "form1.Page4.BackgroundInfo.Occupation.Choice",
      "bindings": [],
      "validation": [
        {
          "template_kind": "validate"
        }
      ],
      "scripts": [
        "\n\ncolor.markCorrect(this);\ncolor.markCorrect(Yes);\ncolor.markUnRequired(this);\ncolor.markUnRequired(Yes);\n",
        "\n\ncolor.markCorrect(this);\ncolor.markCorrect(No);\ncolor.markUnRequired(this);\ncolor.markUnRequired(No);\n"
      ],
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    }
  },
  "excluded_fields": {
    "form1.CurrentPage": "hidden/calculated",
    "form1.PageCount": "hidden/calculated",
    "form1.TextField": "hidden/calculated",
    "form1.appHeader.TextField": "hidden/calculated",
    "form1.Page1.Header.Button1": "hidden/calculated",
    "form1.Page1.Header.CRCNum": "hidden/calculated",
    "form1.Page1.ButtonsHeader.ValidateButton": "manual control/barcode/signature",
    "form1.Page1.ButtonsHeader.Age": "hidden/calculated",
    "form1.Page1.ButtonsHeader.AdultFlag": "hidden/calculated",
    "form1.Page1.ButtonsHeader.FormVersion": "hidden/calculated",
    "form1.Page1.ButtonsHeader.PrevAge": "hidden/calculated",
    "form1.Page1.PersonalDetails.ApplicationValidatedFlag": "hidden/calculated",
    "form1.Page1.PersonalDetails.OfficeUse.ApplicationValidatedFlag": "read-only/calculated",
    "form1.Page1.PersonalDetails.CurrentCOR.CORDates.FromYr": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR1.FromYr": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR2.FromYr": "hidden/calculated",
    "form1.Page1.MaritalStatus.Current.b.MarriageDate.FromYr": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.PreviouslyMarriedDates.FromYr": "hidden/calculated",
    "form1.Page1.PersonalDetails.CurrentCOR.CORDates.FromMM": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR1.FromMM": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR2.FromMM": "hidden/calculated",
    "form1.Page1.MaritalStatus.Current.b.MarriageDate.FromMM": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.PreviouslyMarriedDates.FromMM": "hidden/calculated",
    "form1.Page1.PersonalDetails.CurrentCOR.CORDates.FromDD": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR1.FromDD": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR2.FromDD": "hidden/calculated",
    "form1.Page1.MaritalStatus.Current.b.MarriageDate.FromDD": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.PreviouslyMarriedDates.FromDD": "hidden/calculated",
    "form1.Page1.PersonalDetails.CurrentCOR.CORDates.ToDD": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR1.ToDD": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR2.ToDD": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.PreviouslyMarriedDates.ToDD": "hidden/calculated",
    "form1.Page1.PersonalDetails.CurrentCOR.CORDates.ToYr": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR1.ToYr": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR2.ToYr": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.PreviouslyMarriedDates.ToYr": "hidden/calculated",
    "form1.Page1.PersonalDetails.CurrentCOR.CORDates.ToMM": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR1.ToMM": "hidden/calculated",
    "form1.Page1.PersonalDetails.PrevCOR.PCOR_tbl.PCRDatesR2.ToMM": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.PreviouslyMarriedDates.ToMM": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.DateCalc": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.Year": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.Month": "hidden/calculated",
    "form1.Page2.MaritalStatus.PrevMarriage.DateLastValidated.Day": "hidden/calculated",
    "form1.Page2.Passport.Issue.YYYY": "hidden/calculated",
    "form1.Page2.Passport.Expiry.YYYY": "hidden/calculated",
    "form1.Page2.Passport.Issue.MM": "hidden/calculated",
    "form1.Page2.Passport.Expiry.MM": "hidden/calculated",
    "form1.Page2.Passport.Issue.DD": "hidden/calculated",
    "form1.Page2.Passport.Expiry.DD": "hidden/calculated",
    "form1.Page4.BackgroundInfo.BackgroundHeader.ClearBkgButton": "manual control/barcode/signature",
    "form1.Page4.BackgroundInfo.HealthQ.backgroundInfoCalc": "hidden/calculated",
    "form1.Page4.Consent1.Signature.C1CertificateIssueDate": "manual signature/date",
    "form1.Page4.Consent1.Signature.TextField2": "manual signature/date",
    "form1.Page4.ButtonsFooter.ValidateButtonBottom": "manual control/barcode/signature",
    "form1.Page4.ButtonsFooter.ReaderInfo": "hidden/calculated",
    "form1.Barcodes.PaperFormsBarcode1": "read-only/calculated",
    "form1.Barcodes.PaperFormsBarcode2": "read-only/calculated",
    "form1.Barcodes.PaperFormsBarcode3": "read-only/calculated",
    "form1.Barcodes.PaperFormsBarcode4": "read-only/calculated",
    "form1.Barcodes.PaperFormsBarcode5": "read-only/calculated",
    "form1.Barcodes.PaperFormsBarcode6": "read-only/calculated",
    "form1.Page5.TextField1": "read-only/calculated",
    "form1.Page5.Button2": "manual control/barcode/signature",
    "form1.SignatureField1": "hidden/calculated"
  },
  "unmapped_visible_fields": [],
  "manual": {
    "manual.adobe": "Review and validate in Adobe Reader.",
    "manual.signatures": "Review declarations; sign and date manually."
  }
}
