<script type="text/javascript">
$(document).ready(function(){
<?php if(sizeof($otherDNA)>0): ?>
    $('#leftPanel').append("More DNA for this specimen:<ul>");
    <?php foreach($otherDNA as $id=>$other): ?>
    link = "<?php echo "<li><a href='".$other."' target='_blank'>".$id."</a></li>"?>";
    $('#leftPanel').append(link);
    <?php endforeach; ?>
    $('#leftPanel').append("</ul><br/>");
    <?php endif; ?>

    <?php if(sizeof($otherTissue)>0): ?>
    $('#leftPanel').append("More Tissue for this specimen:<ul>");
    <?php foreach($otherTissue as $id=>$other): ?>
    link = "<?php echo "<li><a href='".$other."' target='_blank'>".$id."</a></li>"?>";
    $('#leftPanel').append(link);
    <?php endforeach; ?>
    $('#leftPanel').append("</ul>");
    <?php endif; ?>

});

</script>