anchor.diff:  		
   		for (var i in inputs)
   			if (inputs[i] && inputs[i].name == "preferred") {
  -				inputs[i].checked = (pref == true);
  +				inputs[i].checked = (pref == true ? 'checked' : '');
   				inputs[i].value = id + type;
   			}
   		
  
positive.code: 						inputs[i].parentNode.removeChild(inputs[i]);
  					}
  				}
  			}	
  		}
  		if (type) {
  			for (var i in selects)
  
negative.code: 				</tbody>
  			</table>
  			<script type="text/javascript">
  				var atLeastOneIdentifierAdded = false;
  				<c:forEach items="${identifiers}" var="id">
  					addIdentifier("<c:out value="${id.identifier}"/>", "${id.identifierType.patientIdentifierTypeId}", "${id.location.locationId}", ${id.preferred}, ${id.dateCreated != null});
  					atLeastOneIdentifierAdded = true;
  				</c:forEach>
  			</script>
  			<input type="button" class="smallButton" onclick="addIdentifier(null, null, null, false, null)" value="<spring:message code="PatientIdentifier.add" />" hidefocus />
  		</td>
  	</tr>
  	<tr>
  