function(response) {
                                   if (response != '1') {
                                       document.getElementById('show_error').innerHTML = response;
                                   }
                                   window.location = 'participant_profile.php';
                               }
                               ).fail(failAlert);
                           "><?php 
        echo $spouse['Name_First'] . " " . $spouse['Name_Last'];
        ?>
</a></td>
                    <!--Button to delete child.  Won't delete him/her from db, just deletes the relationship.-->
                  </tr><?php 
    }
}
if ($spousearr = $parti->get_spouse_of_spouse()) {
    while ($spouse = mysqli_fetch_array($spousearr)) {
        ?>
                <tr><td>Spouse</td>
                    <!--Link to spouse's profile: -->
                    <td><a href="javascript:;" onclick="
                               $.post(
                                       '../ajax/set_participant_id.php',
                                       {
                                           page: 'profile',
                                           participant_id: '<?php 
        echo $spouse['Parent_ID'];
        ?>
'
                                       },
                               function(response) {