// Set the input argument to true to enable the window feature
function winOpen(URL, windowName, width, height, resizable, location, menubar, scrollbars, status, toolbar){
	var windowFeatures;
	windowFeatures = '';
	if (width != '' && width != null){
		windowFeatures = windowFeatures+'width='+width+',';
	}
	if (height != '' && height != null){
		windowFeatures = windowFeatures+'height='+height+',';
	}
	/*
	if (resizable){
		windowFeatures = windowFeatures+'resizable,';
	}
	*/
	windowFeatures += 'resizable,';
	if (location){
		windowFeatures = windowFeatures+'location,';
	}
	if (menubar){
		windowFeatures = windowFeatures+'menubar,';
	}
	/*if (scrollbars){
		windowFeatures = windowFeatures+'scrollbars,';
	}*/
	windowFeatures += 'scrollbars,';
	if (status){
		windowFeatures = windowFeatures+'status,';
	}
	if (toolbar){
		windowFeatures = windowFeatures+'toolbar,';
	}
	window.open(URL, windowName, windowFeatures);
}
