﻿//this file contains all the web page references for the supplychain section.
//ensure any web page to be included in the CR Report PDF Builder (in the supplychain 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 supplychaineate a new chapter, a new checkbox needs to be supplychaineated 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 initsupplychain() function as outlined at the end of this file.

var supplychainChapter0 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/index.htm',
];

var supplychainChapter1 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/responsibility-and-our-supply-chain.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/human-rights-clause.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/choosing-suppliers.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/monitoring-and-engagement.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/supply-chain-performance.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/training-and-capacity-building.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/supplier-diversity.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/fair-treatment-of-suppliers.htm',
];

var supplychainChapter2 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/maintaining-quality.htm',
];

var supplychainChapter3 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/security-of-supply.htm',
];

var supplychainChapter4 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/counterfeiting.htm',
'http://10.5.22.33:31102/responsibility/supply-chain/counterfeiting-performance.htm',
];

var supplychainChapter5 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/supply-chain-case-studies.htm',
];

var supplychainChapter6 =
[
'http://10.5.22.33:31102/responsibility/supply-chain/supply-chain-Q&As.htm',
];

//function initsupplychain:  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('supplychainChapter1').value = supplychainChapter1.join();
//                          - sets the checkbox value with ID 'supplychainChapter1' to the contents of the above 'supplychainChapter1' array.

function initSupplyChain() {
    document.getElementById('supplychainChapter0').value = supplychainChapter0.join();
	document.getElementById('supplychainChapter1').value = supplychainChapter1.join();
    document.getElementById('supplychainChapter2').value = supplychainChapter2.join();
    document.getElementById('supplychainChapter3').value = supplychainChapter3.join();
    document.getElementById('supplychainChapter4').value = supplychainChapter4.join();
    document.getElementById('supplychainChapter5').value = supplychainChapter5.join();
    document.getElementById('supplychainChapter6').value = supplychainChapter6.join();
}
