Jquery within JavaScript

Hi everybody

In my vaadin application I want to open a new Browser Window. This i realize with the “executeJavascript()”-method.

mainWindow.executeJavaScript("window.open(\"" + url + "\", \"_blank\"));

On the page which open, there are Jquery tabs. After clicking on the second tab this JQuery method will execute:

jQuery('#tabs').tabs( "select" , 2 );

What i want to do is that if the browser opens a new window the second tab should be selected. But how can i execute the Jquery Method within the Javascript Statement? Is this possible?

I hope i could explain my issue?

Greets
Erdal