
var anzpers = document.getElementById("anzpers").value;
var start = parseInt(anzpers)+1;
//alert(start);

var it;
    document.getElementById("ct_RA010x1").disabled = true;
    document.getElementById("ct_ARA091x1").disabled = true;
         

for (it=1;it<=15;it=it+1) {
        //alert("ct_RA000x"+it+"_1");
    document.getElementById("ct_ARA092x"+it+"")
         .parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none";
    
    document.getElementById("ct_ARA091x"+it+"").addEventListener(
         'change',
        function(){
            if(this.value==2) {
                var res = this.id.substring(10, 12);
            //alert("Wert: "+this.value+"<br>it: "+res);
                document.getElementById("ct_ARA092x"+res+"")
                 .parentNode.parentNode.parentNode.parentNode.parentNode.style.display="block";
                }
            if(this.value==1) {
                var res = this.id.substring(10, 12);
            //alert("Wert: "+this.value+"<br>it: "+res);
                document.getElementById("ct_ARA092x"+res+"")
                 .parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none";
                }
        },
         false
    );
}

for (it=start;it<=15;it=it+1) {
        //alert("ct_RA000x"+it+"_1");
 document.getElementById("ct_RA000x"+it+"_1")
     .parentNode.parentNode.parentNode.parentNode.parentNode
     .parentNode.parentNode.parentNode.parentNode.parentNode
     .parentNode.parentNode.parentNode.parentNode.parentNode
     .parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none";
    }

