var Reisen = {
	countParticipants : 0,
	
	addParticipant : function(name) {
		if( this.countParticipants >= 99 )
			return false;
		
		var id = ++this.countParticipants;
		
		name = typeof(name) == "undefined" ? "" : name;
		
		$("#participant").append('<div id="par_' + id + '" class="participant">' +
							'<input type="text" name="name_' + id + '" id="name_' + id + '" value="' + name + '" />' +
							'<a href="javascript:Reisen.removeParticipant(\'par_' + id + '\');" class="del-par">entfernen</a>' +
						'</div>');
	},
	
	removeParticipant : function(elmID) {
		$("#"+elmID).remove();
		
		this.countParticipants--;
	}
};
