anchor.diff:  				if (chkCount >0)
   				{
   					var element = document.getElementsByName(elementName)[0];
  -					element.checked = chkInstance.checked;
  +					if (element.disabled == false)
  +					{
  +						element.checked = chkInstance.checked;
  +					}
   					ctr++;
   				}
   			}
   			while(chkCount>0);
   
   		}
  +		
  +		function UpdateCheckBoxStatus()
  +		{
  +			var checkedSpecimen ='].checkedSpecimen';
  +			var aliquotType = "aliquot[";
  +			var ctr = 0;
  +			if (document.forms[0].chkAllAliquot != null)
  +			{
  +				document.forms[0].chkAllAliquot.disabled = true;
  +				document.forms[0].chkAllAliquot.checked = true;
  +				do
  +				{
  +					var elementName = aliquotType + ctr + checkedSpecimen;
  +					var chkCount= document.getElementsByName(elementName).length;
  +					if (chkCount >0)
  +					{
  +						var element = document.getElementsByName(elementName)[0];
  +						if (element.disabled == false)
  +						{
  +							document.forms[0].chkAllAliquot.disabled = false;							
  +						}
  +						ctr++;
  +					}
  +				}while(chkCount>0);
  +			}
  +			
  +			if (document.forms[0].chkAllAliquot != null)
  +			{
  +				ctr = 0;
  +				var derivedType = "derived[";
  +				document.forms[0].chkAllDerived.disabled = true;
  +				document.forms[0].chkAllDerived.checked = true;
  +				do
  +				{
  +					var elementName = derivedType + ctr + checkedSpecimen;
  +					var chkCount= document.getElementsByName(elementName).length;
  +					if (chkCount >0)
  +					{
  +						var element = document.getElementsByName(elementName)[0];
  +						if (element.disabled == false)
  +						{
  +							document.forms[0].chkAllDerived.disabled = false;							
  +						}
  +						ctr++;
  +					}
  +				}while(chkCount>0);
  +			}		
  +		}
   	</script>
   </head>
  +<body onload="UpdateCheckBoxStatus()">
   
   		<html:errors />
   		<html:messages id="messageKey" message="true" header="messages.header" footer="messages.footer">
  
positive.code: 		
  		<html:form action="<%=formAction%>">		
  		<table>
  		<tr>
  				<td> &nbsp; </td>
  		<td>
  		<table summary="" cellpadding="0" cellspacing="0" border="0">
  				<tr>
  
  					<td class="dataTablePrimaryLabel" height="20">
  
negative.code: 								cellspacing="0" border="0" class="dataTable" >
  					<tr>
  						<th class="formSerialNumberLabelForTable" scope="col" > &nbsp </th>
  						<th class="formSerialNumberLabelForTable" scope="col"><bean:message key="specimen.label"/></th>
  						<th class="formSerialNumberLabelForTable" scope="col"> <bean:message key="specimen.barcode"/></th>
  						<th class="formSerialNumberLabelForTable" scope="col"> <bean:message key="specimen.subType"/></th>
  						<th class="formSerialNumberLabelForTable" scope="col"> <bean:message key="anticipatorySpecimen.Quantity"/></th>
  						<th class="formSerialNumberLabelForTable" scope="col"><bean:message key="anticipatorySpecimen.Concentration"/></th>
  						<th class="formSerialNumberLabelForTable" scope="col"> <bean:message key="anticipatorySpecimen.Location"/></th>
  						<th class="formSerialNumberLabelForTable" scope="col"><bean:message key="anticipatorySpecimen.Collected"/></th>
  						
  					</tr>
  				
  