﻿//this file contains all the web page references for the ethicalconduct section.
//ensure any web page to be included in the CR Report PDF Builder (in the ethicalconduct 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 ethicalconducteate a new chapter, a new checkbox needs to be ethicalconducteated 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 initethicalconduct() function as outlined at the end of this file.

var ethicalconductChapter0 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/index.htm',
];

var ethicalconductChapter1 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/code-of-conduct-business-ethics.htm',
];

var ethicalconductChapter2 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/interactions-marketing-ethics.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/interactions-with-healthcare-professionals.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/interactions-with-healthcare-professionals-performance.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/direct-to-consumer-advertising.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/direct-to-consumer-advertising-performance.htm',
];

var ethicalconductChapter3 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/training-awareness.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/leading-by-example.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/training-awareness-performance-plans.htm',
];

var ethicalconductChapter4 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/monitoring-and-compliance.htm',
'http://10.5.22.33:31102/responsibility/ethical-conduct/monitoring-compliance-performance-plans.htm',
];

var ethicalconductChapter5 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/case-studies.htm',
];

var ethicalconductChapter6 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/assurance-statement.htm',
];

var ethicalconductChapter7 =
[
'http://10.5.22.33:31102/responsibility/ethical-conduct/QAs.htm',
];


//function initethicalconduct:  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('ethicalconductChapter1').value = ethicalconductChapter1.join();
//                          - sets the checkbox value with ID 'ethicalconductChapter1' to the contents of the above 'ethicalconductChapter1' array.

function initEthicalConduct() {
    document.getElementById('ethicalconductChapter0').value = ethicalconductChapter0.join();
	document.getElementById('ethicalconductChapter1').value = ethicalconductChapter1.join();
    document.getElementById('ethicalconductChapter2').value = ethicalconductChapter2.join();
    document.getElementById('ethicalconductChapter3').value = ethicalconductChapter3.join();
    document.getElementById('ethicalconductChapter4').value = ethicalconductChapter4.join();
    document.getElementById('ethicalconductChapter5').value = ethicalconductChapter5.join();
    document.getElementById('ethicalconductChapter6').value = ethicalconductChapter6.join();
	document.getElementById('ethicalconductChapter7').value = ethicalconductChapter7.join();
}
