If you move your employee list to its own employeelist.php
file, then place it in your page like so...
<div id="openModal" class="modalDialog">
<?php include('employeelist.php'); ?>
</div>
You can then modify your button to the following...
<a id="cashEmployee" href="cash_employee.php<?php echo "?name=".$row['name'] ?>
And then in your modal dialog add...
<script type="text/javascript">
$(document).ready(function () {
$('#cashEmployee').focus();
});
</script>