In the latest version you can use:
<?php
if (isset($_GET['clear']) && $_GET['clear'] == "true") {
$searchWADAtbl_images_WADbSearch1->clearSearch();
}
?>
But you will have to move it below the search code for it to work properly. If you delete the current clear code, then add this, it will be at around line 41.