subwordinfo = new Array( new Array( new Array("Select a subsector", ""), new Array("Academic research", "Academic research"), new Array("Access, quality and management", "Access, quality and management"), new Array("Acquis communitaire", "Acquis communitaire"), new Array("Agriculture and forestry", "Agriculture and forestry"), new Array("Air pollution reduction", "Air pollution reduction"), new Array("Biodiversity", "Biodiversity"), new Array("Cancer diagnosis and treatment", "Cancer diagnosis and treatment"), new Array("Capacity building", "Capacity building"), new Array("Childcare", "Childcare"), new Array("Communicable diseases, such as HIV/TB and epidemiological surveillance systems", "Communicable diseases, such as HIV/TB and epidemiological surveillance systems"), new Array("Conservation of immovable cultural heritage including urban renewal", "Conservation of immovable cultural heritage including urban renewal"), new Array("Conservation of movable cultural heritage including museums and cultural institutions", "Conservation of movable cultural heritage including museums and cultural institutions"), new Array("Cross border", "Cross border"), new Array("Education", "Education"), new Array("Environmental monitoring and geographic information systems", "Environmental monitoring and geographic information systems"), new Array("European cultural heritage - General", "European cultural heritage - General"), new Array("Hazardous Substances", "Hazardous Substances"), new Array("Health and childcare - General", "Health and childcare - General"), new Array("Health promotion", "Health promotion"), new Array("Human resource development - General", "Human resource development - General"), new Array("Immigration including customs and border issues", "Immigration including customs and border issues"), new Array("Inclusion of disadvantaged groups", "Inclusion of disadvantaged groups"), new Array("Intangible cultural heritage", "Intangible cultural heritage"), new Array("Integrated pollution prevention and control", "Integrated pollution prevention and control"), new Array("Judiciary, rule of law and human rights", "Judiciary, rule of law and human rights"), new Array("Mainstream gender equality", "Mainstream gender equality"), new Array("Mental health", "Mental health"), new Array("Noise reduction", "Noise reduction"), new Array("Organised crime including trafficking", "Organised crime including trafficking"), new Array("Prevention and fight against addictions", "Prevention and fight against addictions"), new Array("Prevention of and Treatment of rare diseases", "Prevention of and Treatment of rare diseases"), new Array("Prison system including correctional facilities and services", "Prison system including correctional facilities and services"), new Array("Protection of environment - General", "Protection of environment - General"), new Array("Public transport / accessibility", "Public transport / accessibility"), new Array("Regional policy", "Regional policy"), new Array("Renewable energy, energy efficiency and reduction of greenhouse gasses", "Renewable energy, energy efficiency and reduction of greenhouse gasses"), new Array("Schengen implementation", "Schengen implementation"), new Array("Social / family issues", "Social / family issues"), new Array("Sustainable development", "Sustainable development"), new Array("Technical assistance for grant management", "Technical assistance for grant management"), new Array("Waste management", "Waste management"), new Array("Water pollution reduction and water management", "Water pollution reduction and water management"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Academic research", "Academic research"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Conservation of immovable cultural heritage including urban renewal", "Conservation of immovable cultural heritage including urban renewal"), new Array("Conservation of movable cultural heritage including museums and cultural institutions", "Conservation of movable cultural heritage including museums and cultural institutions"), new Array("Education", "Education"), new Array("European cultural heritage - General", "European cultural heritage - General"), new Array("Intangible cultural heritage", "Intangible cultural heritage"), new Array("Public transport / accessibility", "Public transport / accessibility"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Agriculture and forestry", "Agriculture and forestry"), new Array("Air pollution reduction", "Air pollution reduction"), new Array("Biodiversity", "Biodiversity"), new Array("Education", "Education"), new Array("Environmental monitoring and geographic information systems", "Environmental monitoring and geographic information systems"), new Array("Hazardous Substances", "Hazardous Substances"), new Array("Integrated pollution prevention and control", "Integrated pollution prevention and control"), new Array("Noise reduction", "Noise reduction"), new Array("Protection of environment - General", "Protection of environment - General"), new Array("Renewable energy, energy efficiency and reduction of greenhouse gasses", "Renewable energy, energy efficiency and reduction of greenhouse gasses"), new Array("Sustainable development", "Sustainable development"), new Array("Waste management", "Waste management"), new Array("Water pollution reduction and water management", "Water pollution reduction and water management"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Access, quality and management", "Access, quality and management"), new Array("Cancer diagnosis and treatment", "Cancer diagnosis and treatment"), new Array("Childcare", "Childcare"), new Array("Communicable diseases, such as HIV/TB and epidemiological surveillance systems", "Communicable diseases, such as HIV/TB and epidemiological surveillance systems"), new Array("Education", "Education"), new Array("Health and childcare - General", "Health and childcare - General"), new Array("Health promotion", "Health promotion"), new Array("Mental health", "Mental health"), new Array("Prevention and fight against addictions", "Prevention and fight against addictions"), new Array("Prevention of and Treatment of rare diseases", "Prevention of and Treatment of rare diseases"), new Array("Social / family issues", "Social / family issues"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Capacity building", "Capacity building"), new Array("Education", "Education"), new Array("Human resource development - General", "Human resource development - General"), new Array("Inclusion of disadvantaged groups", "Inclusion of disadvantaged groups"), new Array("Mainstream gender equality", "Mainstream gender equality"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Cross border", "Cross border"), new Array("Regional policy", "Regional policy"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Education", "Education"), new Array("Immigration including customs and border issues", "Immigration including customs and border issues"), new Array("Judiciary, rule of law and human rights", "Judiciary, rule of law and human rights"), new Array("Organised crime including trafficking", "Organised crime including trafficking"), new Array("Prison system including correctional facilities and services", "Prison system including correctional facilities and services"), new Array("Schengen implementation", "Schengen implementation"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Acquis communitaire", "Acquis communitaire"), new Array("All Subsectors", "") ), new Array( new Array("Select a subsector", ""), new Array("Technical assistance for grant management", "Technical assistance for grant management"), new Array("All Subsectors", "") ), new Array() ); function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) { var i, j; var prompt; // empty existing items for (i = selectCtrl.options.length; i >= 0; i--) { selectCtrl.options[i] = null; } prompt = (itemArray != null) ? goodPrompt : badPrompt; if (prompt == null) { j = 0; } else { selectCtrl.options[0] = new Option(prompt); j = 1; } if (itemArray != null) { // add new items for (i = 0; i < itemArray.length; i++) { selectCtrl.options[j] = new Option(itemArray[i][0]); if (itemArray[i][1] != null) { selectCtrl.options[j].value = itemArray[i][1]; } j++; } // select first item (prompt) for sub list selectCtrl.options[0].selected = true; } }