3 function InitSection(){
\r
4 var i; // elements iterator
\r
6 var l = document.my_form.elements.length;
\r
8 if ( document.my_form.elements[i].type == "checkbox" ){
\r
9 if (( document.my_form.elements[i].name.indexOf("negativ") != -1 ) && ( document.my_form.elements[i].name.indexOf("ros_") != -1 ))
\r
11 eval ("document.my_form.elements[i].onclick = function() { ToggleSection('"
\r
12 + document.my_form.elements[i].name.substring(0,document.my_form.elements[i].name.indexOf('_negati'))
\r
13 +"', document.my_form."+document.my_form.elements[i].name+".checked); }");
\r
18 if ( document.my_form.elements[i].type == "checkbox" ){
\r
19 if (( document.my_form.elements[i].name.indexOf("negativ") != -1 ) && ( document.my_form.elements[i].name.indexOf("ros_") != -1 ))
\r
21 if (document.my_form.elements[i].checked == true){
\r
22 ToggleSection(document.my_form.elements[i].name.substring(0,document.my_form.elements[i].name.indexOf('_negati')), true);
\r
31 function ToggleSection(section,flag){
\r
33 var mf = eval('document.my_form');
\r
34 var l = mf.elements.length;
\r
37 if ( mf.elements[i].type == "checkbox" ){
\r
38 if (( mf.elements[i].name.indexOf(section) == 0 ) && ( mf.elements[i].name.indexOf("negativ") == -1 ))
\r
40 //mf.elements[i].checked = false;
\r
41 mf.elements[i].disabled = flag;
\r