// resolution_check
var passesResolutionRequirements = true;
var MIN_SCREEN_WIDTH = 800;
var MIN_SCREEN_HEIGHT = 600;

if (screen.width < MIN_SCREEN_WIDTH || screen.height < MIN_SCREEN_HEIGHT)
{
	passesResolutionRequirements = false;
	document.writeln("<hr><p>The required screen resolution for this courseware is at least " + MIN_SCREEN_WIDTH + " x " + MIN_SCREEN_HEIGHT + ".<BR><BR>");
	document.writeln("Your screen resolution is set to " + screen.width + " x " + screen.height + ".<BR><BR>");
	document.writeln("You will need to change your screen resolution before running the courseware. To change your resolution: <BR><BR>");
	document.writeln("<strong>1.</strong> Right-click on the Desktop and select the Properties menu.<BR>");
	document.writeln("<strong>2.</strong> Click on the Settings tab.<BR>");
	document.writeln("<strong>3.</strong> In the area labeled, <strong>Screen resolution</strong> (<strong>Desktop area</strong>, or <strong>Screen area</strong> on some systems), drag the slider until " + MIN_SCREEN_WIDTH + " by " + MIN_SCREEN_HEIGHT + " pixels is displayed.<BR>");
	document.writeln("<strong>4.</strong> In the area labeled, <strong>Color quality</strong> (<strong>Colors</strong> on some systems), choose 16-bit color or higher.<BR>");
	document.writeln("<strong>5.</strong> Click the OK button.<BR>");
	document.writeln("<strong>6.</strong> When prompted to confirm your selection, select OK.<BR><BR>");
	document.writeln("Refer to Windows help for additional information regarding changing display settings.<BR><BR>");
}
