// JavaScript Document


function LaunchPresentation(bChromeless, bResize, targetPage, presentationWidth, desiredWidth, desiredHeight)
{
	var nWidth = screen.availWidth;
	var nHeight = screen.availHeight;

	// Get the width
	if (nWidth > presentationWidth)
	{
		nWidth = desiredWidth;
		nHeight = desiredHeight;
	}

	// Build the options string
	var strOptions = "width=" + nWidth +",height=" + nHeight;
	if (bResize)
	{
		strOptions += ",resizable=yes"
	}

	if (bChromeless)
	{
		strOptions += ", status=0, toolbar=0, location=0, menubar=0, scrollbars=0";
	}
	else
	{
		strOptions += ", status=1, toolbar=1, location=1, menubar=1, scrollbars=1";
	}

	// Launch the URL
	window.open(targetPage , "_blank", strOptions);

}


