function winOpenCenter(url, name, statbar, scroll, locate, resize, xWidth, yWidth)
{
	var adjustedleft = 8 //optional
	var adjustedheight = 30 //adjust height because of windows taskbar
	var screenwidthremainder = screen.availWidth % 2 //really not needed, but won't hurt
	var screenheightremainder = screen.availHeight % 2
	var screenwidth = screen.availWidth - screenwidthremainder
	var screenheight = screen.availHeight - screenheightremainder
	var winheight = yWidth //set new window height properties
	var winwidth = xWidth //set new window width properties
	var winleft = parseInt(screenwidth / 2) - (winwidth / 2) - adjustedleft //optional
	var wintop = parseInt(screenheight / 2) - (winheight / 2) - adjustedheight

	var win = window.open(url, name, 'width=' + winwidth + ',height=' + winheight + ',status=' + statbar + ',resizable=' + resize + ',scrollbars=' + scroll + ',location=' + locate + ',top=' + wintop + ',left=' + winleft);
	return win;
}