
            function addParticipant(x)
            {
                var content = '<table cellspacing="0" cellpadding="0" border="0" id="showParticipant_' + x + '"><tr><th colspan="3">Teilnehmer '+ (x+1) +'</th></tr><tr class="three"><td><select name="additionalParticipants['+x+'][Name_Prefix]" id="anrede'+x+'"><option value="1">Herr</option><option value="2" >Frau</option></select><label for="anrede'+x+'">Anrede<span class="star">*</span></label></td><td><input type="text" id="vorname'+x+'" name="additionalParticipants['+x+'][Name_First]" value="" /><label for="vorname'+x+'">Vorname<span class="star">*</span></label></td><td class="last"><input  type="text" id="nachname'+x+'" name="additionalParticipants['+x+'][Name_Last]" value="" /><label for="nachname'+x+'">Name<span class="star">*</span></label></td></tr><tr class="one"><td colspan="3"><input type="text" id="email'+x+'" name="additionalParticipants['+x+'][Online_Email]" value="" /><label for="email'+x+'">E-Mail-Adresse</label></td></tr></table>';
                $('participants').insert( content );

                $('add_link').setAttribute('href', 'javascript:addParticipant(' + (x+1) + ');');

                $('rem_link').setAttribute('href', 'javascript:removeParticipant(' + (x) + ');');
                $('rem_link').style.display = "block";
            }

            function removeParticipant(x)
            {
                var id = "showParticipant_" + x;
                $(id).remove();

                $('add_link').setAttribute('href', 'javascript:addParticipant(' + (x) + ');');

                $('rem_link').setAttribute('href', 'javascript:removeParticipant(' + (x-1) + ');');

                if (x == 2) {
                    $('rem_link').hide();
                }

                $('only_read_participants_to').value = x-1;
            }

            function checkRechnungsadresse()
            {
               if ($('rechnungsadresse_onoff').style.display == 'none') {
                   $('rechnungsadresse_onoff').show();
                   $('diesist').hide();
               } else {
                   $('rechnungsadresse_onoff').hide();
                   $('diesist').show();
               }
            }

            function hotelManager(disableWeitereUebernachtung)
            {
               if ($('hotel').checked==true) {
                   $('anzahl_hotelzimmer').disable();
                   if (disableWeitereUebernachtung != 1)
                       $('weitere_uebernachtung').disable();
                   $('raucher').disable();
               } else {
                   $('anzahl_hotelzimmer').enable();
                   if (disableWeitereUebernachtung != 1)
                       $('weitere_uebernachtung').enable();
                   $('raucher').enable();
               }
            }
        
