<form onsubmit="return submitquery()">, with window.top.location you get to open the search result page in the parent window, otherwise if use window.location you only get the result window open in the iframe area