function popWindow(url, name, width, height, scrollbars, menubar, toolbar, resizable) {
	if (name == undefined) name = 'newPopWindow';
	if (width == undefined) width = 850;
	if (height == undefined) height = 600;
	if (scrollbars == undefined) scrollbars = 'yes';
	if (menubar == undefined) menubar = 'no';
	if (toolbar == undefined) toolbar = 'no';
	if (resizable == undefined) resizable = 'yes';
	screenX = ((screen.width-width)/2);
	screenY = ((screen.height-height)/2);

	newPopWindow = window.open(url, name,'menubar='+menubar+',scrollbars='+scrollbars+',toolbar='+toolbar+',screenX='+screenX+',screenY='+screenY+',width='+width+',height='+height);
	if (window.focus) {newPopWindow.focus()}
	
}