
function openPopupForView(URL, windowName) {
	var w = 500;
	var h = 300;
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
	window.open(URL, windowName, "width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
