anchor.diff:  			checkb.innerHTML=""+sname;
   		}
   		
  -		function onSpecimenOrClassChange()
  -		{
  -			var specimenId = document.getElementById("parentSpecimenId");
  -			var classNameElement = document.getElementById("className");
  -			if(specimenId.value != "-1" && classNameElement.value != "-1")
  +		function onRadioButtonClick(element)
  +		{
  +		
  +			if(element.value == 1)
  +			{
  +				document.forms[0].parentSpecimenLabel.disabled = false;
  +				document.forms[0].parentSpecimenBarcode.disabled = true;
  +			}
  +			else
  +			{
  +				document.forms[0].parentSpecimenBarcode.disabled = false;
  +				document.forms[0].parentSpecimenLabel.disabled = true;
  +			}
  +		}		 
  +
  +
  +	   function onClassOrLabelOrBarcodeChange()
  +		{
  +		
  +    var radioArray = document.getElementsByName("checkedButton");
  + 	var flag = "0";
  + 		if (radioArray[0].checked) 
  +		{
  +		  if(document.getElementById("parentSpecimenLabel").value!= "") 
  +		  {
  +			   flag = "1";
  +		  }
  +		} 
  +     else {
  +			if (document.getElementById("parentSpecimenBarcode").value != "") 
  +			{
  +	     	     flag = "1";
  +			}
  +		}
  + 	    	var classNameElement = document.getElementById("className");
  +			if(flag=="1" && classNameElement.value != "-1")
   			{
   		
   				var action = "CreateSpecimen.do?operation=add&pageOf=&menuSelected=15&Change=true";
  
positive.code: 							%>
  						</logic:notEqual>	
  								
  						<ncombo:containermap dataMap="<%=dataMap%>" 
  											attributeNames="<%=attrNames%>" 
  											initialValues="<%=initValues%>"  
  											styleClass = "<%=styClass%>" 
  											tdStyleClass = "<%=tdStyleClass%>" 
  											labelNames="<%=labelNames%>" 
  											rowNumber="<%=rowNumber%>" 
  											onChange="<%=onChange%>" 
  											noOfEmptyCombos = "<%=noOfEmptyCombos%>"
  											buttonName="mapButton" 
  											value="Map"
  											buttonOnClick = "<%=buttonOnClicked%>"
  											formLabelStyle="formLabelBorderless"
  											buttonStyleClass="actionButton" />				
  				</td>
  				<%-- n-combo-box end --%>
  				
  				 </tr>
  
negative.code: 				    <td class="formField" colspan="2">
  <!-- Mandar : 434 : for tooltip -->
  				     	<html:select property="className" styleClass="formFieldSized15" styleId="className" size="1" disabled="<%=readOnlyForAll%>" onchange="onTypeChange(this)"
  						 onmouseover="showTip(this.id)" onmouseout="hideTip(this.id)" onchange="onClassOrLabelOrBarcodeChange()">
  							<html:options collection="<%=Constants.SPECIMEN_CLASS_LIST%>" labelProperty="name" property="value"/>
  						</html:select>
  		        	</td>
  