function openWindow(theURL, width, height)
{
	var left = parseInt((screen.width-width)/2);
	if (left < 0)
		left = 0;
	var top = parseInt((screen.height-height)/2);
	if (top < 0)
		top = 0;
	
	window.open(theURL, 'image', 'width='+width+', height='+height+', toolbar=no, scrollbars=no, resizable=no, status=no, left='+left+', top='+top);
	return false;
}

