var SubmissionResources = { }; var OnChangeHandler = { }; var Actions = { A0: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool'); Actions.SetVisible('imp_gwcmc_cites_speciesInformation', tmp); }, A1: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool'); Actions.SetVisible('imp_gwcmc_nonCites_speciesInformation', tmp); }, A2: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_wildlifeCategory', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_wildlifeCategory', tmp, recordArgs); }); }, A3: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_scientificCommonNameOther', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_scientificCommonNameOther', tmp, recordArgs); }); }, A4: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_scientificCommonName', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_scientificCommonName', tmp, recordArgs); }); }, A5: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_description', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_description', tmp, recordArgs); }); }, A6: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenDescription', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_specimenDescription', tmp, recordArgs); }); }, A7: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenLive', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = !(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))); Actions.SetVisible('imp_gwcmc_cites_specimenLive', tmp, recordArgs); }); }, A8: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenAge', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && !(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_specimenAge', tmp, recordArgs); }); }, A9: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenSex', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && !(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_specimenSex', tmp, recordArgs); }); }, A10: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_appendixNumber', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration', recordArgs) == 'cites') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_appendixNumber', tmp, recordArgs); }); }, A11: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenCaptivityOrartificially', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_source', 'Enumeration', recordArgs) == 'a') || (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_source', 'Enumeration', recordArgs) == 'c')) || (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_source', 'Enumeration', recordArgs) == 'r')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_specimenCaptivityOrartificially', tmp, recordArgs); }); }, A12: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_breedingNumber', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I') && (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_breedingNumber', tmp, recordArgs); }); }, A13: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_source', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_source', tmp, recordArgs); }); }, A14: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_exportPermitQuantity', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_exportPermitQuantity', tmp, recordArgs); }); }, A15: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_exportPermitUnits', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_exportPermitUnits', tmp, recordArgs); }); }, A16: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_ReImportet', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_ReImportet', tmp, recordArgs); }); }, A17: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_countryOrigin', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_ReImportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_countryOrigin', tmp, recordArgs); }); }, A18: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_countryReImport', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_ReImportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_countryReImport', tmp, recordArgs); }); }, A19: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenAdoptionConvention', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration', recordArgs) == 'cites') && (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I')) && (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_specimenAdoptionConvention', tmp, recordArgs); }); }, A20: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_dateAcquisition', parentName: 'imp_gwcmc_cites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenAdoptionConvention', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_dateAcquisition', tmp, recordArgs); }); }, A21: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_wildlifeCategory', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_wildlifeCategory', tmp, recordArgs); }); }, A22: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_scientificCommonNameOther', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_scientificCommonNameOther', tmp, recordArgs); }); }, A23: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_scientificCommonName', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_wildlifeCategory', 'Enumeration', recordArgs) == 'other')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_scientificCommonName', tmp, recordArgs); }); }, A24: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_description', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_description', tmp, recordArgs); }); }, A25: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenDescription', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_specimenDescription', tmp, recordArgs); }); }, A26: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenLive', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = !(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))); Actions.SetVisible('imp_gwcmc_cites_specimenLive', tmp, recordArgs); }); }, A27: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenAge', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && !(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_specimenAge', tmp, recordArgs); }); }, A28: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenSex', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenLive', 'Enumeration', recordArgs) == 'yes') && !(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_specimenSex', tmp, recordArgs); }); }, A29: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_appendixNumber', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration', recordArgs) == 'cites') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_appendixNumber', tmp, recordArgs); }); }, A30: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenCaptivityOrartificially', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_source', 'Enumeration', recordArgs) == 'a') || (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_source', 'Enumeration', recordArgs) == 'c')) || (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_source', 'Enumeration', recordArgs) == 'r')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_specimenCaptivityOrartificially', tmp, recordArgs); }); }, A31: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_breedingNumber', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I') && (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_breedingNumber', tmp, recordArgs); }); }, A32: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_source', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_source', tmp, recordArgs); }); }, A33: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_exportPermitQuantity', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_exportPermitQuantity', tmp, recordArgs); }); }, A34: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_exportPermitUnits', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_exportPermitUnits', tmp, recordArgs); }); }, A35: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_ReImportet', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs))))); Actions.SetVisible('imp_gwcmc_cites_ReImportet', tmp, recordArgs); }); }, A36: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_countryOrigin', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_ReImportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_countryOrigin', tmp, recordArgs); }); }, A37: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_countryReImport', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_ReImportet', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_countryReImport', tmp, recordArgs); }); }, A38: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_specimenAdoptionConvention', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((((Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration', recordArgs) == 'cites') && (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_appendixNumber', 'Enumeration', recordArgs) == 'I')) && (Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenCaptivityOrartificially', 'Enumeration', recordArgs) == 'yes')) && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_specimenAdoptionConvention', tmp, recordArgs); }); }, A39: function(recordGuid) { $.each(Actions.GetRecordArgs({name: 'imp_gwcmc_cites_dateAcquisition', parentName: 'imp_gwcmc_nonCites_speciesInformation', guid: recordGuid}), function(index, recordArgs) { var tmp = ((Actions.GetValueOrDefaultOf('imp_gwcmc_cites_specimenAdoptionConvention', 'Enumeration', recordArgs) == 'yes') && (!(((recordArgs.parentName == 'imp_gwcmc_cites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool', recordArgs)))) && !(((recordArgs.parentName == 'imp_gwcmc_nonCites_speciesInformation') && !(Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool', recordArgs)))))); Actions.SetVisible('imp_gwcmc_cites_dateAcquisition', tmp, recordArgs); }); }, A40: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration') == 'cites'); Actions.SetValueOf('gwcmc_cites_speciesCites_var', tmp, undefined, true); }, A41: function(recordGuid) { var tmp = (Actions.GetValueOrDefaultOf('gwcmc_cites_speciesType', 'Enumeration') == 'nonCites'); Actions.SetValueOf('gwcmc_cites_speciesNonCites_var', tmp, undefined, true); }, A42: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool'); Actions.SetVisible('20531d25-c3fd-458a-966d-aff5d1b57824', tmp); }, A43: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesCites_var', 'Bool'); Actions.SetVisible('eaaeb060-e19b-401b-b4f8-adf7dd02911b', tmp); }, A44: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool'); Actions.SetVisible('1091ed22-e0e0-4d02-9878-92145972196c', tmp); }, A45: function(recordGuid) { var tmp = Actions.GetValueOrDefaultOf('gwcmc_cites_speciesNonCites_var', 'Bool'); Actions.SetVisible('2ea22fe7-630f-4b48-9753-c6045a3b8069', tmp); }}; var ActionNames = ['A41','A45','A44','A40','A43','A42','A35','A37','A36','A34','A33','A32','A30','A29','A38','A39','A31','A26','A28','A27','A25','A24','A21','A23','A22','A16','A18','A17','A15','A14','A13','A11','A10','A19','A20','A12','A7','A9','A8','A6','A5','A2','A4','A3','A1','A0']; var GlobalActionNames = ['A41','A45','A44','A40','A43','A42','A1','A0']; var ListActionNames = { 'imp_gwcmc_cites_speciesInformation': ['A16','A18','A17','A15','A14','A13','A11','A10','A19','A20','A12','A7','A9','A8','A6','A5','A2','A4','A3'], 'imp_gwcmc_nonCites_speciesInformation': ['A35','A37','A36','A34','A33','A32','A30','A29','A38','A39','A31','A26','A28','A27','A25','A24','A21','A23','A22'], }; var Dependencies = { "gwcmc_cites_speciesType": { "Dependencies": [Actions.A41,Actions.A45,Actions.A44,Actions.A40,Actions.A43,Actions.A42,Actions.A35,Actions.A37,Actions.A36,Actions.A34,Actions.A33,Actions.A32,Actions.A30,Actions.A29,Actions.A38,Actions.A39,Actions.A31,Actions.A26,Actions.A28,Actions.A27,Actions.A25,Actions.A24,Actions.A21,Actions.A23,Actions.A22,Actions.A16,Actions.A18,Actions.A17,Actions.A15,Actions.A14,Actions.A13,Actions.A11,Actions.A10,Actions.A19,Actions.A20,Actions.A12,Actions.A7,Actions.A9,Actions.A8,Actions.A6,Actions.A5,Actions.A2,Actions.A4,Actions.A3,Actions.A1,Actions.A0] }, "gwcmc_cites_speciesCites_var": { "Dependencies": [Actions.A43,Actions.A42,Actions.A35,Actions.A37,Actions.A36,Actions.A34,Actions.A33,Actions.A32,Actions.A30,Actions.A29,Actions.A38,Actions.A39,Actions.A31,Actions.A26,Actions.A28,Actions.A27,Actions.A25,Actions.A24,Actions.A21,Actions.A23,Actions.A22,Actions.A16,Actions.A18,Actions.A17,Actions.A15,Actions.A14,Actions.A13,Actions.A11,Actions.A10,Actions.A19,Actions.A20,Actions.A12,Actions.A7,Actions.A9,Actions.A8,Actions.A6,Actions.A5,Actions.A2,Actions.A4,Actions.A3,Actions.A0] }, "gwcmc_cites_speciesNonCites_var": { "Dependencies": [Actions.A45,Actions.A44,Actions.A35,Actions.A37,Actions.A36,Actions.A34,Actions.A33,Actions.A32,Actions.A30,Actions.A29,Actions.A38,Actions.A39,Actions.A31,Actions.A25,Actions.A24,Actions.A21,Actions.A23,Actions.A22,Actions.A16,Actions.A18,Actions.A17,Actions.A15,Actions.A14,Actions.A13,Actions.A11,Actions.A10,Actions.A19,Actions.A20,Actions.A12,Actions.A6,Actions.A5,Actions.A2,Actions.A4,Actions.A3,Actions.A1] }, "imp_gwcmc_cites_speciesInformation": { "Dependencies": [], "imp_gwcmc_cites_wildlifeCategory": { "Internal": [Actions.A4,Actions.A3] }, "imp_gwcmc_cites_specimenLive": { "Internal": [Actions.A9,Actions.A8] }, "imp_gwcmc_cites_source": { "Internal": [Actions.A11,Actions.A19,Actions.A12] }, "imp_gwcmc_cites_appendixNumber": { "Internal": [Actions.A19,Actions.A20,Actions.A12] }, "imp_gwcmc_cites_specimenCaptivityOrartificially": { "Internal": [Actions.A19,Actions.A20,Actions.A12] }, "imp_gwcmc_cites_ReImportet": { "Internal": [Actions.A18,Actions.A17] }, "imp_gwcmc_cites_specimenAdoptionConvention": { "Internal": [Actions.A20] } }, "imp_gwcmc_nonCites_speciesInformation": { "Dependencies": [], "imp_gwcmc_cites_wildlifeCategory": { "Internal": [Actions.A23,Actions.A22] }, "imp_gwcmc_cites_specimenLive": { "Internal": [Actions.A28,Actions.A27] }, "imp_gwcmc_cites_source": { "Internal": [Actions.A30,Actions.A38,Actions.A31] }, "imp_gwcmc_cites_appendixNumber": { "Internal": [Actions.A38,Actions.A39,Actions.A31] }, "imp_gwcmc_cites_specimenCaptivityOrartificially": { "Internal": [Actions.A38,Actions.A39,Actions.A31] }, "imp_gwcmc_cites_ReImportet": { "Internal": [Actions.A37,Actions.A36] }, "imp_gwcmc_cites_specimenAdoptionConvention": { "Internal": [Actions.A39] } } }; var submitScriptData = { SaveUrl: '/SelfService/submission/save/Import_Permit', SaveUploadUrl: '/SelfService/submission/saveupload/Import_Permit', RemoveUploadUrl: '/SelfService/submission/removeupload/Import_Permit', NewRecordInputUrl: '/SelfService/submission/NewRecordInput/Import_Permit', WebActionUrl: '/SelfService/webaction/execute/Import_Permit', AutoCompleteUrl: '/SelfService/autocomplete/execute/Import_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: '' }