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