open a new window, and call javascript function
<p><br>
I am new to javascript. I would like to know how a new window can be opened from a javascript method, and then call it's javascript methods.  </p>

<p>The url of the window, is in another domain (can cause a security problem !?), and I don't have control over it.  </p>

<p>For example, a code that should behave as the followings:</p>

<pre><code>handler&lt;-openAWindow("www.someurl.com");//open a window and get a handler for it
handler-&gt;someMethod1(param1, param2);//call some javascript method 
handler-&gt;someMethod2(param3, param4);//call some other javascript method&lt;br&gt;
</code></pre>

<p>Thanks,<br>
Eran.</p>
