anchor.diff:  	</openmrs:extensionPoint>
   </c:if>
   
  -<script type="text/javascript">
  -	$('obsTable').style.visibility = 'visible';
  -</script>
   <div id="moreInfoPopup"></div>
   <%@ include file="/WEB-INF/template/footer.jsp"%>
positive.code: <%@ include file="localHeader.jsp"%>
  
  <openmrs:htmlInclude file="/scripts/calendar/calendar.js" />
  <openmrs:htmlInclude file="/scripts/dojo/dojo.js" />
  <%@ include
  	file="/WEB-INF/view/module/radiology/resources/js/moreInfo.js"%>
  
  <script type="text/javascript">
  	dojo.require("dojo.widget.openmrs.ConceptSearch");
  	dojo.require("dojo.widget.openmrs.EncounterSearch");
  	dojo.require("dojo.widget.openmrs.OpenmrsPopup");
  
  	var encounterSearch;
  	var encounterSelection;
  	var conceptSearch;
  	var conceptSelection;
  	var codedSearch;
  	var codedSelection;
  
  	dojo
  			.addOnLoad(function() {
  				encounterSelection = dojo.widget.manager
  						.getWidgetById("encounterSelection");
  				encounterSearch = dojo.widget.manager.getWidgetById("eSearch");
  				conceptSelection = dojo.widget.manager
  						.getWidgetById("conceptSelection");
  				conceptSearch = dojo.widget.manager.getWidgetById("cSearch");
  				codedSelection = dojo.widget.manager
  						.getWidgetById("codedSelection");
  				codedSearch = dojo.widget.manager.getWidgetById("codedSearch");
  
  				dojo.event.topic
  						.subscribe(
  								"eSearch/select",
  								function(msg) {
  									var encounterSearch = dojo.widget.manager
  											.getWidgetById("eSearch");
  									encounterSelection.hiddenInputNode.value = msg.objs[0].encounterId;
  									encounterSelection.displayNode.innerHTML = msg.objs[0].location
  											+ " - "
  											+ encounterSearch
  													.getDateString(msg.objs[0].encounterDateTime);
  								});
  
  				dojo.event.topic
  						.subscribe(
  								"cSearch/select",
  								function(msg) {
  									var conceptSelection = dojo.widget.manager
  											.getWidgetById("conceptSelection");
  									conceptSelection.hiddenInputNode.value = msg.objs[0].conceptId;
  									conceptSelection.displayNode.innerHTML = msg.objs[0].name;
  									conceptSelection.descriptionDisplayNode.innerHTML = msg.objs[0].description;
  									updateObsValues(msg.objs[0]);
  								});
  
  				dojo.event
  						.connect(
  								codedSelection,
  								"onChangeButtonClick",
  								function() {
  									var codedSearch = dojo.widget.manager
  											.getWidgetById("codedSearch");
  									var conceptId = conceptSelection.hiddenInputNode.value;
  									DWRConceptService.findConceptAnswers('',
  											conceptId, false, true, codedSearch
  													.simpleClosure(codedSearch,
  															'doObjectsFound'));
  								});
  
  				dojo.event.topic
  						.subscribe(
  								"codedSearch/select",
  								function(msg) {
  									var obj = msg.objs[0];
  									var codedSelection = dojo.widget.manager
  											.getWidgetById("codedSelection");
  									if (obj.drugId) {
  										codedSelection.displayNode.innerHTML = obj.fullName;
  										codedSelection.descriptionDisplayNode.innerHTML = "";
  										codedSelection.hiddenInputNode.value = obj.conceptId;
  										$('valueDrugId').value = obj.drugId;
  									} else if (obj.conceptId) {
  										codedSelection.displayNode.innerHTML = obj.name;
  										codedSelection.descriptionDisplayNode.innerHTML = obj.description;
  										codedSelection.hiddenInputNode.value = obj.conceptId;
  									}
  
  								});
  
  				codedSearch.doFindObjects = function(txt) {
  					var codedSearch = dojo.widget.manager
  							.getWidgetById("codedSearch");
  					var codedSelection = dojo.widget.manager
  							.getWidgetById("codedSelection");
  					var conceptId = codedSelection.conceptId;
  					DWRConceptService.findConceptAnswers(txt, conceptId, false,
  							true, codedSearch.simpleClosure(codedSearch,
  									'doObjectsFound'));
  				}
  
  				dojo.event.topic
  						.subscribe(
  								"codedSearch/objectsFound",
  								function(msg) {
  									msg.objs
  											.push('<a href="#proposeConcept" onclick="javascript:return showProposeConceptForm();"><spring:message code="ConceptProposal.propose.new"/></a>');
  								});
  
  				<c:if test="${obs.concept.conceptId == null}">
  				updateObsValues();
  				</c:if>
  
  				$('obsTable').style.visibility = 'visible';
  
  			});
  
  	function showProposeConceptForm() {
  		var qs = "?";
  		var encounterId = "${obs.encounter.encounterId}"
  				|| $("encounterId").value;
  		if (encounterId != "")
  			qs += "&encounterId=" + encounterId;
  		var obsConceptId = "${obs.concept.conceptId}" || $("conceptId").value
  		if (obsConceptId != "")
  			qs += "&obsConceptId=" + obsConceptId;
  		document.location = "${pageContext.request.contextPath}/admin/concepts/proposeConcept.form"
  
negative.code: 	}
  
  	function fillNumericUnits(units) {
  		$j('#numericUnits').html(units);
  	}
  
  	function validateNumericRange(value) {
  		if (!isNaN(value) && value != '') {
  			var conceptId = $j("#conceptId").val();
  			var numericErrorMessage = function(validValue) {
  				var errorTag = document.getElementById('numericRangeError');
  				errorTag.className = "error";
  				if (validValue == false)
  					errorTag.innerHTML = '<openmrs:message code="ConceptNumeric.invalid.msg"/>';
  				else
  					errorTag.innerHTML = errorTag.className = "";
  			}
  