usa
window.open (locName + Query,"ricerca")
al posto di location.href

ciao