var newWin;
function newWindows(url, varWidth, varHeight, wName) 
{
	var options = "width=" + varWidth + ",height=" + varHeight + ",";
	options += "resizable=no,scrollbars=no,status=yes,menubar=no,toolbar=no,location=no,directories=no,";
	options += "left="+(screen.width-varWidth)/2+",top="+((screen.height-varHeight)/2-20);

	newWin = window.open(url, wName, options);
	newWin.focus();
 }

function newWindowsToolBarFullResize(url, wName) 
{
	var options = "width=" + (screen.availWidth-10) + ",height=" + (screen.availHeight-50) + ",";
	options += "resizable=yes,scrollbars=yes,status=yes,menubar=yes,toolbar=yes,location=no,directories=no,";
	options += "left=0,top=0";

	newWin = window.open(url, wName, options);
	newWin.focus();
 }

function newWindowsFullResize(url, wName) 
{
	var options = "width=" + (screen.availWidth-10) + ",height=" + (screen.availHeight-50) + ",";
	options += "resizable=yes,scrollbars=yes,status=yes,menubar=no,toolbar=no,location=no,directories=no,";
	options += "left=0,top=0";

	newWin = window.open(url, wName, options);
	newWin.focus();
 }

function newWindowsFullResizeWithMenu(url, wName) 
{
	var options = "width=" + (screen.availWidth-10) + ",height=" + (screen.availHeight-50) + ",";
	options += "resizable=yes,scrollbars=yes,status=yes,menubar=yes,toolbar=yes,location=no,directories=no,";
	options += "left=0,top=0";

	newWin = window.open(url, wName, options);
	newWin.focus();
 }

function newWindowsResize(url, varWidth, varHeight, wName) 
{
	var options = "width=" + varWidth + ",height=" + varHeight + ",";
	options += "resizable=yes,scrollbars=yes,status=yes,menubar=no,toolbar=no,location=no,directories=no,";
	options += "left="+(screen.width-varWidth)/2+",top="+((screen.height-varHeight)/2-20);

	newWin = window.open(url, wName, options);
	newWin.focus();
 }

 function newWindowsPrint(url, varWidth, varHeight, wName) 
{
	var options = "width=" + varWidth + ",height=" + varHeight + ",";
	options += "resizable=yes,scrollbars=yes,status=yes,menubar=yes,toolbar=no,location=no,directories=no,";
	options += "left="+(screen.width-varWidth)/2+",top="+((screen.height-varHeight)/2-50);

	newWin = window.open(url, wName, options);
	newWin.focus();
 }


function fullwin(url, wName){
	var options="fullscreen,scrollbars";
	window.open(url,wName, options);
	//window.self.close()
}

