//
//
function doPrint()
{
	if (IsNetscape())
		beforePrint();

	window.print();

	if (IsNetscape())
		afterPrint();
}


//  This function determines if we are in 'print view.'
//  If so, it calls back into the embedded template.
//
function PrintView()
{
	return (QueryStringArgExists("print", document.location.href));
}


//
//
function beforePrint()
{
	//	Globally defined in the HTML document
	//
	ShowPrintView();
}


//
//
function afterPrint()
{
	//	Weird behavior of firefox
	//
	if (IsNetscape())
		alert("Please reload webpage after printing completes.");

	else
		window.location.reload();
}


