this javascript is not working in chrome but works in ie
<pre><code>&lt;script language="javascript"&gt;


function switchScreen(v)
{

if(v=='d')
{
    mf.rows="0,*";
    window.frames.topFrame.location='blank.htm';

}
else
{
    mf.rows="*,0";
    window.frames.topFrame.location='http://sample.htm';


}


}



&lt;/script&gt;


&lt;frameset name="mf" id="mainFrame" rows="*,0" frameborder=no framespacing=0&gt;
&lt;frame name='topFrame' id="tp" src='http://sample.htm/' scrolling="no" frameborder=0 noresize marginheight=0 marginwidth=0&gt;
&lt;frame name='bottomFrame' id="bp" src='Main.html' scrolling="no" frameborder=0 noresize  marginheight=0 marginwidth=0&gt;
&lt;/frameset&gt;
</code></pre>

<p>The function is called from within the bottom frame</p>
