Cut and paste it back into place using notepad.
And add a line to the recordset code immediately after the line that begins with $query_WADAjob:
That will re-implement the search code.
The error is most likely generated when our code tries to add the setQueryBuilderSource() line to your recordset. If you add it manually in notepad the problems will probably go away.
What version of DW are you using and on what operating system?