anchor.diff:  			onCollOrClassChange();
   		}
   	}
  -	function onAddToCart()
  +	/* 
  +	    Added separate mappings for pages opened from CP based view(without menubar) and 
  +	    Biospecimen data -> Specimen (with menubar)
  +	*/
  +	
  +    function onAddToCart()
   	{
  -	    <% String actionToCall1 = "NewSpecimenEdit.do";%>
  -	  	 if(document.getElementById("aliquotChk").checked == true)
  +	    <% String actionToCall1 = "NewSpecimenEdit.do";
  +	       String nextForwardToForAddToCart = "";
  +	       String forwardToPath = "";
  +	    %>
  +	    var operation = document.forms[0].operation.value;
  +	    if(document.getElementById("aliquotChk").checked == true)
   		 {
  -			 setSubmittedFor("ForwardTo",'addSpecimenToCartForwardtoAliquot');					   
  +	    	<%forwardToPath = "addSpecimenToCartForwardtoAliquot";
  +	  			if(pageOf == (Constants.PAGE_OF_SPECIMEN_CP_QUERY))
  +	  			{
  +	  				nextForwardToForAddToCart = "pageOfCreateAliquot";	 					
  +	  			}
  +	  			else
  +	  			{
  +	  				nextForwardToForAddToCart = "pageOfCreateAliquotSpecimenEdit"; 
  +					
  +	  			}%>
  +			   setSubmittedForAddToMyList("ForwardTo",'<%=forwardToPath%>','<%=nextForwardToForAddToCart%>');      					   
   		 }
   		else if(document.getElementById("deriveChk").checked == true)
   		{
  -			 setSubmittedForAddToMyList("ForwardTo",'addSpecimenToCartForwardtoDerive','success');
  +			<%forwardToPath = "addSpecimenToCartForwardtoDerive";
  +			   if(pageOf == (Constants.PAGE_OF_SPECIMEN_CP_QUERY))
  +	  			{
  +	  				nextForwardToForAddToCart = "createNew";						
  +	  			}
  +	  			else
  +	  			{
  +	  				nextForwardToForAddToCart = "createNewDerivative";					
  +	  			}%>
  +               setSubmittedForAddToMyList("ForwardTo",'<%=forwardToPath%>','<%=nextForwardToForAddToCart%>');             
   		}
   		else if(document.getElementById("createCpChildCheckBox").checked == true)
   		{
  -			setSubmittedForAddToMyList("ForwardTo",'addSpecimenToCartForwardtoCpChild','success');
  +			<%forwardToPath = "addSpecimenToCartForwardtoCpChild";
  +			
  +			 if(pageOf == (Constants.PAGE_OF_SPECIMEN_CP_QUERY))
  +	  			{
  +	  				nextForwardToForAddToCart = "CPQuerycpChildSubmit";	 					
  +	  			}
  +	  			else
  +	  			{
  +	  				nextForwardToForAddToCart = "cpChildSubmit";   				
  +	  			}%>
  +               setSubmittedForAddToMyList("ForwardTo",'<%=forwardToPath%>','<%=nextForwardToForAddToCart%>'); 			
   		}
   		else
   		{
  
positive.code: 				{
  					if(operation == "add")
  					{
  						if(temp == "orderDetails")
  						{
  						   	setSubmitted('ForwardTo','CPQueryPrintSpecimenAdd','orderDetails');
  						}
  						else
  						{
  							setSubmitted('null','CPQueryPrintSpecimenAdd','success');
  						}
  						<%
  						actionToCall = "NewSpecimenAdd.do";
  						if(pageOf.equals(Constants.PAGE_OF_SPECIMEN_CP_QUERY))
  						{
  							actionToCall = Constants.CP_QUERY_SPECIMEN_ADD_ACTION;
  						}%>
  						if(document.forms[0].nextForwardTo.value!=null)
  						{
  						 confirmDisable('<%=actionToCall%>'+"?nextForwardTo="+document.forms[0].nextForwardTo.value,document.forms[0].activityStatus);
  
negative.code: 	String tab = (String)request.getAttribute(Constants.SELECTED_TAB);
  	String exceedsMaxLimit = (String)request.getAttribute(Constants.EXCEEDS_MAX_LIMIT);
  	String submittedFor=(String)request.getAttribute(Constants.SUBMITTED_FOR);
  	String pageOf = (String)request.getAttribute(Constants.PAGEOF);
  	boolean isAddNew = false;
  	String signedConsentDate = "";
  	String selectProperty="";
  