>Thanx! Michel for the advice. I'd probably have to look into java coding for this...
You mean javascript I believe.
Basically, if you can, I would simply add a TARGET=_blank to the action which is doing the search. So, once in your code behind, you just keep what you already have. Or, if you need to take the decision in the code behind as to know if you need to open in a new window or not, then simply returning a few javascript line to window.open() in a new window would do.