function wop(url, wnd_name, width, height)
{
	w = window.open(
			url,
			wnd_name,
			'width=' + width + ', height = ' + height + ', status = no, menubar = no, resizable = no, scrollbars = yes, left = ' + String((screen.width - width)/2) + ', top = ' + String((screen.height - height)/2)
		);
	w.focus();
	return w;
}

function wop2(url, wnd_name, width, height)
{
	w = window.open(
			url,
			wnd_name,
			'width=' + width + ', height = ' + height + ', status = no, menubar = no, resizable = no, scrollbars = no, left = ' + String((screen.width - width)/2) + ', top = ' + String((screen.height - height)/2)
		);
	w.focus();
	return w;
}

function view_image(url, title, width, height)
{
	var id = 'view_image_' + url;
	id = id.replace(/([^A-Za-z0-9])/g, "_");
	w = window.open(
			'/LT/view.image.php?path=' + url + '&title=' + title,
			id,
			'width=' + width + ', height = ' + height + ', status = no, menubar = no, resizable = no, scrollbars = no, left = ' + String((screen.width - width)/2) + ', top = ' + String((screen.height - height)/2)
		);
	w.focus();
	return w;
}

function view_image2(url, title, width, height)
{
	var id = 'view_image_' + url;
	id = id.replace(/([^A-Za-z0-9])/g, "_");
	w = window.open(
			'/LT/view.image.php?path=' + url + '&title=' + title,
			id,
			'width=' + width + ', height = ' + height + ', status = no, menubar = no, resizable = no, scrollbars = yes, left = ' + String((screen.width - width)/2) + ', top = ' + String((screen.height - height)/2)
		);
	w.focus();
	return w;
}
