// display screen resolution

  // get screen size
  var w = window.screen.width;
  var h = window.screen.height;

  // get available screen size
  var aw = window.screen.availWidth;
  var ah = window.screen.availHeight;

  // get color settings
  var depth = window.screen.colorDepth;

  // display the settings information
  var res = "Resolution: "  +w+ " x " +h;
  var col = "Colors: " + depth + " bit";
  var avl = "Available screen : " +aw+ " x " +ah;

  document.write( res + "\n" + col + "\n" +  avl);

