/* **************************************************************************************
 *                              Copyright (C) 1999 by
 *                              Integrity Online, Inc.
 *                               All Rights Reserved
 * **************************************************************************************
 * Name:    fun_new_window ();
 * File:    new_window.js
 * Author:  Unknown
 * Release: 1.0
 * 
 * Parameters:
 * string url, string window_name, string width, string height, string innerWidth,
 * string innerHeight, string toolbar, string directories, string location,
 * string nav_buttons, string menubar, string statusbar, string scrollbars
 *
 * Description:
 *
 * Opens a new window with the features requested by the URL in the URL 
 * location target.   The Window Name is the name used to access the window 
 * from other scripts width/height/innerWidth/innerHeight are all settings 
 * of how large the window will be set.  The rest of the arguments consist 
 * of either 'yes' or 'no' arguments.
 *
 * **************************************************************************************
 * Modification History:
 *
 *   Version  Author(s)    Date     Description
 *   -------  --------     ----     -----------
 *     1.0    Unknown   02/14/2006  Initial code release.
 * ************************************************************************************** */

/* **********************************  Begin Functions  ********************************* */

/* **************************************************************************************
 * Description:
 *
 * Creates a string with all window properties for the new window and opens the new 
 * window.
 * ************************************************************************************** */
function fun_new_window(url,winName,width,height,innerWidth,innerHeight,toolbar,directories,w_location,navigation,w_menubar,status,resizable,scrollbars) 
{
   winProp = "width=" + width;
   winProp = winProp + ",height=" + height;
   winProp = winProp + ",innerWidth=" + innerWidth;
   winProp = winProp + ",innerHeight=" + innerHeight;
   winProp = winProp + ",toolbar=" + toolbar;
   winProp = winProp + ",directories=" + directories;
   winProp = winProp + ",location=" + w_location;
   winProp = winProp + ",navigation=" + navigation;
   winProp = winProp + ",menubar=" + w_menubar;
   winProp = winProp + ",status=" + status;
   winProp = winProp + ",resizable=" + resizable;
   winProp = winProp + ",scrollbars=" + scrollbars;

   /* Open Window */
   var win=window.open(url,winName,winProp);
}     /* *****  End of Function Fun_New_Win  ***** */
