IE9 window.open not returning valid window object reference
===

Java Script:  

>This is the Java script contructor which will be used to store the open list of windows

    function SelectWindow(windowName, window_object){  
        //unique name of the window  
        this.windowName = windowName  
        this.window_object = window_object  
        if (window_obj){  
            window_obj.focus();  
        } //to focus the window
    }  
    
    Servlet Code:
    The IE window is created using a Servlet like below:  
    // The java script code generated from Servlet  
    out.println("<script>");  
    out.println("var  mainwindow = top.window ;");  
out.println("mainwindow.Common.infoArray[mainwindow.Common.infoArray.length] = new SelectWindow(windowName,window.open('FileName.jsp','"+windowName+"','location=0,height=570,width=790,top=0,left=0,resizable=yes')");
        out.println("</script>");
     --------------------------------------------------------------------------------------   
        The above line works in IE8 and new window is opened. The second parameter to the function SelectWindow is holding a reference object to the window and will be used to switch between Ie windows. All the opened windows are stored in the JavaScript array delcared on One.html on the first frame.
        
        In case of IE9, the line fails to open a window. 
         
     ------------------------------------------------------------------------------   
        

        Example like this:
        The frameset used to create multiple frames
        <frameset frameborder=0 framespacing=0 rows='15%,85%' scrolling='auto' id="mainFrameSet">
         <frame name='Common' src='One.html' noresize  frameborder=no marginheight=0 marginwidth=0 SCROLLING='no'>
         <frame name='Two' src='Two.html' noresize  frameborder=no marginheight=0 marginwidth=0 SCROLLING='no'>
        </frameset>
     -----------------------------------------------------------------------   
        One.html
        --------
        This page has a Java Script Array declared:

        <script>
           //This array will be used to store all the objects created using SelectWindow function/constructor
        	var infoArray = new Array();

        </script> 

       -------------------------------------------------------- 
        Two.html
        --------
        Page Two.html has hyperlinks displayed and will open the new IE windows.
