//************************************************************************************* 
//*                            fnUrlPopupAdvanced.js
//*                            ---------------------
//*                                                                  
//*  Desc: Function - Bring a pop up window                             
//*                                                                  
//*  Example of Call:                                                 
//*  ----------------                                                
//*  <SCRIPT LANGUAGE="Javascript" SRC="/csjs/fnUrlPopupAdvanced.js"></SCRIPT> 
//*  fnUrlPopup('http://www....', 'window_name', 1, 1, 1, 1, 1, 1, 1, 1, 1)
//*
//*  PARAMETERS:
//*  inUrl          - the url to be displayed in the new window
//*  inInfo         - the name of the pop-up window
//*  inToolbar*     - whether or not the window will have a toolbar
//*  inLocation*    - whether or not the window will have a location box
//*  inDirectories* - whether or not the directories bar will show on the new window
//*  inStatus*      - whether or not the window will have a status bar
//*  inMenubar*     - whether or not the window will have a menu bar
//*  inScrollbars*  - whether or not the window will have scrollbars
//*  inResizable*   - whether or not the window will be resizable
//*  inWidth        - the width that the window will be
//*  inHeight       - the height that the window will be
//*
//*  *1 if it should be displayed on the window
//*   0 if it should not be displayed on the window
//*  
//*  Maintenance                                                       
//*  -----------   
//*************************************************************************************
function fnUrlPopupAdvanced(inUrl, inInfo, inToolbar, inLocation, inDirectories, inStatus, inMenubar, inScrollbars, inResizable, inWidth, inHeight)
{
    var fromleft = (screen.width - inWidth) / 2;
    var fromtop = (screen.height - inHeight) / 2;        
    var myParameters = "TOOLBAR="+inToolbar+",LOCATION="+inLocation+",DIRECTORIES="+inDirectories+",STATUS="+inStatus+",MENUBAR="+inMenubar+",SCROLLBARS="+inScrollbars+",RESIZABLE="+inResizable+",WIDTH="+inWidth+",HEIGHT="+inHeight + ",top="+fromtop+",left="+fromleft;
    var myUrlPopup = open(inUrl,inInfo,myParameters);

    if (navigator.appName == "Netscape")
    {
        myUrlPopup.window.focus();
    }
}

