function imagePopup(path, name, width, height) {
	var _width = width;
	var _height = height;
	var _workspaceWidth = 0;
	var _workspaceHeight = 0;
	var _workspaceX = 0;
	var _workspaceY = 0;
	var _locationX;
	var _locationY;

	if (isMSIE) {
		_workspaceWidth = document.body.clientWidth;
		_workspaceHeight = document.body.clientHeight;
	}
	if (isNetscape4==true || isMozilla==true || isOpera==true) {
		_workspaceWidth = innerWidth;
		_workspaceHeight = innerHeight;
	}
	
	if (_workspaceWidth > 0 && _workspaceHeight > 0) {
		if (isMSIE || isOpera7) {
			_workspaceX = screenLeft;
			_workspaceY = screenTop;
		}
		if (isNetscape4 || isMozilla || isOpera5 || isOpera6) {
			_workspaceX = screenX;
			_workspaceY = screenY;
		}
		_locationX = _workspaceX + Math.round((_workspaceWidth - width)/2);
		_locationY = _workspaceY + Math.round((_workspaceHeight - height)/2);;
	} else {
		_locationX = Math.round((screen.width - width)/2);
		_locationY = Math.round((screen.height - height)/2);
	}
	
	if (isMozilla) _width += 16; _height += 8;
	if (isMSIE) _width += 20; _height += 10;

	var params = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+_width+",height="+_height+",left="+_locationX+",top="+_locationY;
	window.open(path, name, params);
}
