﻿function printPage(path)
{
	//var windowWidth = (screen.width / 3 * 2);
	var windowWidth = 650;
	var windowHeight = (screen.height / 3 * 2);
	var windowPosX = ((screen.width - windowWidth) / 2);
	var windowPosY = ((screen.height - windowHeight) / 4);
	var newWindow;
	if (windowPosX<0) windowPosX=0;
	if (windowPosY<0) windowPosY=0;
	newWindow=window.open(path, "printPageWindow", "toolbar=0,location=0,left=" + windowPosX + ",top=" + windowPosY + ",directories=no,status=no,menubar=no,scrollbars=1,resizable=no,width=" + windowWidth + ",height=" + windowHeight);
	newWindow.focus();
}
