/* --------------------------------------------------------------------------------------------- 
Function that pops up a window without closing the original one

version 1, 06/03/2002
version 2, 02/09/2002 : version that pops up the window in the center of the screen.

Copyright (c) Open World Ltd. Written by Iwein, idekoninck@openworld.co.uk
Do not edit this file! Documentation can be found at 
http://iwein.test.openworld.co.uk/javascriptExamples/popUpWindow.html
-----------------------------------------------------------------------------------------------*/

function openWindow(page,windowName,height,width,location,menubar,resizable,scrollbars,status,toolbar)
	{
	var features = ''
	features += (height != '') ? 'height=' + height + ',' : '';
	features += (width != '') ? 'width=' + width + ',' : '';
	features += (location == 'true') ? 'location,' : '';
	features += (menubar == 'true') ? 'menubar,' : '';
	features += (resizable == 'true') ? 'resizable,' : '';
	features += (scrollbars == 'true') ? 'scrollbars,' : '';
	features += (status == 'true') ? 'status,' : '';
	features += (toolbar == 'true') ? 'toolbar,' : '';
	window.open(page,windowName,features);
	}