var SubmissionResources = { }; var OnChangeHandler = { }; var Actions = { A0: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'licenced'); Actions.SetVisible('gwcmc_cites_exporterName', tmp); }, A1: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'licenced'); Actions.SetVisible('gwcmc_cites_exporterLicenceNumber', tmp); }, A2: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'licenced'); Actions.SetVisible('gwcmc_cites_exporterLicenceNumberAutocompleter', tmp); }, A3: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedExporterName', tmp); }, A4: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedTransportation', tmp); }, A5: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedTechnicalExpertise', tmp); }, A6: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedCountry', tmp); }, A7: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedAddressDescription', tmp); }, A8: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedDiagrams', tmp); }, A9: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedMortalities', tmp); }, A10: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedDocuments', tmp); }, A11: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('exp_gwcmc_unlicencedParticularDocuments', tmp); }, A12: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool'); Actions.SetVisible('gwcmc_cites_speciesInformationCitesList', tmp); }, A13: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool'); Actions.SetVisible('gwcmc_cites_speciesInformationNonCitesList', tmp); }, A14: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_speciesTimber', 'Enumeration') == 'yes'); Actions.SetVisible('exp_gwcmc_speciesTimberDocument', tmp); }, A15: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_wildlifeCategory', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_wildlifeCategory', tmp, recordArgs); }); }, A16: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_scientificCommonNameOther', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other') && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_scientificCommonNameOther', tmp, recordArgs); }); }, A17: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_scientificCommonName', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!((Actions.GetValueOrDefaultOf('gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other')) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_scientificCommonName', tmp, recordArgs); }); }, A18: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_description', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_description', tmp, recordArgs); }); }, A19: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenDescription', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenDescription', tmp, recordArgs); }); }, A20: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenLive', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenLive', tmp, recordArgs); }); }, A21: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenAge', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenAge', tmp, recordArgs); }); }, A22: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenSex', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenSex', tmp, recordArgs); }); }, A23: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_appendixNumber', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_appendixNumber', tmp, recordArgs); }); }, A24: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_source', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_source', tmp, recordArgs); }); }, A25: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenCaptivityOrartificially', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('gwcmc_cites_source', 'Enumeration', recordArgs) == 'a') || (Actions.GetValueOrDefaultOf('gwcmc_cites_source', 'Enumeration', recordArgs) == 'c')) || (Actions.GetValueOrDefaultOf('gwcmc_cites_source', 'Enumeration', recordArgs) == 'r')) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_specimenCaptivityOrartificially', tmp, recordArgs); }); }, A26: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_breedingNumber', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I') && (Actions.GetValueOrDefaultOf('gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_breedingNumber', tmp, recordArgs); }); }, A27: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenAdoptionConvention', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I') && (Actions.GetValueOrDefaultOf('gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenAdoptionConvention', tmp, recordArgs); }); }, A28: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_dateAcquisition', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_specimenAdoptionConvention', 'Enumeration', recordArgs) == 'yes') && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_dateAcquisition', tmp, recordArgs); }); }, A29: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_quantity', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_quantity', tmp, recordArgs); }); }, A30: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_units', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_units', tmp, recordArgs); }); }, A31: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_ReExportet', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_ReExportet', tmp, recordArgs); }); }, A32: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_countryOrigin', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_ReExportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_countryOrigin', tmp, recordArgs); }); }, A33: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_countryReExport', parentName: 'gwcmc_cites_speciesInformationCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_ReExportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_countryReExport', tmp, recordArgs); }); }, A34: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_wildlifeCategory', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_wildlifeCategory', tmp, recordArgs); }); }, A35: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_scientificCommonNameOther', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other') && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_scientificCommonNameOther', tmp, recordArgs); }); }, A36: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_scientificCommonName', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!((Actions.GetValueOrDefaultOf('gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other')) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_scientificCommonName', tmp, recordArgs); }); }, A37: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_description', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_description', tmp, recordArgs); }); }, A38: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenDescription', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenDescription', tmp, recordArgs); }); }, A39: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenLive', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenLive', tmp, recordArgs); }); }, A40: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenAge', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenAge', tmp, recordArgs); }); }, A41: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenSex', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenSex', tmp, recordArgs); }); }, A42: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_appendixNumber', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_appendixNumber', tmp, recordArgs); }); }, A43: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_source', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_source', tmp, recordArgs); }); }, A44: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenCaptivityOrartificially', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('gwcmc_cites_source', 'Enumeration', recordArgs) == 'a') || (Actions.GetValueOrDefaultOf('gwcmc_cites_source', 'Enumeration', recordArgs) == 'c')) || (Actions.GetValueOrDefaultOf('gwcmc_cites_source', 'Enumeration', recordArgs) == 'r')) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_specimenCaptivityOrartificially', tmp, recordArgs); }); }, A45: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_breedingNumber', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I') && (Actions.GetValueOrDefaultOf('gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_breedingNumber', tmp, recordArgs); }); }, A46: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_specimenAdoptionConvention', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I') && (Actions.GetValueOrDefaultOf('gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_specimenAdoptionConvention', tmp, recordArgs); }); }, A47: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_dateAcquisition', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('gwcmc_cites_specimenAdoptionConvention', 'Enumeration', recordArgs) == 'yes') && Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_dateAcquisition', tmp, recordArgs); }); }, A48: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_quantity', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_quantity', tmp, recordArgs); }); }, A49: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_units', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_units', tmp, recordArgs); }); }, A50: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_ReExportet', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('gwcmc_cites_ReExportet', tmp, recordArgs); }); }, A51: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_countryOrigin', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_ReExportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_countryOrigin', tmp, recordArgs); }); }, A52: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'gwcmc_cites_countryReExport', parentName: 'gwcmc_cites_speciesInformationNonCitesList', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_ReExportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'gwcmc_cites_speciesInformationCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'gwcmc_cites_speciesInformationNonCitesList') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('gwcmc_cites_countryReExport', tmp, recordArgs); }); }, A53: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration') == 'cites'); Actions.SetValueOf('gwcmc_cites_speciesCites_var', tmp, undefined, true); }, A54: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration') == 'nonCites'); Actions.SetValueOf('gwcmc_cites_speciesNonCites_var', tmp, undefined, true); }, A55: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool'); Actions.SetVisible('ae421652-2fb9-44a0-bd2c-5e7927a354ce', tmp); }, A56: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool'); Actions.SetVisible('d9ee7e22-d2b3-40c0-9f0d-53aa4ba006d1', tmp); }, A57: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool'); Actions.SetVisible('b3d0d42d-1003-4d3d-8393-8d26222834c6', tmp); }, A58: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool'); Actions.SetVisible('34425d30-9e46-410c-a2b9-f7d306148dc9', tmp); }, A59: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('exp_gwcmc_licencedExporter', 'Enumeration') == 'unlicenced'); Actions.SetVisible('5a76aa81-0c06-4c41-b401-65890ca92152', tmp); }}; var ActionNames = ['A59','A54','A58','A57','A53','A56','A55','A50','A52','A51','A49','A48','A43','A44','A42','A46','A47','A45','A39','A41','A40','A38','A37','A34','A36','A35','A31','A33','A32','A30','A29','A24','A25','A23','A27','A28','A26','A20','A22','A21','A19','A18','A15','A17','A16','A14','A13','A12','A11','A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var GlobalActionNames = ['A59','A54','A58','A57','A53','A56','A55','A14','A13','A12','A11','A10','A9','A8','A7','A6','A5','A4','A3','A2','A1','A0']; var ListActionNames = { 'gwcmc_cites_speciesInformationCitesList': ['A31','A33','A32','A30','A29','A24','A25','A23','A27','A28','A26','A20','A22','A21','A19','A18','A15','A17','A16'], 'gwcmc_cites_speciesInformationNonCitesList': ['A50','A52','A51','A49','A48','A43','A44','A42','A46','A47','A45','A39','A41','A40','A38','A37','A34','A36','A35'], }; var Dependencies = { "exp_gwcmc_licencedExporter": { "Dependencies": [Actions.A59,Actions.A11,Actions.A10,Actions.A9,Actions.A8,Actions.A7,Actions.A6,Actions.A5,Actions.A4,Actions.A3,Actions.A2,Actions.A1,Actions.A0] }, "gwcmc_cites_speciesType": { "Dependencies": [Actions.A54,Actions.A58,Actions.A57,Actions.A53,Actions.A56,Actions.A55,Actions.A50,Actions.A52,Actions.A51,Actions.A49,Actions.A48,Actions.A43,Actions.A44,Actions.A42,Actions.A46,Actions.A47,Actions.A45,Actions.A39,Actions.A41,Actions.A40,Actions.A38,Actions.A37,Actions.A34,Actions.A36,Actions.A35,Actions.A31,Actions.A33,Actions.A32,Actions.A30,Actions.A29,Actions.A24,Actions.A25,Actions.A23,Actions.A27,Actions.A28,Actions.A26,Actions.A20,Actions.A22,Actions.A21,Actions.A19,Actions.A18,Actions.A15,Actions.A17,Actions.A16,Actions.A13,Actions.A12] }, "gwcmc_cites_speciesCites_var": { "Dependencies": [Actions.A56,Actions.A55,Actions.A50,Actions.A52,Actions.A51,Actions.A49,Actions.A48,Actions.A43,Actions.A44,Actions.A42,Actions.A46,Actions.A47,Actions.A45,Actions.A39,Actions.A41,Actions.A40,Actions.A38,Actions.A37,Actions.A34,Actions.A36,Actions.A35,Actions.A31,Actions.A33,Actions.A32,Actions.A30,Actions.A29,Actions.A24,Actions.A25,Actions.A23,Actions.A27,Actions.A28,Actions.A26,Actions.A20,Actions.A22,Actions.A21,Actions.A19,Actions.A18,Actions.A15,Actions.A17,Actions.A16,Actions.A12] }, "gwcmc_cites_speciesNonCites_var": { "Dependencies": [Actions.A58,Actions.A57,Actions.A50,Actions.A52,Actions.A51,Actions.A49,Actions.A48,Actions.A43,Actions.A44,Actions.A42,Actions.A46,Actions.A47,Actions.A45,Actions.A38,Actions.A37,Actions.A34,Actions.A36,Actions.A35,Actions.A31,Actions.A33,Actions.A32,Actions.A30,Actions.A29,Actions.A24,Actions.A25,Actions.A23,Actions.A27,Actions.A28,Actions.A26,Actions.A19,Actions.A18,Actions.A15,Actions.A17,Actions.A16,Actions.A13] }, "exp_gwcmc_speciesTimber": { "Dependencies": [Actions.A14] }, "gwcmc_cites_speciesInformationCitesList": { "Dependencies": [], "gwcmc_cites_wildlifeCategory": { "Internal": [Actions.A17,Actions.A16] }, "gwcmc_cites_specimenLive": { "Internal": [Actions.A22,Actions.A21] }, "gwcmc_cites_source": { "Internal": [Actions.A25,Actions.A27,Actions.A26] }, "gwcmc_cites_appendixNumber": { "Internal": [Actions.A27,Actions.A28,Actions.A26] }, "gwcmc_cites_specimenCaptivityOrartificially": { "Internal": [Actions.A27,Actions.A28,Actions.A26] }, "gwcmc_cites_specimenAdoptionConvention": { "Internal": [Actions.A28] }, "gwcmc_cites_ReExportet": { "Internal": [Actions.A33,Actions.A32] } }, "gwcmc_cites_speciesInformationNonCitesList": { "Dependencies": [], "gwcmc_cites_wildlifeCategory": { "Internal": [Actions.A36,Actions.A35] }, "gwcmc_cites_specimenLive": { "Internal": [Actions.A41,Actions.A40] }, "gwcmc_cites_source": { "Internal": [Actions.A44,Actions.A46,Actions.A45] }, "gwcmc_cites_appendixNumber": { "Internal": [Actions.A46,Actions.A47,Actions.A45] }, "gwcmc_cites_specimenCaptivityOrartificially": { "Internal": [Actions.A46,Actions.A47,Actions.A45] }, "gwcmc_cites_specimenAdoptionConvention": { "Internal": [Actions.A47] }, "gwcmc_cites_ReExportet": { "Internal": [Actions.A52,Actions.A51] } } }; var submitScriptData = { SaveUrl: '/SelfService/submission/save/Export_Permit', SaveUploadUrl: '/SelfService/submission/saveupload/Export_Permit', RemoveUploadUrl: '/SelfService/submission/removeupload/Export_Permit', NewRecordInputUrl: '/SelfService/submission/NewRecordInput/Export_Permit', WebActionUrl: '/SelfService/webaction/execute/Export_Permit', AutoCompleteUrl: '/SelfService/autocomplete/execute/Export_Permit', UICultureString: 'en-GB', LocaleString: 'en-GB', LocaleDateFormat: 'DD/MM/YYYY', WeekNumberCulture: 'da-DK', LocaleDecimalSeparator: '.', LocaleThousandSeparator: ',', ClientValidationEnabled: true, IntFormat: { NumberOfDecimals: 0, FixedDecimals: true, ThousandGroupingEnabled: false }, DecimalFormat: { NumberOfDecimals: 2, FixedDecimals: true, ThousandGroupingEnabled: true }, DoubleFormat: { NumberOfDecimals: 4, FixedDecimals: false, ThousandGroupingEnabled: false }, MaxUploadSize: 10000, MapBoundaries: { North: '0', South: '0', East: '0', West: '0' }, ContactProperties: [ ] , SaveDraftDataInterval: 10000, ReplyKey: '' }