anchor.diff:      }
       alert("New item was " + action + "d!");
       window.close();
  -</script>+</script>
  
positive.code: <% sample_row = []
     specimen_row = []
     new_specimen ||= false
     if object.kind_of?(Sample)
      sample_row = sample_row_data(object)
      specimen_row = specimen_row_data(object.specimen)
  
negative.code:     if (action == 'create' && object_class == 'sample' && "<%=new_specimen%>" == "true" ){
          window.opener.loadNewSpecimenAfterCreation(specimen_row, '<%=strain_id%>','<%=strain.is_dummy%>');
      }else if (action == 'create' && object_class == 'sample' && "<%=new_specimen%>" == "false"){
          window.opener.loadNewSampleAfterCreation(sample_row, '<%=specimen_title%>' );
      }else if (action == 'create' && object_class == 'specimen' ){
          window.opener.loadNewSpecimenAfterCreation(specimen_row,'<%=strain_id%>','<%=strain.is_dummy%>');
      }else if (action == 'update' && object_class == 'sample'){
  