function fillForm( id, z, z2 ){
 var dropdown1 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoart : this.document.Forms["ImmobilienSuche"].elements["immoart"];
 var dropdown2 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.gemeinde : this.document.Forms["ImmobilienSuche"].elements["gemeinde"];
 
 var dropdown3 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche : this.document.Forms["ImmobilienSuche"].elements["immoflaeche"];
 var dropdown4 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete : this.document.Forms["ImmobilienSuche"].elements["immomiete"];

 var dropdown5 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche2 : this.document.Forms["ImmobilienSuche"].elements["immoflaeche2"];
 var dropdown6 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete2 : this.document.Forms["ImmobilienSuche"].elements["immomiete2"];

 var dropdown7 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche3 : this.document.Forms["ImmobilienSuche"].elements["immoflaeche3"];
 var dropdown8 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete3 : this.document.Forms["ImmobilienSuche"].elements["immomiete3"];

 var dropdown9 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immozimmer : this.document.Forms["ImmobilienSuche"].elements["immozimmer"];

 var dropdown10 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche4 : this.document.Forms["ImmobilienSuche"].elements["immoflaeche4"];
 var dropdown11 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete4 : this.document.Forms["ImmobilienSuche"].elements["immomiete4"];

 var dropdown12 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche5 : this.document.Forms["ImmobilienSuche"].elements["immoflaeche5"];
 var dropdown13 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete5 : this.document.Forms["ImmobilienSuche"].elements["immomiete5"];

 var dropdown14 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche6 : this.document.Forms["ImmobilienSuche"].elements["immoflaeche6"];
 var dropdown15 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete6 : this.document.Forms["ImmobilienSuche"].elements["immomiete6"];

 var dropdown16 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immoflaeche7 : this.document.Forms["ImmobilienSuche"].elements["immoflaeche7"];
 var dropdown17 = this.document.ImmobilienSuche ? this.document.ImmobilienSuche.immomiete7 : this.document.Forms["ImmobilienSuche"].elements["immomiete7"];


 if (dropdown1) {
    for( var i = 0; i<dropdown1.length; i++ ){
        if( dropdown1[i].value == id ){
            dropdown1.selectedIndex = i;
        }
    }
 }

 var feldneu = z.split(";");
 
 if( dropdown2 ){
    for( var i = 0; i<dropdown2.length; i++ ){
        if( dropdown2[i].value == feldneu[0] ){
            dropdown2.selectedIndex = i;
        }
    }
 }
 if (dropdown9) {
     if (feldneu.length > 1) {
         for (var i = 0; i < dropdown9.length; i++) {
             if (dropdown9[i].value == feldneu[1]) {
                 dropdown9.selectedIndex = i;
             }
         }
     }
}


var feld = z2.split(";");
if (dropdown3) {
    if (feld.length > 0) {
        for (var i = 0; i < dropdown3.length; i++) {
            if (dropdown3[i].value == feld[0]) {
                dropdown3.selectedIndex = i;
            }
        }
    }
}
if (dropdown4) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown4.length; i++) {
            if (dropdown4[i].value == feld[1]) {
                dropdown4.selectedIndex = i;
            }
        }
    }
}

if (dropdown5) {
    if (feld.length > 0) {
        for (var i = 0; i < dropdown5.length; i++) {
            if (dropdown5[i].value == feld[0]) {
                dropdown5.selectedIndex = i;
            }
        }
    }
}
if (dropdown6) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown6.length; i++) {
            if (dropdown6[i].value == feld[1]) {
                dropdown6.selectedIndex = i;
            }
        }
    }
}

if (dropdown7) {
    if (feld.length > 0) {
        for (var i = 0; i < dropdown7.length; i++) {
            if (dropdown7[i].value == feld[0]) {
                dropdown7.selectedIndex = i;
            }
        }
    }
}
if (dropdown8) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown8.length; i++) {
            if (dropdown8[i].value == feld[1]) {
                dropdown8.selectedIndex = i;
            }
        }
    }
}


if (dropdown10) {
    if (feld.length > 0) {
        for (var i = 0; i < dropdown10.length; i++) {
            if (dropdown10[i].value == feld[0]) {
                dropdown10.selectedIndex = i;
            }
        }
    }
}
if (dropdown11) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown11.length; i++) {
            if (dropdown11[i].value == feld[1]) {
                dropdown11.selectedIndex = i;
            }
        }
    }
}
if (dropdown12) {
    if (feld.length > 0) {
        for (var i = 0; i < dropdown12.length; i++) {
            if (dropdown12[i].value == feld[0]) {
                dropdown12.selectedIndex = i;
            }
        }
    }
}
if (dropdown13) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown13.length; i++) {
            if (dropdown13[i].value == feld[1]) {
                dropdown13.selectedIndex = i;
            }
        }
    }
}

if (dropdown14) {
    if (feld.length > 0) {
        for (var i = 0; i < dropdown14.length; i++) {
            if (dropdown14[i].value == feld[0]) {
                dropdown14.selectedIndex = i;
            }
        }
    }
}
if (dropdown15) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown15.length; i++) {
            if (dropdown15[i].value == feld[1]) {
                dropdown15.selectedIndex = i;
            }
        }
    }
}

if (dropdown16) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown16.length; i++) {
            if (dropdown16[i].value == feld[0]) {
                dropdown16.selectedIndex = i;
            }
        }
    }
}

if (dropdown17) {
    if (feld.length > 1) {
        for (var i = 0; i < dropdown17.length; i++) {
            if (dropdown17[i].value == feld[1]) {
                dropdown17.selectedIndex = i;
            }
        }
    }
}

  
 
}
