key001= new Array();
key001[0] = "Electronics, Microelectronics (001001)";
key001[1] = "Information Processing, Information System, Workflow Management (001002)";
key001[2] = "IT and Telematics Applications (001003)";
key001[3] = "Multimedia (001004)";
key001[4] = "Telecommunications, Networking (001005)";

key002= new Array();
key002[0] = "Design and Modelling/Prototypes (002001)";
key002[1] = "Industrial Manufacture (002002)";
key002[2] = "Process Control and Logistics (002003)";
key002[3] = "Plant Design and Maintenance (002004)";
key002[4] = "Packaging/Handling (002005)";
key002[5] = "Construction Technology (002006)";
key002[6] = "Materials Technology (002007)";
key002[7] = "Transport Infrastructure (002008)";
key002[8] = "Transport and Shipping Technologies (002009)";
key002[9] = "Aerospace Technology (002010)";

key003= new Array();
key003[0] = "Other Industrial Technologies (003001)";
key003[1] = "Process Plan Engineering (003002)";
key003[2] = "Apparatus Engineering (003003)";
key003[3] = "Chemical Technology and Engineering (003004)";
key003[4] = "Textiles Technology (003005)";
key003[5] = "Footwear/Leather Technology (003006)";
key003[6] = "Sound Engineering/Technology (003007)";
key003[7] = "Mining Technologies (003008)";
key003[8] = "Printing (003009)";

key004= new Array();
key004[0] = "Energy Storage and Transport (004001)";
key004[1] = "Energy production, transmission and conversion (004002)";
key004[2] = "Fossil Energy Sources (004003)";
key004[3] = "Nuclear Fission/Nuclear Fusion (004004)";
key004[4] = "Renewable Sources of Energy (004005)";
key004[5] = "Rational use of energy (004006)";
key004[6] = "Other Energy Topics (004007)";

key005= new Array();
key005[0] = "Astronomy (005001)";
key005[1] = "Chemistry (005002)";
key005[2] = "Earth Sciences (005003)";
key005[3] = "Mathematics, Statistics (005004)";
key005[4] = "Meteorology / Climatology (005005)";
key005[5] = "Physics (005006)";
key005[6] = "Mechanical Engineering (005007)";
key005[7] = "Hydraulics (005008)";
key005[8] = "Separation Technologies (005009)";
key005[9] = "Micro- and Nanotechnology related to physical and exact sciences (005010)";

key006= new Array();
key006[0] = "Medicine, Human Health (006001)";
key006[1] = "Biology/Biotechnology (006002)";
key006[2] = "Genome Research (006003)";
key006[3] = "Micro- and Nanotechnology related to Biological sciences (006004)";

key007= new Array();
key007[0] = "Agriculture (007001)";
key007[1] = "Sylviculture, Forestry, Forest technology (007002)";
key007[2] = "Resources of the Sea, Fisheries (007003)";

key008= new Array();
key008[0] = "Technologies for the food industry (008001)";
key008[1] = "Food quality and safety (008002)";
key008[2] = "Nutrition and Health (008003)";

key009= new Array();
key009[0] = "Measurement Tools (009001)";
key009[1] = "Amplifier, A/D Transducer (009002)";
key009[2] = "Electronic measurement systems (009003)";
key009[3] = "Recording devices (009004)";
key009[4] = "Reference Materials (009005)";
key009[5] = "Standards (009006)";

key010= new Array();
key010[0] = "Safety (010001)";
key010[1] = "Environment (010002)";
key010[2] = "Waste Management (010003)";

key011= new Array();
key011[0] = "Socio-economic development models, economic aspects (011001)";
key011[1] = "Education and Training (011002)";
key011[2] = "Information and media, society (011003)";
key011[3] = "Technology, Society and Employment (011004)";
key011[4] = "Infrastructures for social sciences and humanities (011005)";
key011[5] = "Citizens participation (011006)";
key011[6] = "Foresight tools (011007)";
key011[7] = "Sports and Leisure (011008)";

key001001= new Array();
key001001[0] = "Automation, Robotics Control Systems (001001001)";
key001001[1] = "Digital Systems, Digital Representation (001001002)";
key001001[2] = "Electronic circuits, components and equipment (001001003)";
key001001[3] = "Electronic Engineering (001001004)";
key001001[4] = "Embedded Systems and Real Time Systems (001001005)";
key001001[5] = "High Frequency Technology, Microwaves (001001006)";
key001001[6] = "Magnetic and superconductory materials/devices (001001007)";
key001001[7] = "Microengineering (001001008)";
key001001[8] = "Micromachining (001001009)";
key001001[9] = "Nanotechnologies related to electronics and microelectronics (001001010)";
key001001[10] = "Optical Networks and Systems (001001011)";
key001001[11] = "Peripherals Technologies (Mass Data Storage, Display Technologies) related to electronics and microelectronics (001001012)";
key001001[12] = "Printed circuits and integrated circuits (001001013)";
key001001[13] = "Quantum Informatics (001001014)";
key001001[14] = "Semiconductors (001001015)";
key001001[15] = "Smart cards and access systems (001001016)";
key001001[16] = "Environmental and Biometrics Sensors, Actuators (001001017)";

key001002= new Array();
key001002[0] = "Advanced Systems Architecture (001002001)";
key001002[1] = "Archivistics/Documentation/Technical Documentation (001002002)";
key001002[2] = "Artificial Intelligence (AI) (001002003)";
key001002[3] = "Computer Games (001002004)";
key001002[4] = "Computer Hardware (001002005)";
key001002[5] = "Computer Software (001002006)";
key001002[6] = "Computer Technology/Graphics, Meta Computing (001002007)";
key001002[7] = "Data Processing/Data Interchange. Middleware (001002008)";
key001002[8] = "Data Protection, Storage Technology, Cryptography, Data Security (001002009)";
key001002[9] = "Databases, Database Management, Data Mining (001002010)";
key001002[10] = "Electronic Commerce, Electronic Payment, Electronic Signature (001002011)";
key001002[11] = "Imaging, Image Processing, Pattern Recognition (001002012)";
key001002[12] = "Information Technology/Informatics (001002013)";
key001002[13] = "Internet Technologies/Communication (Wireless, Wi-Fi, Bluetooth) (001002014)";
key001002[14] = "Knowledge Management, Process Management (001002015)";
key001002[15] = "Simulation (001002016)";
key001002[16] = "Speech Processing/Technology (001002017)";
key001002[17] = "User Interfaces, Usability (001002018)";
key001002[18] = "Electronic Signature (001002019)";
key001002[19] = "Building Automation Software (001002020)";
key001002[20] = "Remote Control (001002021)";
key001002[21] = "Smart Appliances (001002022)";

key001003= new Array();
key001003[0] = "Applications for Health (001003001)";
key001003[1] = "Applications for Tourism (001003002)";
key001003[2] = "Applications for Transport and Logistics (001003003)";
key001003[3] = "ASP Application Service Providing (001003004)";
key001003[4] = "e-Government (001003005)";
key001003[5] = "Environment Management Systems &  Documental Management Systems (001003006)";
key001003[6] = "GIS Geographical Information Systems (001003007)";
key001003[7] = "CRM - Customer relationship Management (001003008)";
key001003[8] = "Quality Management System (001003009)";
key001003[9] = "Maintenance Management System (001003010)";
key001003[10] = "Operation Planning and Scheduler System (001003011)";
key001003[11] = "Didactic System (001003012)";
key001003[12] = "ICM – Internet Content Management (001003013)";
key001003[13] = "Analysis Risk Management (001003014)";
key001003[14] = "Work Hygiene and Safety Management(001003015)";

key001004= new Array();
key001004[0] = "Cultural Heritage (001004001)";
key001004[1] = "E-Learning (001004002)";
key001004[2] = "E-Publishing, Digital Content (001004003)";
key001004[3] = "Human Language Technologies (001004004)";
key001004[4] = "Information Filtering, Semantics, Statistics (001004005)";
key001004[5] = "Visualisation, Virtual Reality (001004006)";

key001005= new Array();
key001005[0] = "Audiovisual Equipment and Communication (001005001)";
key001005[1] = "Broadband Technologies (001005002)";
key001005[2] = "Mobile Communications (001005003)";
key001005[3] = "Narrow Band Technologies (001005004)";
key001005[4] = "Network Technology, Network Security (001005005)";
key001005[5] = "Radar (001005006)";
key001005[6] = "Research Networking, GRID (001005007)";
key001005[7] = "Satellite Technology/Systems/Positioning/Communication in GPS – Global Positioning System (001005008)";
key001005[8] = "Signal Processing (001005009)";
key001005[9] = "Hi-Fi (001005010)";
key001005[10] = "Description to Sound and Music Computing (001005011)";
key001005[11] = "Description Image/Video Computing (001005012)";
key001005[12] = "Communications Protocols, Interoperability (001005013)";
key001005[13] = "Residential Gateaway (001005014)";

key002001= new Array();

key002002= new Array();
key002002[0] = "Cleaning (sandblasting, brushing) (002002001)";
key002002[1] = "Coatings (002002002)";
key002002[2] = "Drying (002002003)";
key002002[3] = "Erosion, Removal (spark erosion, flame cutting, laser/plasma cutting, electrochemical erosion, waterjet cutting) (002002004)";
key002002[4] = "Forming (rolling, forging, pressing, drawing (002002005)";
key002002[5] = "Hardening, heat treatment (002002006)";
key002002[6] = "Joining techniques (riveting, screw driving, gluing) (002002007)";
key002002[7] = "Joining (soldering, welding, sticking) (002002008)";
key002002[8] = "Machine Tools (002002009)";
key002002[9] = "Machining (turning, drilling, moulding, planing, cutting) (002002010)";
key002002[10] = "Machining, fine (grinding, lapping) (002002011)";
key002002[11] = "Mixing (powder, etc.), separation (sorting, filtering) (002002012)";
key002002[12] = "Moulding, injection moulding, extrusion, sintering (002002013)";
key002002[13] = "Surface treatment (painting, galvano, polishing, CVD, PVD) (002002014)";

key002003= new Array();

key002004= new Array();

key002005= new Array();
key002005[0] = "Foil, fils (002005001)";
key002005[1] = "Laminate (002005002)";
key002005[2] = "Packaging for machines (002005003)";
key002005[3] = "Packaging for materials (002005004)";
key002005[4] = "Plastic bags (002005005)";

key002006= [
    "Building Materials, Components and Methods (002006001)",
    "Civil Engineering (002006002)",
    "Construction Equipment (002006003)",
    "Fire Resistance/Safety (002006004)",
    "Mechanical Engineering, Hydraulics, Vibration and Acoustic Engineering related to construction technology (002006005)",
    "Pipeline Technology (002006006)",
    "Pulp Technology related to construction technology (002006007)",
    "Sensory/Multisensory Technology, Instrumentation related to construction technology (002006008)",
    "Simulation, Simulation Engineering (002006009)",
    "Sound Insulation (002006010)",
    "Vacuum/High Vacuum Technology (002006011)",
    "Gas Safety (002006012)",
    "Security (002006013)"
];



key002007= new Array();
key002007[0] = "Adhesives (002007001)";
key002007[1] = "Building Materials (002007002)";
key002007[2] = "Ceramic Materials and Powders (002007003)";
key002007[3] = "Colours and Varnish (002007004)";
key002007[4] = "Composite Materials (002007005)";
key002007[5] = "Fine Chemicals, Dyes and Inks (002007006)";
key002007[6] = "Glass (002007007)";
key002007[7] = "Iron and Steel, Steelworks (002007008)";
key002007[8] = "Materials Handling Technology (solids, fluids, gases) (002007009)";
key002007[9] = "Metals and Alloys (002007010)";
key002007[10] = "Non-ferrous Metals (002007011)";
key002007[11] = "Optical Materials (002007012)";
key002007[12] = "Paper Technology (002007013)";
key002007[13] = "Plastics, Polymers (002007014)";
key002007[14] = "Properties of Materials, Corrosion/Degradation (002007015)";
key002007[15] = "Rubber (002007016)";
key002007[16] = "Stone (002007017)";
key002007[17] = "Advanced Textile Materials (002007018)";

key002008= new Array();
key002008[0] = "Air Transport (002008001)";
key002008[1] = "Intermodal Transport (002008002)";
key002008[2] = "Logistics (002008003)";
key002008[3] = "Railway Transport (002008004)";
key002008[4] = "Road Transport (002008005)";
key002008[5] = "Traffic Engineering/Control Systems (002008006)";
key002008[6] = "Transhipment Systems (002008007)";
key002008[7] = "Water Transport (002008008)";

key002009= new Array();
key002009[0] = "Design of Vehicles (002009001)";
key002009[1] = "Hybrid and Electric Vehicles (002009002)";
key002009[2] = "Railway Vehicles (002009003)";
key002009[3] = "Road Vehicles (002009004)";
key002009[4] = "Shipbuilding (002009005)";
key002009[5] = "Traction/Propulsion Systems (002009006)";

key002010= new Array();
key002010[0] = "Aeronautical Technology/Avionics (002010001)";
key002010[1] = "Aircraft (002010002)";
key002010[2] = "Helicopter (002010003)";
key002010[3] = "Satellite Navigation Systems (002010004)";
key002010[4] = "Space Exploration and Technology (002010005)";

key003001= new Array();
key003001[0] = "Cleaning Technology (003001001)";

key003002= new Array();

key003003= new Array();

key003004= new Array();
key003004[0] = "Agro chemicals (003004001)";
key003004[1] = "Anorganic Substances (003004002)";
key003004[2] = "Colours, dyes related to Chemical Technology and engineering (003004003)";
key003004[3] = "Electrical Engineering and Technology/Electrical Equipment (003004004)";
key003004[4] = "Man made fibres (003004005)";
key003004[5] = "Organic Substances (003004006)";
key003004[6] = "Pharmaceuticals (003004007)";
key003004[7] = "Plastics and Rubber related to Chemical Technology and engineering (003004008)";
key003004[8] = "Soaps, detergents (003004009)";
key003004[9] = "Special chemicals, intermediates (003004010)";
key003004[10] = "Care, Hygiene, Beauty (003004011)";


key003005= new Array();
key003005[0] = "Component adhesives for strengthening of seam (003005001)";
key003005[1] = "Dry filling related to Textiles Technology (003005002)";
key003005[2] = "Dyeing related to Textiles Technology (003005003)";
key003005[3] = "Finisher related to Textiles Technology (003005004)";
key003005[4] = "Non weaving related to Textiles Technology (003005005)";
key003005[5] = "Solvent based glues for strengthening of edges and seam (003005006)";
key003005[6] = "Thermoplastic textile fibres (003005007)";
key003005[7] = "Weaving related to Textiles Technology (003005008)";
key003005[8] = "Woven technical textiles for industrial applications (003005009)";

key003006= new Array();
key003006[0] = "Dry filling related to Footwear/Leather technology (003006001)";
key003006[1] = "Dyes related to Footwear/Leather technology (003006002)";
key003006[2] = "Tanned leather process related to Footwear/Leather technology (003006003)";

key003007= new Array();

key003008= new Array();

key003009= new Array();
key003009[0] = "Flexography (003009001)";
key003009[1] = "Printed Reel Material (003009002)";
key003009[2] = "Household Goods & Appliances (003009003)";


key004001= new Array();
key004001[0] = "Heat storage (004001001)";
key004001[1] = "Heat transport and supply, district heating (004001002)";
key004001[2] = "Storage of electricity, batteries (004001003)";
key004001[3] = "Transmission of electricity (004001004)";
key004001[4] = "Transport and storage of gas and liquid fuels (004001005)";
key004001[5] = "Transport and storage of hydrogen (004001006)";

key004002= new Array();
key004002[0] = "Fuel cell, hydrogen production (004002001)";
key004002[1] = "Fuel liquefaction, gasification (004002002)";
key004002[2] = "Furnace technology, construction of heating boilers (004002003)";
key004002[3] = "Generators, electric engines and power converters (004002004)";
key004002[4] = "Heat exchangers (004002005)";
key004002[5] = "Heat pump, cooling technologies (004002006)";
key004002[6] = "Heating, ventilation (004002007)";
key004002[7] = "Turbines, fluid machinery, reciprocating engines, combined heat and power (004002008)";

key004003= new Array();
key004003[0] = "Coal and Hydrocarbons (004003001)";
key004003[1] = "Gaseous fossil fuel (004003002)";
key004003[2] = "Solid fossil fuel (004003003)";
key004003[3] = "Liquid fossil fuel (004003004)";

key004004= new Array();

key004005= new Array();
key004005[0] = "Gaseous biomass (004005001)";
key004005[1] = "Geothermal energy (004005002)";
key004005[2] = "Hydropower (004005003)";
key004005[3] = "Liquid biomass (004005004)";
key004005[4] = "Photovoltaics (004005005)";
key004005[5] = "Solar/Thermal Energy (004005006)";
key004005[6] = "Solid biomass (004005007)";
key004005[7] = "Unconventional and Alternative Energies (004005008)";
key004005[8] = "Waste incineration (004005009)";
key004005[9] = "Wind Energy (004005010)";

key004006= new Array();
key004006[0] = "Energy management (004006001)";
key004006[1] = "Lighting, illumination (004006002)";
key004006[2] = "Process optimisation, waste heat utilisation (004006003)";
key004006[3] = "Thermal insulation, energy efficiency in buildings (004006004)";

key004007= new Array();
key004007[0] = "Combustion, Flames (004007001)";
key004007[1] = "Fuel Technology (004007002)";

key005001= new Array();

key005002= new Array();
key005002[0] = "Analytical Chemistry (005002001)";
key005002[1] = "Computational Chemistry and Modelling (005002002)";
key005002[2] = "Inorganic Chemistry (005002003)";
key005002[3] = "Organic Chemistry (005002004)";
key005002[4] = "Petrochemistry, Petroleum Engineering (005002005)";

key005003= new Array();
key005003[0] = "Geology, Geological Engineering, Geotechnics (005003001)";
key005003[1] = "Oceanography (005003002)";
key005003[2] = "Tectonics, Seismology (005003003)";

key005004= new Array();
key005004[0] = "Algorithms and Complexity (005004001)";
key005004[1] = "Mathematical modelling (005004002)";
key005004[2] = "Statistical Analysis (005004003)";

key005005= new Array();
key005005[0] = "Biosensor (005005001)";
key005005[1] = "Moisture sensors (005005002)";
key005005[2] = "Temperature monitoring (005005003)";

key005006= new Array();
key005006[0] = "Acoustics (005006001)";
key005006[1] = "Astrophysics/Cosmology (005006002)";
key005006[2] = "Laser Technology (005006003)";
key005006[3] = "Nuclear Physics (005006004)";
key005006[4] = "Physics of Fluids (005006005)";
key005006[5] = "Sensors/Multisensor Technology, Instrumentation (005006006)";
key005006[6] = "Solid state physics (005006007)";
key005006[7] = "Thermodynamics (005006008)";
key005006[8] = "Vibration and Acoustic engineering (005006009)";
key005006[9] = "Optics (005006010)";
	
key005007= new Array();
key005007[0] = "Micro-mechanics (005007001)";

key005008= new Array();

key005009= new Array();
key005009[0] = "Filtration and Membrane Processes (005009001)";
key005009[1] = "Extraction (005009002)";
key005009[2] = "Adsorption (005009003)";
key005009[3] = "Distillation (005009004)";
key005009[4] = "Sublimation (005009005)";
key005009[5] = "Other Processes (005009006)";

key005010= new Array();

key006001= new Array();
key006001[0] = "Biostatistics, Epidemiology (006001001)";
key006001[1] = "Care and Health Services (006001002)";
key006001[2] = "Clinical Research, Trials (006001003)";
key006001[3] = "Cytology, Cancerology, Oncology (006001004)";
key006001[4] = "Dentistry/Odontology, Stomatology (006001005)";
key006001[5] = "Diagnostics, Diagnosis (006001006)";
key006001[6] = "Diseases (006001007)";
key006001[7] = "Environmental Medicine, Social Medicine, Sports Medicine (006001008)";
key006001[8] = "Gene - DNA Therapy (006001009)";
key006001[9] = "Gerontology and Geriatrics (006001010)";
key006001[10] = "Heart and blood circulation illnesses (006001011)";
key006001[11] = "Electromedical and Medical Equipment (006001012)";
key006001[12] = "Medical Research (006001013)";
key006001[13] = "Medical Technology/Biomedical Engineering (006001014)";
key006001[14] = "Neurology, Brain Research (006001015)";
key006001[15] = "Pharmaceutical Products/Drugs (006001016)";
key006001[16] = "Physiology (006001017)";
key006001[17] = "Surgery (006001018)";
key006001[18] = "Virus, Virology/Antibiotics/Bacteriology (006001019)";
key006001[19] = "Laboratory Equipment (006001020)";
key006001[20] = "Rescue and Emergency Equipment (006001021)";
key006001[21] = "Physiotherapy, Orthopaedic Technology (006001022)";
key006001[22] = "Single Use Products and Consumer Goods (006001023)";
key006001[23] = "Medical Textiles (006001024)";
key006001[24] = "Medical Furniture (006001025)";
key006001[25] = "Medical Biomaterials (006001026)";

key006002= new Array();
key006002[0] = "Biochemistry/Biophysics (006002001)";
key006002[1] = "Cellular and Molecular Biology (006002002)";
key006002[2] = "Enzymology/Protein Engineering/Fermentation (006002003)";
key006002[3] = "Genetic Engineering (006002004)";
key006002[4] = "In vitro Testing, Trials (006002005)";
key006002[5] = "Microbiology (006002006)";
key006002[6] = "Molecular design (006002007)";
key006002[7] = "Toxicology (006002008)";

key006003= new Array();
key006003[0] = "Bioinformatics (006003001)";
key006003[1] = "Gene Expression, Proteome Research (006003002)";
key006003[2] = "Population genetics (006003003)";

key006004= new Array();

key007001= new Array();
key007001[0] = "Agriculture Machinery/Technology (007001001)";
key007001[1] = "Animal Production/Husbandry (007001002)";
key007001[2] = "Biocontrol (007001003)";
key007001[3] = "Crop Production (007001004)";
key007001[4] = "Horticulture (007001005)";
key007001[5] = "Pesticides (007001006)";
key007001[6] = "Precision agriculture (007001007)";
key007001[7] = "Seed coating (007001008)";
key007001[8] = "Veterinary Medicine (007001009)";

key007002= new Array();
key007002[0] = "Forest technology (007002001)";
key007002[1] = "Paper technology (007002002)";
key007002[2] = "Pulp technology (007002003)";
key007002[3] = "Sylviculture, Forestry (007002004)";
key007002[4] = "Wood products (007002005)";

key007003= new Array();
key007003[0] = "Aquaculture (007003001)";
key007003[1] = "Fish/Fisheries/Fishing Technology (007003002)";
key007003[2] = "Marine Science (007003003)";

key008001= new Array();
key008001[0] = "Drink technology (008001001)";
key008001[1] = "Food Additives/Ingredients/Functional Food (008001002)";
key008001[2] = "Food Packaging/Handling (008001003)";
key008001[3] = "Food Processing (008001004)";
key008001[4] = "Food Technology (008001005)";

key008002= new Array();
key008002[0] = "Detection and Analysis methods (008002001)";
key008002[1] = "Food Microbiology/Toxicology/Quality Control (008002002)";
key008002[2] = "Safe production methods (008002003)";
key008002[3] = "Traceability of food (008002004)";

key008003= new Array();

key009001= new Array();
key009001[0] = "Acoustic Technology related to measurements (009001001)";
key009001[1] = "Analyses/Test Facilities and Methods (009001002)";
key009001[2] = "Chemical material testing (009001003)";
key009001[3] = "Electrical Technology related to measurements (009001004)";
key009001[4] = "Mechanical Technology related to measurements (009001005)";
key009001[5] = "Optical material testing (009001006)";
key009001[6] = "Optical technology related to measurements (009001007)";
key009001[7] = "Other Non Destructive Testing (009001008)";
key009001[8] = "Sensor Technology related to measurements (009001009)";
key009001[9] = "Thermal material testing (009001010)";

key009002= new Array();

key009003= new Array();

key009004= new Array();

key009005= new Array();

key009006= new Array();
key009006[0] = "Quality Standards (009006001)";
key009006[1] = "Technical Standards (009006002)";

key010001= new Array();
key010001[0] = "Acoustic safety (010001001)";
key010001[1] = "Assessment of Risk (010001002)";
key010001[2] = "Fire Safety Technology (010001003)";
key010001[3] = "Hazardous Materials (010001004)";
key010001[4] = "Radiation Protection (010001005)";

key010002= new Array();
key010002[0] = "Air Pollution/Treatment (010002001)";
key010002[1] = "Biodiversity (010002002)";
key010002[2] = "Ecology (010002003)";
key010002[3] = "Environmental Engineering/Technology (010002004)";
key010002[4] = "Measurement and Detection of Pollution (010002005)";
key010002[5] = "Natural Disasters (010002006)";
key010002[6] = "Remote sensing technology (010002007)";
key010002[7] = "Soil Pollution (010002008)";
key010002[8] = "Water Pollution/Treatment (010002009)";

key010003= new Array();
key010003[0] = "Biotreatment/Compost/Bioconversion (010003001)";
key010003[1] = "Incineration and Pyrolysis (010003002)";
key010003[2] = "Land and Sea Disposal (010003003)";
key010003[3] = "Recycling, Recovery (010003004)";
key010003[4] = "Radioactive Waste (010003005)";

key011001= new Array();

key011002= new Array();

key011003= new Array();

key011004= new Array();

key011005= new Array();

key011006= new Array();

key011007= new Array();

key011008= new Array();
 
function updateL2(){
 document.forms[0].Key2.options.length=0;
 document.forms[0].Key3.options.length=0;
 if(document.forms[0].Key1.selectedIndex>0){
  var selected=document.forms[0].Key1.value;
  var l2length=eval('key'+selected+'.length');
  for(var i=0;i<l2length;i++){
   document.forms[0].Key2.options.length++;
   document.forms[0].Key2[i].text  =  (eval('key'+selected+'['+i+']'));
   if (i>=9) {
   	document.forms[0].Key2[i].value  = 'key'+selected+'0'+''+(i+1);
   } else
   {
	document.forms[0].Key2[i].value  = 'key'+selected+'00'+''+(i+1);
   }
  }
 }
}

function updateL3(){
 var selected=document.forms[0].Key2.value;
 if (selected)
 {
   document.forms[0].Key3.options.length=0;
   var l3length=eval(selected+'.length');
   for(var i=0;i<l3length;i++){
    document.forms[0].Key3.options.length++;
    document.forms[0].Key3[i].text  =  (eval(selected+'['+i+']'));
    document.forms[0].Key3[i].value  = (eval(selected+'['+i+']'));
   }
 }
}

var keyArray = new Array();

function addKeyword (keywordText){
 var notFound = true;
 for(var j=0;j<keyArray.length;j++) {
	if (keyArray[j] == keywordText) {
      notFound = false;
	  break;
	}
 }
 if (notFound) {
	keyArray[(keyArray.length)] = keywordText;
 }
 for(var j=0;j<keyArray.length;j++)
 {
    document.forms[0].keywords1.options.length=keyArray.length;
    document.forms[0].keywords1[j].text=keyArray[j];
 }
}

function updateKeywordsL2(){
 var currentLen = document.forms[0].Key2.options.length;
 for(var i=0;i<currentLen;i++){
  if(document.forms[0].Key2[i].selected && document.forms[0].Key2[i].value){ 
	addKeyword(document.forms[0].Key2[i].text);
  }
 }
}

function updateKeywordsL3(){
 var currentLen = document.forms[0].Key3.options.length;
 for(var i=0;i<currentLen;i++){
   if(document.forms[0].Key3[i].selected && document.forms[0].Key3[i].value){ 
 	  addKeyword(document.forms[0].Key3[i].text);
   }
 }
}

function deleteKeyword(){
 for(var j=0;j<document.forms[0].keywords1.length;j++){
  if(document.forms[0].keywords1[j].selected){
   document.forms[0].keywords1[j]=null;
   keyArray.length--;
  }
 }
 for(var m=0;m<document.forms[0].keywords1.options.length;m++){
  keyArray[m]=document.forms[0].keywords1[m].text;
 }
}



fkey001 = new Array();

fkey002 = new Array();
fkey002[0] = "Health"
fkey002[1] = "Food, Agriculture and Biotechnology"
fkey002[2] = "Information and Communication Technologies"
fkey002[3] = "Nanosciences, Nanotechnology, Materials and new Production Technologies"
fkey002[4] = "Energy"
fkey002[5] = "Environment (including Climate Change)"
fkey002[6] = "Transport (including aeronautics)"
fkey002[7] = "Socio-Economic Sciences and the Humanities"
fkey002[8] = "Space"
fkey002[9] = "Security"

fkey003 = new Array();
fkey003[0] = "ERC Starting Independent Research Grant"
fkey003[1] = "ERC Advanced Investigator Research Grant"

fkey004 = new Array();

fkey005 = new Array();
fkey005[0] = "Research Infrastructures"
fkey005[1] = "Research for the benefit of SMEs"
fkey005[2] = "Regions of knowledge"
fkey005[3] = "Research potential of Convergence regions"
fkey005[4] = "Science in Society"
fkey005[5] = "Support to the coherent development of research policies"
fkey005[6] = "International cooperation"

fkey006 = new Array();

function updateFUNL2(){
 if(document.forms[0].fkey1.selectedIndex>0){
  var selected=document.forms[0].fkey1.value;
  var l2number=eval('fkey'+selected+'.length');
  document.forms[0].fkey2.options.length=0;
  for(var i=0;i<l2number;i++){
   document.forms[0].fkey2.options.length++;
   document.forms[0].fkey2[i].text  =  (eval('fkey'+selected+'['+i+']'));
   document.forms[0].fkey2[i].value  = 'fkey'+selected+'00'+''+(i+1);
 }}
}

function updateFUNL3(){
 document.forms[0].fkey1.options.length=0;
 var selected=document.forms[0].fkey2.value;
 var l3number=eval(selected+'.length');
 document.forms[0].fkey1.options.length=0;
 for(var i=0;i<l3number;i++){
  document.forms[0].fkey1.options.length++;
  document.forms[0].fkey1[i].text  =  (eval(selected+'['+i+']'));
  document.forms[0].fkey1[i].value  = (eval(selected+'['+i+']'));
 }
}

var fkeyArray = new Array();

function addFKeyword (keywordText){
 var notFound = true;
 for(var j=0;j<fkeyArray.length;j++) {
	if (fkeyArray[j] == keywordText) {
      notFound = false;
	  break;
	}
 }
 if (notFound) {
	fkeyArray[(fkeyArray.length)] = keywordText;
 }
}

function updatefkeywordsL2(){
 var currentLen = document.forms[0].fkey2.options.length;
 for(var i=0;i<currentLen;i++){
  if(document.forms[0].fkey2[i].selected){
	addFKeyword(document.forms[0].fkey2[i].text);
 }}
 document.forms[0].fKeywords1.options.length=fkeyArray.length;
 for(var j=0;j<fkeyArray.length;j++){
  document.forms[0].fKeywords1[j].text=fkeyArray[j];
 }
}

function updatefkeywordsL3(){
 var currentLen = document.forms[0].fkey1.options.length;
 for(var i=0;i<currentLen;i++){
  if(document.forms[0].fkey1[i].selected){
	addFKeyword(document.forms[0].fkey1[i].text);
 }}
 document.forms[0].fKeywords1.options.length=fkeyArray.length;
 for(var j=0;j<fkeyArray.length;j++){
  document.forms[0].fKeywords1[j].text=fkeyArray[j];
 }
}

function deletefkeyword(){
 for(var j=0;j<document.forms[0].fKeywords1.length;j++){
  if(document.forms[0].fKeywords1[j].selected){
   document.forms[0].fKeywords1[j]=null;
   fkeyArray.length--;
  }
 }
 for(var m=0;m<document.forms[0].fKeywords1.options.length;m++){
  fkeyArray[m]=document.forms[0].fKeywords1[m].text;
 }
}

