﻿//this file contains all the web page references for the humanrights section.
//ensure any web page to be included in the CR Report PDF Builder (in the humanrights 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 humanrightseate a new chapter, a new checkbox needs to be humanrightseated 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 inithumanrights() function as outlined at the end of this file.

var humanrightsChapter0 =
[
'http://10.5.22.33:31102/responsibility/human-rights/index.htm',
];

var humanrightsChapter1 =
[
'http://10.5.22.33:31102/responsibility/human-rights/employees.htm',
];

var humanrightsChapter2 =
[
'http://10.5.22.33:31102/responsibility/human-rights/suppliers.htm',
];

var humanrightsChapter3 =
[
'http://10.5.22.33:31102/responsibility/human-rights/communities.htm',
];

var humanrightsChapter4 =
[
'http://10.5.22.33:31102/responsibility/human-rights/society.htm',
];

var humanrightsChapter5 =
[
'http://10.5.22.33:31102/responsibility/human-rights/activities-in-embargoed-countries.htm',
];

//function inithumanrights:  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('humanrightsChapter1').value = humanrightsChapter1.join();
//                          - sets the checkbox value with ID 'humanrightsChapter1' to the contents of the above 'humanrightsChapter1' array.

function initHumanRights() {
    document.getElementById('humanrightsChapter0').value = humanrightsChapter0.join();
	document.getElementById('humanrightsChapter1').value = humanrightsChapter1.join();
    document.getElementById('humanrightsChapter2').value = humanrightsChapter2.join();
    document.getElementById('humanrightsChapter3').value = humanrightsChapter3.join();
    document.getElementById('humanrightsChapter4').value = humanrightsChapter4.join();
    document.getElementById('humanrightsChapter5').value = humanrightsChapter5.join();
}
