﻿//this file contains all the web page references for the communities section.
//ensure any web page to be included in the CR Report PDF Builder (in the communities section) appears in this list

//The arrays are ordered by chapter. To create a new chapter, copy a whole array and paste it in order of chapter
//If you communitieseate a new chapter, a new checkbox needs to be communitieseated in the CR Report PDF builder form.
//You will also need to hook up the checkbox value to the chapter array by adding a line into the initcommunities() function as outlined at the end of this file.

var communitiesChapter0 =
[
'http://10.5.22.33:31102/responsibility/communities/index.htm',
];

var communitiesChapter1 =
[
'http://10.5.22.33:31102/responsibility/communities/community-investment.htm',
];

var communitiesChapter2 =
[
'http://10.5.22.33:31102/responsibility/communities/employee-involvement.htm',
];

var communitiesChapter3 =
[
'http://10.5.22.33:31102/responsibility/communities/preventing-disease.htm',
'http://10.5.22.33:31102/responsibility/communities/eliminating-lymphatic-filariasis.htm',
'http://10.5.22.33:31102/responsibility/communities/PHASE.htm',
'http://10.5.22.33:31102/responsibility/communities/local-programmes.htm',
'http://10.5.22.33:31102/responsibility/communities/responding-to-disasters-around-the-world.htm',
];

var communitiesChapter4 =
[
'http://10.5.22.33:31102/responsibility/communities/building-community-capacity.htm',
'http://10.5.22.33:31102/responsibility/communities/supporting-healthcare-in-LDCs.htm',
'http://10.5.22.33:31102/responsibility/communities/combating-HIV-AIDS-positive-action.htm',
'http://10.5.22.33:31102/responsibility/communities/combating-malaria-africa-malaria-partnership.htm',
'http://10.5.22.33:31102/responsibility/communities/building-community-capacity-local-programmes.htm',
];

var communitiesChapter5 =
[
'http://10.5.22.33:31102/responsibility/communities/supporting-science-education.htm',
];

//function initcommunities:  loads the contents of the above arrays into the corresponding checkboxes in the CR Report PDF builder form.
//INSTUCTIONS:              Each chapter above needs a corresponding line in this function to associate the PDF files with the correct checkbox.
//e.g:                      document.getElementById('communitiesChapter1').value = communitiesChapter1.join();
//                          - sets the checkbox value with ID 'communitiesChapter1' to the contents of the above 'communitiesChapter1' array.

function initCommunities() {
    document.getElementById('communitiesChapter0').value = communitiesChapter0.join();
	document.getElementById('communitiesChapter1').value = communitiesChapter1.join();
    document.getElementById('communitiesChapter2').value = communitiesChapter2.join();
    document.getElementById('communitiesChapter3').value = communitiesChapter3.join();
    document.getElementById('communitiesChapter4').value = communitiesChapter4.join();
    document.getElementById('communitiesChapter5').value = communitiesChapter5.join();
}
