/*
Create pop-up windows with different names and set the window options.

How to use:
winURL = the location of the page you wish to put in the pop-up [url string value]
winName = the name of the new pop up window [string value]
winWidth = how wide you want your pop up to be [numeric value]
winHeight = how tall your pop-up window will be [numeric value]
location = do you want this pop-up to show the location bar [boolean 0 = no, 1 = yes]
directories = do you want this pop-up to show the Netscape Directory Buttons [boolean 0 = no, 1 = yes]
status = do you want this pop-up to display the browsers status bar [boolean 0 = no, 1 = yes]
menubar = do you want this pop-up to display the browser menu bar [boolean 0 = no, 1 = yes]
scrollbars = do you want this pop-up to have scroll bars [boolean 0 = no, 1 = yes]
toolbar = do you want this pop-up to have a tool bar [boolean 0 = no, 1 = yes]
resizable = do you want this pop-up to be resizable [boolean 0 = no, 1 = yes]
dependant = do you want the pop-up window to not appear in the Windows task bar and do you want the pop-up window to close when the parent window closes in NN4 [boolean 0 = no, 1 = yes]

Example of a link to a pop-up with all options on:
<a href="javascript:newPopWindowB('myURL','myName','755','452','1','1','1','1','1','1','1','1')">Launch Pop-up Window</a>

Example of a link to a pop-up with all options off:
<a href="javascript:newPopWindowB('myURL','myName','755','452','0','0','0','0','0','0','0','0')">Launch Pop-up Window</a>

Standard Chrysler static page window sizes are:
300 x 425 (small)
435 x 425 (medium)
745 x 425 (large)

Standard Chrysler application page window sizes are:
755 x 452 (large)
595 x 452 (medium)
*/


function popupWindow (winURL,winName,winWidth,winHeight,location,directories,status,menubar,scrollbars,toolbar,resizable,dependent) {

lpos = (screen.width) ? (screen.width-winWidth)/2: 0;
tpos = (screen.height) ? (screen.height-winHeight)/2: 0;

winFeatures=
"'location="+location
+",directories="+directories
+",status="+status
+",menubar="+menubar
+",scrollbars="+scrollbars
+",toolbar="+toolbar
+",resizable="+resizable
+",dependent="+dependent
+",width="+winWidth
+",height="+winHeight
+",top="+tpos
+",left="+lpos+"'";

//alert ('Window features are: '+winFeatures+'\nWindow Name = '+winName);
showWindow=window.open(winURL,winName,winFeatures);
showWindow.focus();
}
//end popupWindow
