/***************************************************
* Brad Davis
*
* Modified from ...
*
* Window opener by
*
* Greg Lanier, (c) 2001
****************************************************/

function openWindow(id, width, height, scrollbars, src)
{

	// features of the window
	var features = 'toolbar=no,location=no,directories=no,scrollbars=' + scrollbars + ',status=no,menubar=no,resizable=no,width=' + width + ',height=' + height;	

	var leftPos = screen.availWidth;
	var topPos = screen.availHeight;

	// find midpoint, and subtract half the height or width
	leftPos = parseInt((leftPos / 2) - (width / 2));
	topPos = parseInt((topPos / 2) - (height / 2));

	// window object
	var target = window.open(src, id, features);
	target.moveTo(leftPos,topPos - 25);
}

