Fixed bug with ListSearch that occurred when the clear button was in a form. Also reformatted some code and created a new common function