/********************************************************************************************
popWindow: opens new window in middle of page
params:		winURL		- the url of the window contents
params:		winName		- name of window object
params:		winWidth	- desired width of window
params:		winHeight	- desired height of window
params:		winScroll	- allow window to scroll 0 or 1
params:		winResize	- allow window to resize 0 or 1
params:		winMenu		- show menur 0 or 1
returns:	nothin
********************************************************************************************/
function popWindow(winURL, winName, winWidth, winHeight, winScroll, winResize, winMenu) {
	winX = (screen.width - winWidth) / 2;
	winY = (screen.height - winHeight) / 2;
	winProp = 'width=' +winWidth+ ',height=' +winHeight+ ',top=' +winY+ ',left=' +winX;
	winProp += ',scrollbars=' +winScroll+ ',resizable=' +winResize+ ',menubar=' +winMenu;
	winProp += ',toolbar=' + winMenu + ',statusbar=' + winMenu;
	printWin = window.open(winURL, winName, winProp);
	printWin.focus();
}


/********************************************************************************************
setup for coupon page
********************************************************************************************/

if (typeof(printWin) !== 'undefined') {
	printWin.print();
	printWin.close();
	printWin.onFocus() = printWin.close();
	
	opener.window.onFocus() = printWin.close();
}