anchor.diff:  	</c:if>
   	<br/><br/>
   	</c:if>
  +	
  +<b class="boxHeader"><spring:message code="Visit.details"/></b>
  +<div class="box">
  +
  +	<c:if test="${visit.visitId != null}">
  +		<div style="float: right">
  +			<openmrs:hasPrivilege privilege="Delete Visits">
  +				<c:if test="${visit.voided == false}">
  +					<c:set var="canDelete" value="${ true }"/>
  +					<input type="button" value='<spring:message code="general.void"/>' onclick="javascript:$j('#delete-dialog').dialog('open')"/>
  +				</c:if>
  +			</openmrs:hasPrivilege>
  +		
  +			<openmrs:hasPrivilege privilege="Purge Visits">
  +				<c:set var="canPurge" value="${ true }"/>
  +				<input type="button" value='<spring:message code="general.purge"/>' onclick="javascript:$j('#purge-dialog').dialog('open')" 
  +				<c:if test="${!canPurgeVisit}"> disabled="disabled" title="<spring:message code="Visit.cannotPurgeVisitWithEncounters"/>"</c:if> />
  +			</openmrs:hasPrivilege>
  +		</div>
  +	</c:if>
  +
   	<table class="left-aligned-th" cellpadding="3" cellspacing="3">
   		<tr>
   			<th>
  
positive.code: 		modal: true
  	});
  
  	$j("#purge-dialog").dialog({
  		autoOpen: false,
  		resizable: false,
  
negative.code: 	}
  </style>
  
  <spring:hasBindErrors name="visit">
  	<spring:message code="fix.error"/>
  	<div class="error">
  