Modified simple and advanced search based on document language
Resolved IE 8 javascript error