//**************************************************************************************************
//	POPUP WINDOW - This function opens a secondary window using the parameters specified in the 	
//	location specified.  There are alot of parameters, but this allows you the flexibility of 		
//	customizing your window when necessary.  Use the guide below to set your parameters correctly:	
// 																									
//	objWindow 		= This is actually passed in as a string.  Its the name of the window object you
//					want to create. In this way, you can spawn multiple windows with different names
//	strPage			= This is simply the page name plus any parameters								
//	intWidth 		= The width of the window in pixels												
//	intHeight		= The height of the window in pixels											
//	intTopDivisor	= This number should be a minimum of 2.  The higher the number, the higher your	
//					window will be placed on screen.												
//	strWindowName	= This is a reference name.  Not important										
//	blnLocation		= 'yes' if you want the Address bar to appear in the window						
//	blnStatus		= 'yes' if you want the Status bar to appear in the bottom part of the window	
//	blnToolbar		= 'yes' if you want the Toolbar to appear in the top part of the window			
//	blnResizable	= 'yes' if you want to allow the user to resize the window with the mouse		
//	blnScrollbars	= 'yes' if you want scrollbars to appear in the window							
// 																									
//**************************************************************************************************

function popupWindow(objWindow, strPage, strWindowName, intWidth, intHeight, intTopDivisor, blnLocation, blnStatus, blnToolbar, blnResizable, blnScrollbars)
{
	// NOTE: This function always opens the window in the center of the screen
	var intWinTop    	= (screen.width - intHeight) / intTopDivisor;
	var intWinLeft   	= (screen.width - intWidth) / 2
	var strParameters;
	
	strParameters = "location=" + blnLocation + ",status=" + blnStatus + ",toolbar=" + blnToolbar + "," + 
					"resizable=" + blnResizable + ",scrollbars=" + blnScrollbars + "," +
					"width=" + intWidth + ",height=" + intHeight + ",top=" + intWinTop + ",left=" + intWinLeft + ""
	
	objWindow = open(strPage, strWindowName, strParameters)
	objWindow.focus();	
}	