
function ScrSettings()
// *********************************************************************************************
// check on screen settings stuff                                                              *
// tests your screen, and if less than pref settings, prints a message.                        *
// makes a message like: Best viewed with 32bit color at 800x600 pixel resolution or greater.  *
// *********************************************************************************************
 {
 window.onerror=null;
  var bestClrDepth = 32;  // set to your pref
  var bestResH = 800;     //    "    "
  var bestResV = 600;     //    "    "
  var colorDepth = window.screen.colorDepth;
  var width = window.screen.width;
  var height = window.screen.height;
  var colorMsg = "";
  var scrMsg = "";

  if(colorDepth < bestClrDepth)
   {colorMsg = "a bit low, but still manageable.";}
  else
   {colorMsg = "great.";}

  if(width < bestResH)
   {scrMsg = "a bit low, but workable.";}
  else
   {scrMsg = "great.";}
  
  if ((colorDepth < bestClrDepth) || (width < bestResH))
	 {
	 document.write("<center><font face='Arial' size=2>\n");
	 document.write("Best viewed with " + bestClrDepth +"bit color at " + bestResH + "x" + bestResV + " pixel resolution or greater.<BR>");
	 document.write("You have " + colorDepth + "bit color and a screen of " + width + "x" + height+" pixels.");
	 document.write(" Your screen color settings are " + colorMsg);
	 document.write(" Your screen resolution settings are " + scrMsg);
	 document.write("  </font></center>");
	 }

 }

