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) {
        console.log("ct_RA000x"+it+"_1");
        //alert("ct_RA000x"+it+"_1");
    if (document.getElementById("ct_ARA091x"+it+"").value!=2) {
        document.getElementById("ct_ARA092x"+it+"")
         .parentNode.parentNode.parentNode.parentNode.parentNode.style.display="none";
    }
    $("#ct_RA000x"+it+"_1").width("300px");
    //document.getElementById("ct_RA020x"+it+"").style["width"] = "90px";
    //document.getElementById("ct_RA030x"+it+"").style["width"] = "70px";
    //document.getElementById("ct_RA010x"+it+"").style["width"] = "220px";
    //document.getElementById("ct_ARA091x"+it+"").style["width"] = "60px";
    //document.getElementById("ct_ARA092x"+it+"").style["width"] = "50px";
        console.log("Bis hier her");
    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";
    }
    
var textboxes = document.querySelectorAll('input[typ="text"]');
var num = textboxes.length;

