When passing variables into a function, they must be a string or in quotes. This looks like a string. but it's not. You are missing a close tag also.
The line S/B:
Code:
<a onclick="Delete_All(<?php echo "'".$log."'"; ?>)">Click here to delete stuff</a>