/*****************************************************************************
*                                                                            *
*                           openwindow.js                                    *
*                                                                            *
*                                                                            *
*                                                                            *
*  Coded and debugged by: Kris Rockwell (aka DJ CBT)                         * 
*                                                                            *
*  If you use this code, these comments MUST remain.                         *
*                                                                            *
*****************************************************************************/

//To use create a link that looks kie such:
//<a href="#" onClick="openAWindow('target.htm', 'window title', width, height, center)">Open a window</a>
/* This will opena window and fill it with specified content. */

function openAWindow( pageToLoad, winName, width, height, center, scrollbars) {
				 

    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=1," 
    + "menubar=1,"
    + "resizable=1,"
    + "scrollbars=" + scrollbars + ","
    + "status=1," 
    + "titlebar=1,"
    + "toolbar=1,"
    + "hotkeys=0,"

    window.open( pageToLoad,winName,args );
}
