Add theme option for advanced search, fix check for advanced search form in javascript.