can i combine these two statements?
<p>I am trying to following all the links contained in a certain class
(<code>f_foto</code>) in the DOM, follow them and then examine the results.  I
could use <code>XMLHttp.Request</code> but the site returns only HTTP text, not XML
(or at least <code>.responseXML</code> is null).  Rather than scrape the string, I
am trying to stick with examining the DOM resulting from the response
text so I open a new window with the src from the link found in the
<code>f_foto</code> class.  The window opens ok, but after that I can't access the
new window.  Note that it is not necessary to use a new window but I
can't figure out how to convert a text file to a DOM any other way.</p>

<p>In the following code the window opens a new window but testing the
theory in the next statement, which changes the background color to
black, an error is returned "cannot set property 'bgcolor' of
undefined."  Here it doesn't matter what I use to manipulate
detailWindow - it's always undefined.  Based on the research I did
this must have to do with the fact that this script is located in the
parent page and not in the opened page.  So how do I get control over
the newly opened window?  What I would like is to have the result of</p>

<pre><code>document.getElementById("tab_content").

var detailWin;
for (var i = 0; i&lt;searchResult.length; ++i)
{
       detailWin=window.open(profileLinks[i], "Detail Window",
               "width=700, height=650, resizable=1, toolbar=0, location=0,
status=0, menubar=0, directories=0, scrollbars=yes, top=0, left=0");
       detailWin.bgColor="black"
}
</code></pre>
