anchor.diff:  					$row.addClass("disabled");
   				}
   			});
  +			function reIndex($obj, index) {
  +				$obj.find('.unlock').each(function() {
  +					this.name = this.name.replace('{index}', index);
  +				});
  +				$obj.find('label').each(function() {
  +					this.htmlFor = this.htmlFor.replace('{index}', index);
  +				});
  +				var rkid = $obj.find('input[type="checkbox"]')[0];
  +				rkid.id  = rkid.id.replace('{index}', index);
  +				// default dropdown to "E"
  +				$obj.find('select').val('E');
  +			}
   			$('#addrk').on("click", function() {
   				var $src = $('#rk option').filter(':selected');
   				var $row = $('#tmpl-allg tr').clone();
   				var idx  = $('#tbl-rk tbody tr').length;
  -				// replace {index}
  -				$row.find('.unlock').each(function(){
  -					this.name = this.name.replace('{index}', idx);
  -				});
  -				var lbl  = $row.find('label')[0];
  -				lbl.htmlFor = lbl.htmlFor.replace('{index}', idx);
  -				lbl.textContent = $src.data("long");
  -				var rkid = $row.find('input[type="checkbox"]')[0];
  -				rkid.id  = rkid.id.replace('{index}', idx);
  -				// default dropdown to "E"
  -				$row.find('select').val('E');
  +				reIndex($row, idx);
  +				$row.find('label').text($src.data("long"));
   				// set values
   				$row.find('.short').val($src.data("short"));
   				$row.find('.long').val($src.data("long"));
  
positive.code: 				var $src = $('#rkz option').filter(':selected');
  				var $row = $('#tmpl-tanz tr').clone();
  				var idx  = $('#tbl-rk tbody tr').length;
  				// replace {index}
  				$row.find('.unlock').each(function(){
  					this.name = this.name.replace('{index}', idx);
  				});
  				$row.find('label').each(function(){
  					this.htmlFor = this.htmlFor.replace('{index}', idx);
  				});
  				var rkid = $row.find('input[type="checkbox"]')[0];
  				rkid.id  = rkid.id.replace('{index}', idx);
  				// default dropdown to "E"
  				$row.find('select').val('E');
  				// set values
  				$row.find('.short').val($src.data("rep-short"));
  				$row.find('input.long').val($src.data("rep-long"));
  
negative.code: 			}
  			tfoot select {
  				width: 50%;
  			}
  			#tbl-tmpl {
  				display: none;
  			}
  			tfoot tr {
  				background-color: #eee;
  			}
  	body
  		a#top
  