I'm sorry, but there is a much simpler way that can work with all links regardless of what they do. Maybe we are thinking too hard?
<SCRIPT LANGUAGE='JavaScript'>
function check_delete()
{
return confirm('Do you really want to delete this ... ?');
}
</SCRIPT>
<td><? echo '<a href=delete.php?id='. $id .' onClick='return check_delete()'>' . Delete . '</a>'; ?></td>