function StringCompare(aComp, bComp)
  {
  if (aComp.toLowerCase() < bComp.toLowerCase()) return -1;
  if (aComp.toLowerCase() > bComp.toLowerCase()) return  1;
  return 0;
  }

function Inspect(Instance)
  {
  var x = 10;
  var y = 10;
  var width  = 640;
  var height = 480;
  if ((parseInt(navigator.appVersion) >= 4) || navigator.product == 'Gecko')
    {
    x = (screen.width  - width ) / 2;
    y = (screen.height - height) / 2;
    }

  var hwnd = window.open('', 'inspect', 'top=' + y + ',left=' + x + ',width=' + width + ',height='+ height + ',resizable=yes,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no');

  properties = new Array();
  propindex  = 0;
  for (property in Instance) properties[propindex++] = property;
  properties.sort(StringCompare);
  for (i = 0; i < properties.length; i++)
    hwnd.document.write('.<span style="font: 8pt monospace;"><span style="color: Red;">' + properties[i] + '</span> = <span style="color: green;">' + Instance[properties[i]] + '</span></span><br>');
  }


