rewrite search code for jueces.php. several cut&paste errors fixed