anchor.diff:  			
              
   			var temp = "<%=frdTo%>";
  +			<%String forwardToValue = "PrintSpecimenAdd";%>
   			//Bug ID: 4040(Virender)
   			if(checked)
   			{
  -				<% String actionToCall = null;%>
  +				<% String actionToCall = null;
  +				
  +				   %>
   				if(operation == "add")
   				{
  -				  if(temp == "orderDetails")
  +					<%actionToCall = "NewSpecimenAdd.do";
  +					if(pageOf.equals(Constants.PAGE_OF_SPECIMEN_CP_QUERY))
   					{
  -						setSubmitted('ForwardTo','CPQueryPrintSpecimenAdd','orderDetails');
  +					  	actionToCall = Constants.CP_QUERY_SPECIMEN_ADD_ACTION;
  +						forwardToValue = "CPQueryPrintSpecimenAdd";
  +					}%>
  +					
  +				    if(temp == "orderDetails")
  +					{
  +						setSubmitted('ForwardTo','<%=forwardToValue%>','orderDetails');
   					}
   					else
   					{
   					   
  -						setSubmitted('ForwardTo','CPQueryPrintSpecimenAdd','pageOfCreateAliquot');
  +						setSubmitted('ForwardTo','<%=forwardToValue%>','pageOfCreateAliquot');
                       }
  +									
  +					confirmDisable('<%=actionToCall%>',document.forms[0].activityStatus);
  +				}
  +				else
  +				{
   					<%
  -					actionToCall = "NewSpecimenAdd.do";
  +					actionToCall = "NewSpecimenEdit.do";
  +					forwardToValue = "PrintSpecimenEdit";
   					if(pageOf.equals(Constants.PAGE_OF_SPECIMEN_CP_QUERY))
   					{
  -					  	actionToCall = Constants.CP_QUERY_SPECIMEN_ADD_ACTION;
  +						actionToCall = Constants.CP_QUERY_SPECIMEN_EDIT_ACTION;
  +                        forwardToValue = "CPQueryPrintSpecimenEdit";
  +                    
   					}%>
  -					
  -					confirmDisable('<%=actionToCall%>',document.forms[0].activityStatus);
  -				}
  -				else
  -				{
  +				
   					if(temp == "orderDetails")
   					{
  -						setSubmitted('ForwardTo','CPQueryPrintSpecimenEdit','orderDetails');
  +						setSubmitted('ForwardTo','<%=forwardToValue%>','orderDetails');
   					}
   					else
   					{
  -						setSubmitted('ForwardTo','CPQueryPrintSpecimenEdit','pageOfCreateAliquot');
  +						setSubmitted('ForwardTo','<%=forwardToValue%>','pageOfCreateAliquot');
   					}
  -					<%
  -					actionToCall = "NewSpecimenEdit.do";
  -					if(pageOf.equals(Constants.PAGE_OF_SPECIMEN_CP_QUERY))
  -					{
  -						actionToCall = Constants.CP_QUERY_SPECIMEN_EDIT_ACTION;
  -                    
  -					}%>
  +					
   					
   					confirmDisable('<%=actionToCall%>',document.forms[0].activityStatus);
   				}
  
positive.code: 						var printFlag = document.getElementById("printCheckbox");				
  			            if(printFlag.checked)
  					    {
  							<% 	cpChildSubmitAction = "CPQueryPrintSpecimenEdit"; %> 							
  					    }	
  						setSubmitted("ForwardTo","<%=cpChildSubmitAction%>","cpChildSubmit");
  						confirmDisable("<%=actionToCall%>","document.forms[0].activityStatus");
  
negative.code: 				{
  					if(operation == "add")
  					{
  						<%
  						actionToCall = "NewSpecimenAdd.do";
  						forwardToValue = "PrintSpecimenAdd";
  						if(pageOf.equals(Constants.PAGE_OF_SPECIMEN_CP_QUERY))
  						{
  							actionToCall = Constants.CP_QUERY_SPECIMEN_ADD_ACTION;
  						}%>
  					
  						if(temp == "orderDetails")
  						{
  						   	setSubmitted('ForwardTo','<%=forwardToValue%>','orderDetails');
  						}
  						else
  						{
  							setSubmitted('null','<%=forwardToValue%>','success');
  						}
  						
  						if(document.forms[0].nextForwardTo.value!=null)
  						{
  						 confirmDisable('<%=actionToCall%>'+"?nextForwardTo="+document.forms[0].nextForwardTo.value,document.forms[0].activityStatus);
  